Commit 850bd5ad authored by Donald's avatar Donald

video player improvements

parent c36b59a0
......@@ -373,7 +373,7 @@ public class PlayerActivity extends ThemedActivity implements ExoPlayer.EventLi
new AdaptiveVideoTrackSelection.Factory(BANDWIDTH_METER);
trackSelector = new DefaultTrackSelector(mainHandler, videoTrackSelectionFactory);
trackSelector.addListener(this);
trackSelectionHelper = new TrackSelectionHelper(trackSelector, videoTrackSelectionFactory);
trackSelectionHelper = new TrackSelectionHelper(trackSelector, videoTrackSelectionFactory, getThemeHelper());
player = ExoPlayerFactory.newSimpleInstance(this, trackSelector, new DefaultLoadControl(),
drmSessionManager, preferExtensionDecoders);
player.addListener(this);
......
......@@ -57,6 +57,8 @@ public abstract class ThemedActivity extends AppCompatActivity implements UiElem
updateUiElements();
}
public ThemeHelper getThemeHelper() { return themeHelper; }
public void updateTheme(){
themeHelper.updateTheme();
coloredNavBar = SP.getBoolean(getString(R.string.preference_colored_nav_bar), false);
......
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 to comment