Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2647] initialPlaybackTime and endPlaybackTime not working

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-04-01T21:11:03.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbug, ios, time, videoplayer
ReporterBen S.
AssigneeMauro Parra-Miranda
Created2012-08-15T05:47:01.000+0000
Updated2016-03-08T07:41:44.000+0000

Description

Problem

The settings - initialPlaybackTime - endPlaybackTime don't work for the video player. The initialPlaybackTime is ignored and the endPlaybackTime isn't even set in the video player.

Test case

Run this app with iPhone simulator 5.1 and then enter any seconds you want to use. Then while the video is played, you can click on the video to see the current playback time, the set initialPlaybackTime and the set endPlaybackTime. endPlaybackTime is always NaN. And initialPlaybackTime is correctly set, but ignored by the video player. app.js is attached to this ticket.

Logs

[INFO] playback time: 2239.325638
[INFO] initial playback time: 10000
[INFO] end playback time: NaN
[INFO] playback time: 4350.692946
[INFO] initial playback time: 10000
[INFO] end playback time: NaN
[INFO] playback time: 6679.456934
[INFO] initial playback time: 10000
[INFO] end playback time: NaN

Attachments

FileDateSize
app.js2012-08-15T05:47:01.000+00002071
Schoenen_Tag.mp42012-08-15T05:47:01.000+00009076839

Comments

  1. Pedro Enrique 2013-04-01

    Invalid, According to the documentation: endPlaybackTime: On iOS, defaults to NaN, which indicates natural end time of the movie. Changing the value to a value less than duration causes the movie to stop playing at the specified point. On iOS, this value is not applicable to streaming media, so NaN is returned if the current media is being streamed. initialPlaybackTime: Defaults to NaN in iOS and 0 in Android, indicating the natural start time of the movie.
  2. Mauro Parra-Miranda 2013-11-24

    Invalid issue.

JSON Source