mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Avoid spurious preparing->idle->preparing transition in demo app.
Issue #81
This commit is contained in:
parent
c34f7368ae
commit
552db2fa7c
1 changed files with 1 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ public class DemoPlayer implements ExoPlayer.Listener, ChunkSampleSource.EventLi
|
|||
* A listener for receiving notifications of timed text.
|
||||
*/
|
||||
public interface TextListener {
|
||||
public abstract void onText(String text);
|
||||
void onText(String text);
|
||||
}
|
||||
|
||||
// Constants pulled into this class for convenience.
|
||||
|
|
@ -287,7 +287,6 @@ public class DemoPlayer implements ExoPlayer.Listener, ChunkSampleSource.EventLi
|
|||
this.trackNames = trackNames;
|
||||
this.multiTrackSources = multiTrackSources;
|
||||
rendererBuildingState = RENDERER_BUILDING_STATE_BUILT;
|
||||
maybeReportPlayerState();
|
||||
pushSurfaceAndVideoTrack(false);
|
||||
pushTrackSelection(TYPE_AUDIO, true);
|
||||
pushTrackSelection(TYPE_TEXT, true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue