这是indexloc提供的服务,不要输入任何密码
Skip to content

Force the use of Audio Software Decoder #1528

@jrocharodrigues

Description

@jrocharodrigues

I have multiple SmothStreaming content that plays well on exoplayer in multiple devices.
However on a specific device, Gionee Elife E3 (http://www.gsmarena.com/gionee_elife_e3-6085.php) it doesn't work.
I hit play, the player starts buffering, but it never enters the state READY and the playback doesn't start.
I've increased the buffer to a point it loads all the video but it never changes to READY state.
After poking around a bit, i discover if i forced MediaCodecUtil.getDecoderInfo to return OMX.google.aac.decoder instead of OMX.MTK.AUDIO.DECODER.AAC the content plays.

I've tested on other devices that use the same decoder (OMX.MTK.AUDIO.DECODER.AAC) with the same content and it works fine, so i guess the problem is only with this device.

My question is, is there anyway i can force exoplayer to use OMX.google.aac.decoder without having to change exoplayer internal classes?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions