mirror of
https://github.com/samsonjs/media.git
synced 2026-04-26 14:57:47 +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.
|
* A listener for receiving notifications of timed text.
|
||||||
*/
|
*/
|
||||||
public interface TextListener {
|
public interface TextListener {
|
||||||
public abstract void onText(String text);
|
void onText(String text);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Constants pulled into this class for convenience.
|
// Constants pulled into this class for convenience.
|
||||||
|
|
@ -287,7 +287,6 @@ public class DemoPlayer implements ExoPlayer.Listener, ChunkSampleSource.EventLi
|
||||||
this.trackNames = trackNames;
|
this.trackNames = trackNames;
|
||||||
this.multiTrackSources = multiTrackSources;
|
this.multiTrackSources = multiTrackSources;
|
||||||
rendererBuildingState = RENDERER_BUILDING_STATE_BUILT;
|
rendererBuildingState = RENDERER_BUILDING_STATE_BUILT;
|
||||||
maybeReportPlayerState();
|
|
||||||
pushSurfaceAndVideoTrack(false);
|
pushSurfaceAndVideoTrack(false);
|
||||||
pushTrackSelection(TYPE_AUDIO, true);
|
pushTrackSelection(TYPE_AUDIO, true);
|
||||||
pushTrackSelection(TYPE_TEXT, true);
|
pushTrackSelection(TYPE_TEXT, true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue