How do we play ogg, ogv, mp4,or avi like a movie on a plane?

How do we play ogg, ogv, mp4,or avi like a movie on a plane?

I don’t recall reading anything about that and I would like to consider this approach for cutscenes for one of my game ideas :slight_smile:

By integrating your video player library of choice, feeding the video data to a Texture2D that’s being shown, and the audio to your custom SoundStream. (See the sound synthesis C++ example.) Urho itself does not contain a ready integration as of now.

ohh… ok then umm… where to read up on how to integrate a third-party library into Urho3D?

You don’t have to integrate third-party libs into Urho3D. You can just link them against your main app.

There is no tutorial to this as such, basically you would examine the build system (CMakeLists.txt files) on how the existing libraries are integrated. There are some instructions related to eg. script bindings in the “contribution checklist” … klist.html but that’s more about the things you have to remember for getting a pull request accepted.

That said, if you’re only interested in getting video playback running in your own program and not contributing it to be a part of Urho3D, then the question is reduced to “how to integrate a third-party library in your own program.” In any case this will involve C++ interaction with the video player library and Urho3D, so a pure script application would be out of the question.

Thanks guys; my main target platform is Android 4.2 ~ 5.x including Android tv tablets and phones.

C++11 would end up being the way for me to go then when I find a good library… I guess I’m just a little worried about getting the linked library(ies) to work on Android as this would be my first time linking a library to Urho3D…

Can you give me any hints/tips on making sure that the libraries I link would work on Android devices when I get them ready to test?

Edit: I just don’t want to screw up Urho3D

I would take a good look at FFMpeg
it is probably the most complete decoder, cross-platform, LGPL, few dependencies, popular enough that there is a lot of information out there.
like … ndroid-ndk

I don’t think you can screw up Urho unless you really get naughty :slight_smile:

1 Like

IMHO TheoraPlay is a good candidate for Urho3D:

Pending mobile compatibility.

many thanks guys, i’m going to look into both of those and see what I can achieve :slight_smile:

Also I don’t ‘plan’ to do anything to screw up Urho3D but you never know when messing around with various libraries :wink:

1 Like