Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Skip Entity.PlayTheora  (Read 3747 times)

0 Members and 1 Guest are viewing this topic.

The Man

  • Occasional poster
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 67
    • View Profile
Skip Entity.PlayTheora
« on: November 11, 2014, 01:50:13 PM »

Sorry if this has been asked before, but I couldn't find anything about it in the forum!
I'm using entities to play my videos because when I use Game.PlayTheora the quality of the video seems to decrease a lot (I really don't understand why!)

My question is: is there a way to skip videos that are played through an entity? I generally use a code similar to this:

Code: [Select]
var video = Scene.GetNode("video");
video.PlayTheora("name_of_the_video.ogv");
while (video.IsTheoraPlaying())
{
Sleep();
}

I'd be really grateful if someone could help me, because I'd hate to have to choose between having bad quality videos or unskippable videos!
Logged

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • View Profile
    • Tele Juego
Re: Skip Entity.PlayTheora
« Reply #1 on: November 19, 2014, 08:25:24 AM »

I have not tried.
Code: [Select]
on "Keypress"
{
  // ignore keypresses in the intro screen
  if(Game.PlayTheora("name_of_the_video.ogv")) return;

  // on Esc or F1 key
  if(Keyboard.KeyCode==VK_ESCAPE)
  {
    return;
  }
 

Page created in 0.293 seconds with 19 queries.