Wintermute Engine > WME Lite

Video Support

(1/2) > >>

mylesblasonato:
Hello again :)
This question is probably best answered by Mnem but is it possible to integrate a cross-platform API for playing video to the WME Lite source?
I could do it but I just wanted to know if WME is set up for it before I attempt it.

Cheers  ::beer
Myles Blasonato.

odnorf:
A universal decoder might be difficult. Imo it's better to use different decoders for different platforms and that's what I have suggested to Mnemonic. iP* devices already have a fast licensed h264 decoder that can be used by apps and for desktop OSes you can still use theora or even better webm. I understand the developers will have to reencode twice but since desktop/mobile devices have different resolutions I think they'd do it anyway, even for the same codec.

mylesblasonato:
Thanks for the reply odnorf :)
I guess i'll start working on a iPhone one then.

Cheers  ::beer
Myles Blasonato.

lacosaweb:
Hi, any progress in video playing for WME Lite?

Are theora videos can be played or not?

Thanks

Lazov:
I was able to add video support for Android. Also checked the work on Linux. But the sound, unfortunately, does not work. I will use this code:


--- Code: WME Script ---method PlayVideoT(video, sound){  var cMusic = Game.GetMusic();  var cMusicPos = Game.GetMusicPosition();   Game.PlayMusic(sound);  Game.PlayTheora(video, null, null, null, false);   if (cMusic != null) {    Game.PlayMusic(cMusic, true);    Game.SetMusicPosition(cMusicPos);  }}There is a possibility of out-of-sync audio and video, but I did not notice it.

Compiled libraries can be obtained from here:
https://www.cateia.com/libtheoraplayer/wiki/index.php?title=Releases
You need to add these libraries to build files (for example, Makefile). You also need to add the path to the folder with files headers (.h), which are connected in the engine code.

I tested on the following repositories:
https://bitbucket.org/hcdaniel/wmelite-rapaki-edition - Android
https://bitbucket.org/JanKavan/wmelite-julia-branch - Linux

Navigation

[0] Message Index

[#] Next page

Go to full version