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

Failure to properly play a live stream #6537

Closed
theboubougne opened this issue Oct 13, 2019 · 4 comments
Closed

Failure to properly play a live stream #6537

theboubougne opened this issue Oct 13, 2019 · 4 comments
Assignees

Comments

@theboubougne
Copy link

[REQUIRED] Issue description

When trying to play the following stream, I hear a description of the radio then it stops, however other players are starting to play the stream content right after the intro (MediaPlayer does, VLC does)
http://streaming.rolandradio.net:8000/rolandradio

[REQUIRED] Reproduction steps

I'm using the following code to initialize EXOPlayer

        DataSource.Factory factory =  new DefaultHttpDataSourceFactory(
                userAgent,
                null,
                DefaultHttpDataSource.DEFAULT_CONNECT_TIMEOUT_MILLIS,
                DefaultHttpDataSource.DEFAULT_READ_TIMEOUT_MILLIS,
                true);
this.mediaSource = new ProgressiveMediaSource.Factory(factory).createMediaSource(uri);

[REQUIRED] Link to test content

Here's the URL to reproduce the issue: http://streaming.rolandradio.net:8000/rolandradio

[REQUIRED] A full bug report captured from the device

   this.player.addAnalyticsListener(new AnalyticsListener() {
          @Override
          public void onPlayerStateChanged(EventTime eventTime, boolean playWhenReady, int playbackState) {
              String stateString;
              switch (playbackState) {
                  case Player.STATE_IDLE:
                      stateString = "ExoPlayer.STATE_IDLE ";
                      break;
                  case Player.STATE_BUFFERING:
                      stateString = "ExoPlayer.STATE_BUFFERING";
                      infoListener.onInfo(null, android.media.MediaPlayer.MEDIA_INFO_BUFFERING_START, -1);
                      break;
                  case Player.STATE_READY:
                      stateString = "ExoPlayer.STATE_READY";
                      infoListener.onInfo(null, android.media.MediaPlayer.MEDIA_INFO_BUFFERING_END, -1);
                      if (isPreparing) {
                          isPreparing = false;
                          preparedListener.onPrepared(null);
                          // enabled when prepared
                              /*
                              if (downMixAudioProcessor != null && downMix) {
                                  downMixAudioProcessor.setEnabled(downMix);
                              }
                              */
                      }
                      break;
                  case Player.STATE_ENDED:
                      stateString = "ExoPlayer.STATE_ENDED";
                      completionListener.onCompletion(null);
                      break;
                  default:
                      stateString = "UNKNOWN_STATE";
                      break;
              }

LogHelper.d(TAG, "New  player state: " + stateString + ", playWhenReady: " + playWhenReady);
          }

This is returning the following log when the intro ends:
New player state: ExoPlayer.STATE_ENDED, playWhenReady: true

[REQUIRED] Version of ExoPlayer being used

2.10.5

[REQUIRED] Device(s) and version(s) of Android being used

Any device, but used a Pixel 3 XL on Android10 to debug

@Samrobbo
Copy link
Contributor

Hi,

Can we get some more information? The full player initialisation code, as well as potentially a bug report or a stack trace.

Thanks

@theboubougne
Copy link
Author

theboubougne commented Oct 14, 2019 via email

@tonihei
Copy link
Collaborator

tonihei commented Oct 15, 2019

This is a duplicate of #6315 and #5658. Please see the explanations in there.

@Samrobbo
Copy link
Contributor

We discussed this, and as there are 3 bugs now associated with this issue. We are looking into a workaround.

@Samrobbo Samrobbo reopened this Oct 15, 2019
@Samrobbo Samrobbo added the bug label Oct 15, 2019
@ojw28 ojw28 added bad media and removed duplicate labels Oct 15, 2019
ojw28 pushed a commit that referenced this issue Oct 18, 2019
@ojw28 ojw28 closed this as completed Oct 18, 2019
ojw28 pushed a commit that referenced this issue Oct 18, 2019
@google google locked and limited conversation to collaborators Dec 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants