Jump to content

Android device profile builder


Luke

Recommended Posts

I have started a dynamic device profile builder based upon Google's MediaCodecInfo classes:

 

http://developer.android.com/reference/android/media/MediaCodecInfo.html

 

Source:

 

https://github.com/MediaBrowser/MediaBrowser.ApiClient.Java/blob/master/src/mediabrowser/apiinteraction/android/profiles/AndroidProfile.java#L126

 

 

This is designed to be as accurate as possible for individual devices when making decisions regarding direct stream, codecs, etc. It checks for android api level 16, and there are some additional features that will require api level 21.

 

Feel free to fork and contribute.

 

Todo: 

 

- set VideoProfiles based on CodecCapabilities

- check for api level 21, and if supported, supplement with additional data from AudioCapabilities and VideoCapabilities

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...