cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto Pettarin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-4813) Media.seekTo on first play. Again
Date Thu, 09 Jan 2014 17:00:57 GMT

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

Alberto Pettarin commented on CB-4813:
--------------------------------------

I attached the patch for Android. It works for me, but please review it.

Beyond what is explained above, there is an "else" branch commented out, which I was not able
to understand why it was there.

> Media.seekTo on first play. Again
> ---------------------------------
>
>                 Key: CB-4813
>                 URL: https://issues.apache.org/jira/browse/CB-4813
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS, Plugin Media
>    Affects Versions: 2.7.0, 2.9.0, 3.0.0
>         Environment: Mac OS X
>            Reporter: Snr
>            Assignee: Joe Bowser
>         Attachments: AudioPlayer.patch
>
>
> It is impossible to use Media.seekTo before the sound is played the first time.
> There was the same issue previously which was fixed in 2.1.0: https://issues.apache.org/jira/browse/CB-403
> However, I still can replicate the problem: the sound always starts playing from the
beginning of the file.
> var audio = new Media("data/q.mp3",function(){},function(){},function(){});
> audio.seekTo(30000);
> audio.play();



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message