I've encountered some strange behavior with the videoplayer on iPhone.
So, I'm playing a video that is hosted remotely on our servers. I've noticed that if network reception is low on the device, the app will timeout and fire the 'complete' event.
That's a bit inconvenient as the complete event is meant to send a user to another tab after the video plays.
Does anyone know if its possible to either adjust the timeout in the video player or maybe some way to tell if the 'complete' is due to the video timing out or just running its course?
btw - SDK 4.2 Titanium 1.2.2
Hah! Apparently the thought to include code went out one of the ears. Here's the videoplayer as its being initialized:
activeContent = Titanium.Media.createVideoPlayer({ url: content, backgroundColor:'#111', movieControlMode:2, scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL, mediaTypes: Titanium.Media.VIDEO_MEDIA_TYPE_NONE }); win.add(activeContent); activeContent.fullscreen = true; activeContent.play(); activeContent.addEventListener('complete',function(e) { // Only fires when video ends Ti.API.info(e); var tabGroup = win.tabGroup; tabGroup.setActiveTab(3); });