Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked July 14th 2010 by Daniel Lim
  • 1.3.2
  • 1.3.3
  • 3.2
  • bug
  • ios4
  • videoplayer
0 Comments

4 Answers

  • I am also having the same problem. Can't we get back the old behavior?

    — answered July 15th 2010 by Vinod Tella
    permalink
    0 Comments
  • 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.

    — answered July 15th 2010 by Kosso
    permalink
    1 Comment
    • Kosso,

      I have two apps : one iphone with 1.3.3/IOS4 and one iPad with 1.3.3/3.2, both behave the same. Yes, having scalingMode:Titanium.Media.VIDEO_SCALING_ASPECT_FIT would scale the ratio correctly but the issue is done button in fullscreen mode.

      Since there's bug in "done" button, which's not longer triggering any listeners, i can't load video in that mode without appending close button to null container and close video. When user click on done, i need to close the entire view, including videoplayer so it's easier and faster to bring user back to video list to select next movie. But now, they have to do extra step to close the videoplayer. In iPad, there's not much of an issue, but on iphone, the close window button disappear occasionally, or show only half of it when they click "done" to put down fullscreen. It might something to do with define window orientation modes for landscapes. It's hard to put TI and orientation in a same sentence. :)

      Since movie are widescreen aspect, it's only logical to load them in landscape mode, and fullscreen if i want to. I love the way it used to work. I can see it though, some might want to manipulate the orientation, however, I don't see any function or method to initialize what it used to.

      — commented July 15th 2010 by Daniel Lim
  • 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?

    — answered July 16th 2010 by Daniel Lim
    permalink
    1 Comment
    • Nevermind,
      movie.release() works

      — commented July 16th 2010 by Daniel Lim
  • 25

    — answered June 19th 2012 by Bill Freedman
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.