[AC-2176] initialPlaybackTime not working in iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-02-09T08:03:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | dev-investigate, videoplayer |
Reporter | Ronnie Swietek |
Assignee | Ritu Agrawal |
Created | 2014-01-29T23:24:43.000+0000 |
Updated | 2016-03-08T07:41:09.000+0000 |
I've come up with a work around. It is weird because I never called play() to begin with, but here it is
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}
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
?
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
My example and you example do not work for me. My keep outputting NaN. What SDK version are you using?
I am using 3.2.0 GA.