Commit 57068a64 by Oliver Woodman

Clear subtitle when text disabled.

parent 57faa497
...@@ -246,6 +246,9 @@ public class DemoPlayer implements ExoPlayer.Listener, ChunkSampleSource.EventLi ...@@ -246,6 +246,9 @@ public class DemoPlayer implements ExoPlayer.Listener, ChunkSampleSource.EventLi
pushSurfaceAndVideoTrack(false); pushSurfaceAndVideoTrack(false);
} else { } else {
pushTrackSelection(type, true); pushTrackSelection(type, true);
if (type == TYPE_TEXT && index == DISABLED_TRACK && textListener != null) {
textListener.onText(null);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment