cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Jong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1452) Media position incorrect after being set beyond duration
Date Wed, 06 Mar 2013 17:24:12 GMT

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

James Jong commented on CB-1452:
--------------------------------

Submitted pull request:
https://github.com/apache/cordova-ios/pull/25

This fixes when you attempt to SeekBy or SeekTo past the end of the media file.  I was able
to reproduce in both cases with multiple media files.  Note that this problem occurs with
both remote http and local files.  It also affects both short and long duration media files.

                
> Media position incorrect after being set beyond duration
> --------------------------------------------------------
>
>                 Key: CB-1452
>                 URL: https://issues.apache.org/jira/browse/CB-1452
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>            Reporter: Becky Gibson
>            Assignee: James Jong
>            Priority: Minor
>             Fix For: 2.6.0
>
>
> While playing a media file, set the position to be greater than the duration of the file
using the media.seekTo() api.  This will properly stop the playing of the media.  However,
the media.position is set to the value beyond the duration. The media can not be played again
until media.stop is called.  
> This can be reproduced in the mobile spec manual audio test:
> 1) enter a value of 8 into the SeekBy/SeekTo input
> 2) press play to start the audio playing
> 3) press SeekBy button 
> 4) press SeekBy button again to make new position greater than the 18 second duration.
 The media will stop playing
> 5) press the play button to play the media again - it will not play.  You must first
press stop to "officially" stop the media before it will play again.
> I'm not sure this is worth fixing since media will be overhauled.
> The fix is to set the currentTime to 0 in the mediaDidStopPlaying method.  I also think
that we should return a position of 0 from the seekToAudio method if the seekTo position is
greater than the duration but I'm not sure what the other platforms are doing in this case.
The other alternative is to return the requested position from seekToAudio (even if it is
beyond the duration) and to set the MEDIA_POSITION to 0 from the mediaDidStopPlaying method.
 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message