[SOLVED] Playing a video as non-blocking

Started by Cassiebsg, Sat 11/06/2016 11:07:44

Previous topic - Next topic

Cassiebsg

If this turns out to be an advanced question, please move it to the appropriate forum.

Is there anyway to play a video inside AGS as non-blocking?

Reason I ask, is because I need to have a video playing with muted audio, so I can use the game's music (can be changed by the player at anytime!).

I want the video running in the background non-blocking, so that I can add characters/narrator speech+text talking on the foreground. You could say "add it to the video", but again, the player can change the music at will in game, and I want the music to change, so sound in video needs to play muted.

I could import the frames into the project... but the intro video has currently 900 frames, and I have at least 2 more in mind. I'm afraid that it might become too heavy?
Another way would be to render the sprites and create the animations with views and the Tween module, which is probably what I'll end up doing if the non-blocking video doesn't work.

@CW or other code wizards: Assuming the video can't be played non-blocking atm, would it be possible/easy to make it possible to add "eNoBlock" to the video play options? Just wondering. (roll)

EDIT: I just found out this can be done using the AGS Theora Plugin. :-D

EDIT 2: SOLVED: Post #2 on this thread https://www.adventuregamestudio.co.uk/forums/index.php?msg=636657112
There are those who believe that life here began out there...

Gal Shemesh

I know that this thread is quite old, but I don't want to make another one on the same topic.

You've mentioned that this can be done using the AGS Theora Plugin. I've read the 'PlayVideo' section in the manual, however I didn't find any info about playing a video with non-blocking; I set an OGV video to run, and as you tried, I'm willing to have the speech text showing on-top of it. Did you managed to achieve this?

Would appreciate if you could cast some light on this matter to me. :)

Thanks

Cassiebsg

#2
Hi.

Yes, I did solved it. :)
I ended up using the Direct3D plugin by AJA:
https://www.adventuregamestudio.co.uk/forums/modules-plugins-tools/plugin-direct3d-v1-0-sprite-and-theora-video-rendering-2012-02-08/

The Theora plugin has a bug with flipped frames, which is why I dropped it.

There's also this more recent plugin by CW that is based on the Direct3D plugin:
https://www.adventuregamestudio.co.uk/forums/modules-plugins-tools/plugin-spritevideo-v0-9-3-sprite-and-video-render-based-on-direct3d-plugin/

Read documentation for both before you decide on one... or try both. :)
There are those who believe that life here began out there...

SMF spam blocked by CleanTalk