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

Simon MacDonald commented on CB-403:
------------------------------------

I looked into this issue a bit and it seems doable. The common JS code calls a 
native "create" method when a new Media object is created. However, on Android 
there is no native implementation of this command.

If you try and call seekTo on a Media object before play it will not work as 
the Media object is not prepared on the native Android side. We'd have to 
change things around a bit so that the constructor prepares the audio so that 
it is already in a state where it can accept play or seek commands. 

The only problem is the "new Media()" command is synchronous in JavaScript so a 
subsequent call to seek or play may invoke the native code when the player is 
in an invalid state.
                
> Media.seekTo on first play
> --------------------------
>
>                 Key: CB-403
>                 URL: https://issues.apache.org/jira/browse/CB-403
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.4.0
>            Reporter: Mathieu Savage
>            Assignee: Joe Bowser
>
> 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