{ "id": "145370", "key": "AC-1219", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-03-06T10:31:18.000+0000", "created": "2015-03-03T21:51:25.000+0000", "labels": [ "AudioPlayer" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:36.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "If I play an AudioPlayer and then pause, it'll correctly pause the media. However, calling pause() a second time on the already paused media will cause it to start playing again.\r\n\r\nClick play, it'll play. Then pause, it'll pause. Then pause again. It'll start playing again. It does this with any mp3 file on iOS. Have not checked behavior on Android.\r\n\r\n{noformat}\r\nvar win = Ti.UI.createWindow();\r\nvar play = Ti.UI.createLabel({text: 'PLAY', right: 0});\r\nvar pause = Ti.UI.createLabel({text: 'PAUSE', left: 0});\r\n\r\nvar audio = Ti.Media.createAudioPlayer({url: 'https://archive.org/download/WarnersSevenAcesJazzBand-TheresEverythingNiceAboutYou1927/WarnersSevenAcesJazzBand-TheresEverythingNiceAboutYou1927.mp3'});\r\n\r\nplay.addEventListener('click', function(){\r\n audio.play();\r\n});\r\n\r\npause.addEventListener('click', function(){\r\n audio.pause();\r\n});\r\n\r\nwin.add(play);\r\nwin.add(pause);\r\nwin.open();\r\n{noformat}", "attachment": [], "flagged": false, "summary": "Calling pause() on a paused AudioPlayer causes it to play", "creator": { "name": "kiafaldorius", "key": "kiafaldorius", "displayName": "Kia Kroas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiafaldorius", "key": "kiafaldorius", "displayName": "Kia Kroas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS with 3.5.0GA", "comment": { "comments": [ { "id": "345259", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "This is normal behaviour, see doc: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.AudioPlayer-method-pause", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-03-06T10:31:05.000+0000", "updated": "2015-03-06T10:31:05.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }