Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Finding the end of the video  (Read 1584 times)

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Finding the end of the video
« on: December 22, 2005, 06:56:46 AM »

Hey, I wanted something to happen once the movie finishes playing. I know it has to do with the TheoraMovieMessage, but I'm not sure how to check if it's actually ended or not... Can someone give a little help?
Logged

pj

  • Guest
Finding the end of the video
« Reply #1 on: December 22, 2005, 09:45:51 AM »

CUrrently there is no real good way to tell if the movie has ended. The end movie stream messages really apply to the finish decoding of the stream. You can (in your Audio Class) monitor the returned audio buffer.. and if it is returning 0 bytes more then once in a row, then the movie is probably done. I know, kinda a hack, but the easiest solution right now, unless you want to submit a patch for the plugin. Sorry, but I have little time right now to donate to the plugin (holidays, OIS, etc etc).
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Finding the end of the video
« Reply #2 on: December 26, 2005, 07:24:26 PM »

Works great, thanks for the advice!  :D  :D
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Finding the end of the video
« Reply #3 on: February 17, 2006, 04:15:29 PM »

Just wanted to clarify that an additional Ogg Message was added to the plugin to determin when the movie was actually done playing.
Logged