Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2176] initialPlaybackTime not working in iOS

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-02-09T08:03:45.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsdev-investigate, videoplayer
ReporterRonnie Swietek
AssigneeRitu Agrawal
Created2014-01-29T23:24:43.000+0000
Updated2016-03-08T07:41:09.000+0000

Description

Comments

  1. Ronnie Swietek 2014-01-30

    I've come up with a work around. It is weird because I never called play() to begin with, but here it is
       vidPlayer.stop();
       vidPlayer.setInitialPlaybackTime(resumeTime);
       vidPlayer.play();
       
  2. Ritu Agrawal 2014-02-09

    I have not been able to reproduce this issue with the following test case on iOS 7.0.3 simulator and Android 4.2.2 device. Are you testing this on simulator or device? {device} var window = Titanium.UI.createWindow({ title: 'Test', fullscreen: true, exitOnClose: true, backgroundColor: 'white' }); var vidPlayer = Ti.Media.createVideoPlayer({ width: 480, height: 360, url: 'http://download.wavetlan.com/SVV/Media/HTTP/H264/Other_Media/H264_test7_voiceclip_mp4_480x360.mp4', autoplay:true, initialPlaybackTime:3000, // 3 seconds in endPlaybackTime:3000 // 3 seconds before end }); window.add(vidPlayer); window.open(); {device}
  3. Ronnie Swietek 2014-02-10

    I am testing this on the iOS simulator but the behavior was the same on the device. So to confirm, Your video started at 3 seconds and ended 3 seconds early with your test code above? What happens when you
    Ti.API.info(vidPlayer.initialPlaybackTime);
    ?
  4. Ritu Agrawal 2014-02-10

    Correct. The video started after 3 seconds and ended 3 seconds early. Here is the output after adding the above line. [INFO] : vidPlayer.initialPlaybackTime : 3000
  5. Ronnie Swietek 2014-02-10

    My example and you example do not work for me. My keep outputting NaN. What SDK version are you using?
  6. Ritu Agrawal 2014-02-10

    I am using 3.2.0 GA.

JSON Source