I have a video and when I hit the done button, the complete event isnt firing:
var win = Titanium.UI.currentWindow; var video = win.video; var activeMovie = Titanium.Media.createVideoPlayer({ contentURL: video, backgroundColor:'#111', fullscreen:true, movieControlMode:Titanium.Media.VIDEO_CONTROL_EMBEDED, scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL }); activeMovie.addEventListener('complete',function(e) { // Only fires when video ends Ti.API.info(e); }); win.add(activeMovie); win.orientationModes = [ Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT ]; activeMovie.play();According to the API, this event should fire when hitting the done button: VIDEO_FINISH_REASON_USER_EXITED - the video playback ended by user action (such as clicking the Done button)
And according to the API docs for VideoPlayer:
complete fired when movie playback ends or a user exits playback Event properties reason the completion reason. One of Titanium.Media.VIDEO_FINISH_REASON_PLAYBACK_ENDED, Titanium.Media.VIDEO_FINISH_REASON_PLAYBACK_ERROR or Titanium.Media.VIDEO_FINISH_REASON_USER_EXITED. source the source object that fired the event type the name of the event firedAny ideas?