[TIMOB-24200] iOS: initialPlaybackTime does not function
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Lee Morris |
Assignee | Unknown |
Created | 2016-12-07T00:01:22.000+0000 |
Updated | 2018-02-28T19:55:29.000+0000 |
Description
*Steps to reproduce:*
1. Create a default classic app in Studio.
2. Run the code which is provided below on iOs device.
*Actual Result:*
1. App launches successfully.
2. The property "initialPlaybackTime" does not function properly and the video does not play from the time specified in the code.
*Expected Result:*
1. The video should play from the playback time which is specified in the code.
var win = Ti.UI.createWindow();
var vPlayer = Ti.Media.createVideoPlayer({
url: "/AppcDemo.mp4",
initialPlaybackTime: 5000,
mediaControlStyle: Ti.Media.VIDEO_CONTROL_DEFAULT,
mediaTypes: Titanium.Media.VIDEO_MEDIA_TYPE_VIDEO,
autoplay: false
});
// also does not work
// vPlayer.initialPlaybackTime = 5000;
win.open();
*Notes*
Text file is enclosed which shows what could be seen in XCode whilst the application was running on device.
Attachments
File | Date | Size |
---|---|---|
Xcode.rtf | 2016-12-07T00:00:01.000+0000 | 1231 |
Hey [~lmorris], as far as I know, that properly is
on-creation
only, because otherwise it would intercept the current playback that might already have started. Similar case was given in AC-4577 a few weeks ago. If you have a specific use-case to not do that, let me know!