Get Started
Prerequisites
The KeplerMediaDescriptor API is dependent on the following interfaces: For instructions on how to install the Vega SDK, see Vega SDK Setup.Setup
Add the following library dependency to thedependencies section of your package.json file.
Usage
Use this package to get the device video and audio capabilities and play your content accordingly. Some of the common use cases include:- To Determine whether the device supports a specified video/audio codec.
- For a given video codec, determine whether the device supports a certain profile level or frame rate or bitrate or resolution.
- Determine whether the device supports a particular mime type.
- Determine whether the connected device (TV/AVR etc. in a Fire TV Stick use case) supports the Dolby codec.
Import the required interfaces from the package
Query Video Decoder capabilities.
This example shows how to query the capabilities using the codec name. It also sets the other optional attributes like resolution, bitrate, and FPS.VideoDecoderConfig object is ready, you can call the query method. If the capabilities
array returned has at least one entry, it means that the attributes requested are supported
by the device.
Read the video capabilities returned
The capabilities returned from thequeryMediaCapabilities API contain further information about the device support.
Query Audio Decoding Capabilities
Similar to the video capabilities, you can query for audio decoding support of the device.Check Dolby support
You can usequeryMediaCapabilities() method to determine the Dolby support of the device. For a Fire TV Stick the method takes into consideration items such as the connected TV and AVR.
Read the audio capabilities returned
FAQ
Can I get all the codecs supported by the device in a single call?
Can I get all the codecs supported by the device in a single call?
CodecMimeType.MIME_VIDEO_UNSPECIFIED and CodecMimeType.MIME_AUDIO_UNSPECIFIED as a wild card.Modules
- index
- KeplerMediaDescriptor
- MediaCapabilitiesImpl
- turbo-modules/KeplerMediaDescriptorInterface
- turbo-modules/KeplerMediaDescriptorInterface
- turbo-modules/KeplerMediaDescriptorTurboModule
- turbo-modules/KeplerMediaDescriptorTurboModule
- turbo-modules/LevelValues
- turbo-modules/LevelValues
- turbo-modules/NativeInterface
- turbo-modules/NativeInterface
- turbo-modules/ProfileValues
- turbo-modules/ProfileValues

