Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to incorporate this player with the Fire builder ott app code? #79

Open
amznSSP opened this issue Nov 13, 2018 · 4 comments
Open

How to incorporate this player with the Fire builder ott app code? #79

amznSSP opened this issue Nov 13, 2018 · 4 comments

Comments

@amznSSP
Copy link

amznSSP commented Nov 13, 2018

I am not sure this is the right place to pose this question, but here it goes.I have been working on Fire App builder ott code (https://github.com/amzn/fire-app-builder). By default after debugging it looks like this code base is using 1.5.8 version of exoplayer/amazon port of exoplayer.
With this out of box code - I am having a problem playing hls stream. The video freezes every 7/8 secs and the audio stutters.

Here is what I see in the debug log

com.fireappbuilder.android.calypso I/ExoPlayerStateMachineImpl: dropped frames! count= 15, elapsed=246

Followed by repeated blocks of this:
[11-08 11:30:37.545 16422-16482/com.fireappbuilder.android.calypso I/OMX.google.h264.decoder-MediaCodecVideoTrackRenderer: dropOutputBuffer: bufferIndex = 0
11-08 11:30:37.556 16422-16482/com.fireappbuilder.android.calypso
I/OMX.google.h264.decoder-MediaCodecVideoTrackRenderer: dropOutputBuffer: bufferIndex = 1

The actual skipping happens I see this in the log:

11-08 11:30:43.980 16422-16482/com.fireappbuilder.android.calypso W/AudioTrack: Discontinuity detected [expected 184153319, got 180185319]

I also see this a few times, which might be relevant:
11-08 11:30:58.429 16422-16481/com.fireappbuilder.android.calypso E/ExoPlayerStateMachineImpl: audioTrackUnderrun [48000, 250, 173]
11-08 11:30:59.191 16422-16481/com.fireappbuilder.android.calypso I/ExoPlayerStateMachineImpl: onAvailableRangeChanged: seek timeRange for 0 min = 172171 max =240239

Any pointers on how I should approach this issue? If I want to upgrade the exoplayer lib in the existing code to start using the latest from player from this repository , I am afraid I can't do that because the AMZNMediaPlayer.jar that comes packaged with AMZNMediaPlayerComponent is using exoplayer version of 1.x.

I have been looking at this issue for more than a week now. Any pointers in the right direction are appreciated.

@peddisri
Copy link
Contributor

We will discuss with the relevant team who maintains fire-app-builder and chalk out a plan for update. Stay tuned.

@amznSSP
Copy link
Author

amznSSP commented Nov 14, 2018

Thank you. In the meantime I have upgraded the existing fire app code to use gradle plugin 3.1.3 and compiling with sdk 27.0.3, since lot of the stuff from older versions is going to be obsolete by end of 2018.

@edit4ever
Copy link

Hoping things can move forward on exoplayer update - this fix is needed for mpeg2 seek. Thanks!

@peddisri
Copy link
Contributor

yes we are working on this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants