[ https://issues.apache.org/jira/browse/CB-12824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016993#comment-16016993 ]
Justin de Leon commented on CB-12824: ------------------------------------- [~kerrishotts] Here's the link to a repo with a demo app: https://github.com/jusdeleon/cordova-plugin-media-demo Local files does not have any problem with play and pause. You can verify this by running the app as is. To replicate the issue reported above: 1. Uncomment lines 25-37 in www/index.html 2. Uncomment lines 8-9 in www/js/index.js After this, you can see that playing any of the tracks plays the last item from the 'src' array on www/js/index.js. It seems that on "new" of a Media (that has an external source as the URL), all other Media instances are overwritten - thus, the bug. > cordova-plugin-media - Pausing and playing streaming audio plays incorrect > audio. > --------------------------------------------------------------------------------- > > Key: CB-12824 > URL: https://issues.apache.org/jira/browse/CB-12824 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-ios > Affects Versions: 6.3.1 > Reporter: Justin de Leon > Priority: Blocker > Labels: cordova-plugin-media > > Let's say I have two instances of Medias - a & b. > (Media object instances are created on press of play) > I pressed play on track a. Track a plays. I press pause on track a. > I pressed play on track b. Track b plays. I press pause on track b. > When I press play on track a again, track b resumes. I checked the media > object of track A, and its duration and position is the one from track b. > I did not have this issue when using the cordova-media-plugin version 1.0.1. > I suppose that the bug appeared after adding support for background > threading. Note that this only happens for streamed audio. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org