[AC-4577] InitialPlaybackTime of videoPlayer not working on IOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2016-10-25T15:04:29.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Alloy |
Labels | n/a |
Reporter | Juan Evangelista |
Assignee | Shak Hossain |
Created | 2016-10-24T09:56:36.000+0000 |
Updated | 2016-10-25T20:57:03.000+0000 |
Description
The initialPlaybackTime property of video player does on IOS not work consistently.
Instead of starting from this time, it always starts from the beginning
The issue does not occur on Android.
Steps to Reproduce:
1. Create a project with code below and install it on iOS device
Index.xml
http://0.s3.envato.com/h264-video-previews/80fad324-9db4-11e3-bf3d-0050569255a8/490527.mp4"
height="300" width="300" initialPlaybackTime="20000">
Index.js
$.index.open();
2. Run project
Actual Result
===========
The video plays from the beginning
Expected Result:
=============
The video should start to play from 20 seconds.
When you use the property
initialPlaybackTime
you need to specify a local video, because you may not have the remote video data already when creating the video player. So in this case, you way want to check out theTi.Media.VideoPlayer
events and use thesetCurrentPlaybackTime
to set the playback time after the video buffer is available. Thx!