Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: fsk on June 21, 2011, 05:02:29 PM

Title: Theora question
Post by: fsk on June 21, 2011, 05:02:29 PM
Hi everyone!
When i play a theora video i wan't to disabled any click of mouse and keyboard keys..
Can i?
Is there any script?
Thanks! :)
Title: Re: Theora question
Post by: metamorphium on June 21, 2011, 11:41:29 PM
I did some modification along these lines which should be theoretically in WME - latest.

the attribute in question is

Game.VideoSkipButton = [0..2];

0 = leftclick skips theora
1 = rightclick skips theora
2 = no mouse skipping allowed

But ask Mnemonic, if it's included in the official branch.
Title: Re: Theora question
Post by: fsk on June 22, 2011, 08:17:54 PM
Thanks metamorphium for the replay..
I will be waiting for an answer of mnemonic! :)
Title: Re: Theora question
Post by: Mnemonic on June 23, 2011, 12:00:11 PM
It's present in the (unofficial) WME latest (http://dead-code.org/download/wme_latest.zip) build.
Title: Re: Theora question
Post by: fsk on June 23, 2011, 12:55:52 PM
Thanks mnemonic.. any example code to understand because i have stuck! :(
Title: Re: Theora question
Post by: fsk on June 25, 2011, 09:18:16 AM
anyone to help me?  ::rock
Title: Re: Theora question
Post by: Spellbreaker on June 25, 2011, 01:56:28 PM
You simply write Game.VideoSkipButton = 2; in your Script, so the video cannot be skipped by mouseclick.
Title: Re: Theora question
Post by: fsk on June 26, 2011, 07:48:37 AM
no working.. Try it if you want!
"VideoSkipButton" there is not.

Look, i use theora.. so, in my game.script:

Game.VideoSkipButton = 2;
Game.PlayTheora ("My Video.ogv");

am i wrong?

Thanks for the replay Spellbreaker..
Title: Re: Theora question
Post by: Spellbreaker on June 26, 2011, 11:18:48 AM
Did you download the wme version that Mnemonic linked above?
Title: Re: Theora question
Post by: fsk on June 26, 2011, 05:29:25 PM
Yes..i have the WME latest build.
Did you tried?
Title: Re: Theora question
Post by: eborr on June 26, 2011, 05:30:47 PM
I tried the download - couldn't download  - downloading file box just hung
Title: Re: Theora question
Post by: Spellbreaker on June 26, 2011, 06:02:59 PM
Just downloaded - worked fine
Wrote Game.VideoSkipButton = 2; into my game.script file - worked fine

Dunno where your problem is, did you _really_ use exactly the version mnemonic linked there, and updated the two files?


cheers
Title: Re: Theora question
Post by: fsk on June 26, 2011, 06:17:49 PM
It's worked..
but i wrote: Game.VideoSkipButton = 3;  :-\
ok for mouse.. but for keyboard? (esc for example to disable)
Title: Re: Theora question
Post by: fsk on July 02, 2011, 09:57:19 AM
Anyone to know how to disable the esc button when i play my video?

and

another problem is the audio of theora? i don't hear anything.. is there any way to saw to change maybe the volume if is down..?

Thanks!
Title: Re: Theora question
Post by: fsk on July 07, 2011, 01:33:48 PM
anyone to have the same problem (disable the esc button when theora is playing) ?  ??? (only me?  ;D )
Title: Re: Theora question
Post by: Mnemonic on July 07, 2011, 01:59:06 PM
You can't do that with full-screen video. But you can use a scene with video entity (entity.PlayTheora()) and then you have complete control over the video playback.
Title: Re: Theora question
Post by: fsk on July 07, 2011, 03:38:23 PM
Thanks Mnemonic!  ::rock