SimpleMediaPlayer

Simple library for playing mjpg with audio in intros, cutscenes, menu animations, gui HUDs or embedded materials. Easy to install and run. No external encoders nor decoders required. Equipped with a set of effects like LCD, grain, CRT, B&W, VHS etc. Desktop only for technical(ImageIO jpg decoders which can be replaced with Android counterparts thou) and practical(heavy CPU, RAM and GC usage) reasons.

This is not only a decoder/encoder. It provides you with a set of tools to run a movie in couple of lines of code without dealing with shaders, materials and textures.

Run as a state:

mediaPlayer=new SimpleMediaPlayer(this);
BaseAppState introState=mediaPlayer.genState(... );
...
mediaPlayer.update(tpf);   

Run as a geometry

mediaPlayer=new SimpleMediaPlayer(this);
menuGeometry1=mediaPlayer.genGeometry( ...);
mediaPlayer.loadAndPlayMedia();    
...
mediaPlayer.update(tpf);     

Run as a material

mediaPlayer=new SimpleMediaPlayer(this);
Material  modelMat=mediaPlayer.genMaterial(  ...);
((Node)sceneAsNode.getChild("TV")).getChild("mat2").setMaterial(modelMat);
mediaPlayer.loadAndPlayMedia();     
...
mediaPlayer.update(tpf);      

More on store and github page.

Store

10 Likes

@polinc thanks so much for your contribution :slightly_smiling_face: