AprilAndFriends / theoraplayer

A multi-threaded C++ library that plays video files supporting multiple codecs across platforms. Easy to use, fast, responsive, abstract interface and minimal dependencies, you'll soon be wondering how you lived without it! ;) Audio and Video interfaces are completely abstracted so the library can be used anywhere, regardless of what you use to display video frames and play audio samples (eg. OpenGL / OpenAL, Direct3D / DirectSound?, SDL / SDL_mixer, X11 / alsa ...) The library can pre-cache video frames and decoded audio samples for maximum efficiency and smooth playback, even on single-cpu systems. Currently, the library supports Theora on Windows, Mac, iOS, Linux, Android, WinRT and Windows Phone. H.264 is supported on Mac and iOS.
BSD 3-Clause "New" or "Revised" License
84 stars 43 forks source link

Compiling for Android #32

Closed machine-mind closed 6 years ago

machine-mind commented 6 years ago

Hi, I would like to compile theoraplayer for android. Are there any examples of compiling and including it in a CMake based Android project?

borisblizzard commented 6 years ago

We have a setup through Visual Studio 2015 and MSBuild scripts that uses Android SDK and NDK to compile it, but there are some very specific steps that need to be done for the installation. We will, however, make it possible to compile everything through Android Studio in the coming weeks, maybe even during the course of the next week. So if you can wait that long, it would probably be the best option. :)

machine-mind commented 6 years ago

@borisblizzard This sounds great! Really looking forward to this! Thanks for all the effort you guys are putting into this project!

machine-mind commented 6 years ago

@borisblizzard Is the android support of theoraplayer ready for prime-time yet?

borisblizzard commented 6 years ago

Almost . :) The theora and theoraplayer modules are almost done and with in a special environment setup already, but still need to be finished as far as a generic setup goes so they can easily be included in any Android Studio project. I'll finish that today and setup the Android Studio project for most or all demos so they can be compiled and deployed easily.

borisblizzard commented 6 years ago

Actually we won't be able to have the demos up quickly, because we didn't have Android demos before either. But all 4 relevant modules (theoraplayer, theora, ogg, tremor) now have a working Android Studio setup. Include the module directory "android-studio/lib" in your Android Studio project to use them. Even though there is no demo for testing it, there is a dummy setup in "android-studio/targets" in the root and you can take a look at "android-studio/targets/settings.gradle" how the module directories are linked into the Android Studio project. I'm not sure if it will work flawlessly when trying to add them through Android Studio's GUI.

machine-mind commented 6 years ago

Hi @borisblizzard I was just wondering if the generic theoraplayer integration for Android is ready. If so I'd be more than happy to test it.

Best, Stefan