Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24200] iOS: initialPlaybackTime does not function

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterLee Morris
AssigneeUnknown
Created2016-12-07T00:01:22.000+0000
Updated2018-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

FileDateSize
Xcode.rtf2016-12-07T00:00:01.000+00001231

Comments

  1. Hans Knöchel 2016-12-07

    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!

JSON Source