[ 
https://issues.apache.org/jira/browse/CB-12851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031837#comment-16031837
 ] 

Shawn Makinson commented on CB-12851:
-------------------------------------

See attached files. release() is wrapped in MediaPlayerCordova.js

npm run build before running on iOS simulator. From the cordova dir: cordova 
emulate ios

Play a station. It should play. Play another, it won't play. You will see 
message in console.

Open src/store.js and comment out line 19
Open src/components/Index.vue and uncomment line 44

npm run build before running on iOS simulator. From the cordova dir: cordova 
emulate ios

Play a station. It should play. Play another. It should play. Play another. It 
should play.

Android works with the line in store.js



> iOS - Media Plugin wont play after release
> ------------------------------------------
>
>                 Key: CB-12851
>                 URL: https://issues.apache.org/jira/browse/CB-12851
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-media
>    Affects Versions: [email protected]
>         Environment: iOS Simulator ( I don't own an iphone to test )
>            Reporter: Shawn Makinson
>            Priority: Blocker
>         Attachments: media-repro.zip
>
>
> I have an app that plays an infinite audio stream and if a different stream 
> is chosen the current Media instance is released and a new one created with 
> the new src. It works as expected on android, but on iOS it only plays the 
> first instance. Once release is called it will no longer play. I get error 
> code 4 with no message.
> Media plugin version 3.0.1



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to