1.3.2 1.3.3 videoplayer bugs
Before 1.3.x, video player used to open and scale nicely on landscape mode and "complete" eventlistener worked on "Done" button. All you have to do was add/play videoplayer and "complete" eventlistener to close it. Simple and efficient!!
Now, it's not anymore on 1.3.2 and 1.3.3, if you use fullscreen, the done button can't trigger "complete" eventlistner, and there's no way to close video, not to mention the wrong ratio scaling. To make it work, you have to append close button, open it not in full mode. Who want to see video in tiny portrait mode? This is not the way it suppose to work.
I tried movie samples (movie_remote.js) from KS, the complete eventlistener doesn't actually trigger the message. It's the window close event that does, which triggers the movie stop function, and that trigger the complete event eventually. No good.
Bug, i suppose.
4 Answers
-
I am also having the same problem. Can't we get back the old behavior?
-
Are you using scalingMode:Titanium.Media.VIDEO_SCALING_ASPECT_FIT ?
Re: the done button, I can confirm that clicking it while in fullscreen in my app (where a video starts embedded) doesn't trigger the 'complete' event. It closes the fullscreen and pauses it.
I had an issue recently with the video fullscreen event (where I wanted to set orientations or not) which was fixed recently in github. Do you have the latest? Since my videos are all working as expected now.
-
Just found out another issue with videoplayer, this time is on ipad 1.3.3
I used to do this back in 1.2, but the video only load 20% successfully of the time, i had to close and reopen to get the movie to load successfully.
activewebMovie = Titanium.Media.createVideoPlayer({ backgroundColor:'#000', contentURL:link, width:640, height:392, movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT, scalingMode:Titanium.Media.VIDEO_SCALING_ASPECT_FIT });
Now i assign link at last to load video on first attempt.
activewebMovie = Titanium.Media.createVideoPlayer({ backgroundColor:'#000', width:640, height:392, movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT, scalingMode:Titanium.Media.VIDEO_SCALING_ASPECT_FIT }); activewebMovie.url = link.
Also, set video object to null does nothing? Remove it from container and the video still playing in the background? How actually you set video free from memory then?
-
25