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

Lorin Beer commented on CB-403:
-------------------------------

I've taken some time to look into this issue, and implemented Simon's proposed 
fix

the code lives here: https://github.com/doggerelverse/incubator-cordova-android

the master branch has the proposed solution: the create event is now handled by 
the AudioHandler

This, however, introduces a number of other problems. I've done my best to 
preserve the original decision tree of the code, to try and insure that 
behaviour remains consistent. However, now that the media is being prepared as 
soon as the media object is created, errors are reported when requesting 
play/seek during load of streaming media. 

Also, Mikael's issue remains unfixed. The AudioPlayers startPlaying function 
reloads the media while in the stopped state. There are a large number of minor 
behaviour problems like that in the original code, but as this is my first 
attempt at a contribution, I did not want to start drastically changing 
behaviour.
                
> Media.seekTo on first play
> --------------------------
>
>                 Key: CB-403
>                 URL: https://issues.apache.org/jira/browse/CB-403
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.4.0
>            Reporter: Mathieu Savage
>            Assignee: Joe Bowser
>             Fix For: 1.9.0
>
>
> I cannot use .seekTo before I play the sound for 
> the first time. The sound always starts from the beginning. When I 
> pause it and seek to a different time in the sound file, it's all 
> good. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to