Android Media player/framework species - android

I'm confused about species of media player/framework/library of Android and it's role and positions.
Here is my understanding about Android media player and framework.
I don't have confident what I understand, still be under the chaos.
From Android developer's guide,
for application side: apk uses Application Framework which has two players - MediaPlayer, ExoPlayer
for Native framework side: it has also various players - Nu, awesome, etc.
There're some query for gstreamer vs ffmpeg, ffmpeg vs vlc, or exoplayer vs vitamio. It makes me more confusing.
Would you clearify me to get the right concept for them?
If my android custom device use ffmpeg, that means it doesn't use standard Android media framework?
For stagefright engine, there is no alternative for this?

Related

Need help to understand AMS DRM management

I am new to mobile programming, and I am making an application which will play video files. I am trying Azure media service (AMS) with Xamarin Forms. I would like to know how to it works to have a file that will play with Widevine on android and Fairplay on IOS.
I need explanations!
Thanks in advance!
The implementation on the client side for those different DRM's is about as different as you can imagine. Xamarin.Forms does not out of the box provide a component that can handle the DRM specific methods. You will likely need to create platform specific plugins for that or find a ready-made component for that - although in my search i haven't found that. The closest is a cross platform video player such as https://github.com/adamfisher/Xamarin.Forms.VideoPlayer
Also, you are not likely to get a file to play, it will likely be a stream with different manifests for the two platforms. Azure Media Services however can do that on the fly from a set of MP4's. So it might look like MP4's but what is actually served to the client is a video manifest file.
There is no library/component in Xamarin that allows you to handle multiple DRM schemes. Your best option is to use platform libraries wrapped, to be able to consume DRM content. I would check out the Inside Secure DRM solution, that allows the playback of the DRM Schemes that you listed.

Exoplayer vs Vitamio

i'm writing android app that using HLS video Streaming from server and sometimes from local file.
which one is easier to implement? which one have better performance and features? I want to know pros and cons about exoplayer and vitamio(Standard Edition).
I test this link on samples of Vitamio and Exoplayer(both of samples written by main developers)
Exoplayer play it so faster. Furthermore Exoplayer samples have controller and better samples. I test both of them with other link and the result is the same; I going to use Exoplayer. according to this video from google I/O Exoplayer performance is very good. apps like youtube and lynda.com use exoplayer too. I think exoplayer is easier to use. you can ask your question on issues page of exoplayer in github site; actually Exoplayer sample is better for using and undestanding

RTMP audio live streaming on Android

I need an Android audio streaming player that I could use to play live RTMP streams? I have been searching extensively and have not yet found one that I am comfortable using. I have looked at Vitamio (https://www.vitamio.org/en/) and have tried contacting them for purchasing their source, but have received no response after about two weeks. Therefore, I need to find a different vendor.
Here are the basic requirements:
Audio only playback
No hosting services necessary - I already have RTMP streams.
Android
Intended to be used as a plugin for a Unity 3D project.
Have you tried libVLC?
You can also use my pre-built binaries from Bintray:
armeabi-v7a
x86

Android Audio API in Python

I am trying to write a metronome application in Python, and I intend to publish the application for Android and iOS. I have found a few cross-platform frameworks like Kivy, but their audio support is lacking. More specifically, I need very precise audio timing and I can't rely on thread timing or events. I want to write audio data directly to the device's audio output, or create a MIDI file that can be played on the fly. The problem is, I cannot find any suitable framework for this task.
I know that many games have been written for Android in Python, and those games have excellent and precise sound timing. I need help finding either:
a way to create and play MIDI files on the fly in Android with Python,
a Python framework for Android with a suitable audio API to write sound directly to an audio device, or at least play audio with very accurate timing.
Thanks!
I'm looking for the same thing. I too am looking at Kivy. The possible solutions I can see to audio is hooking in a 3rd party application as a "recipe" in Kivy.
There is aubio, which apparently can be compiled for iOS/Android (see stackoverflow question regarding this), but I believe you have to get your own audio source for it, which could be potentially handled by the audiostream subproject in kivy.
Kivy/audiostream imports the core libpd project it appears, so you can use libpd python bindings. I think this is the path of least resistance, but I had issues when trying to run the examples.
Both of these approaches, I think could work but both need some effort to be able to start using.

Android 2.x App to play mp4 with H.264

Android 2.x does not play mp4 with H.264 baseband from scratch.
However, some apps are able to manage this when playing the video files in-app.
How to append the encoder/decoder to the videoplayer within the app to make sure, that this format is supported without external dependencies.
Thanks
These apps integrate some media library (as example FFmpeg)
However, explaining how to compile, integrate and use such library is well beyond stack overflow scope.
If you are interested how to do this. Read following questions/articles:
FFmpeg on Android
ffmpeg for a android (using tutorial: "ffmpeg and Android.mk")
http://sourceforge.net/projects/ffmpeg4android/
http://www.roman10.net/how-to-build-ffmpeg-for-android/

Categories

Resources