Closed JuKu closed 3 years ago
How i play the video:
//on initialization
VideoPlayer videoPlayer = VideoPlayerCreator.createVideoPlayer(viewport);
try {
this.videoPlayer.play(Gdx.files.absolute("./data/video/intro_sequence.mp4"));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
//...
//in gameloop
videoPlayer.render();
The codec is not supported in the prebuild ffmpeg. To play it safe with licensing, the initial prebuild ffmpeg for the desktop player only supports webm/ogg video. If you want other codecs, you'll have to build your own ffmpeg for now.
Look at #68 for some current building hints
Hi,
I have tried to play an MP4 video, but there i get this exception:
@Robbiedobbie Which file formats are supported?