![]() Tip: Apps that use MediaCodec for Dolby must also be able to operate on devices without Dolby availability in MediaCodec. AudioTrack supports only clear (not encrypted) input bitstream.Īdditionally, the creation of AudioTrack fails if the encoding format is not supported by the connected endpoint.Ĭertain platforms transcode DDP bitstream to DD if the connected endpoint only supports DD. If the AudioTrack is configured with Dolby encoding format, and if the connecting endpoint supports that encoding format, AudioTrack accepts the Dolby raw bitstream as input and passes the bitstream to the endpoint after IEC61937 packetization. Android P added support for ENCODING_E_AC3_JOC used for Atmos. AudioTrack OverviewĪndroid L added the support of ENCODING_AC3 and ENCODING_E_AC3 encoding formats to AudioFormat. This scenario does allow multichannel PCM when connected to a appropriate AVR. if Dolby is disabled the device will not report support for Dolby. The capabilities reported to applications can farther be effected by the Amazon Audio Settings, e.g. GET_DEVICES_OUTPUTS ) for ( AudioDeviceInfo device : devices ) AUDIO_SERVICE ) AudioDeviceInfo devices = audio. ENCODING_E_AC3_JOC (added in API level 28)Īndroid L does not have an enumeration type for Atmos(ENCODING_E_AC3_JOC) detection however we have an additional mechinism which exposes the information in the similar manner as EXTRA_ENCODINGS, by querying "hdmi_encodings"ĪudioManager audio = ( AudioManager ) mContext.The possible values are one of the ENCODING_XXXX values. This intent also has a provision for apps to detect the capabilities of the connected endpoint (AVR or TV) via EXTRA_ENCODINGS present in the intent. This intent is broadcast whenever HDMI is plugged into or unplugged from to the device. Detecting Dolby supportĪndroid L enhanced the ACTION_HDMI_AUDIO_PLUG intent in AudioManager to report the capabilities of sinks in Lollipop. This section specifies the use of AudioManager, AudioTrack, and MediaCodec APIs to play Dolby audio content as recommended by Android. Implement a custom player that uses AudioManager, AudioTrack, and MediaCodec APIs. (Note that each "amazon/rx.y.z" branch maps to ExoPlayer version x.y.z.) Option 2: Custom Media Player Approach These patches are open sourced here: exoplayer-amazon-port. You can play Dolby (DD/DDP/Atmos) audio content in your app in four ways:ĮxoPlayer is a open source player supported by Google that supports playing Dolby audio stream.Īmazon has developed patches for Exoplayer to enable or enhance playback of Dolby audio content on variuos Amazon devices. For example, "Fire TV Stick (1st Gen)" refers to the first released version of Fire TV Stick. Tip: For a description of names used for Amazon Fire TV devices, see Fire TV Device Specifications. Install and Run the Debug APK to Test Your App.Install and Use the Amazon Web App Tester.Cordova plugin for Amazon Catalog Integration. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |