Skip to content

Commit

Permalink
Fix Live TV not playing video streams
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Jun 18, 2024
1 parent bb4af4a commit a47c97d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,9 @@ private VideoOptions buildExoPlayerOptions(@Nullable Integer forcedSubtitleIndex
internalOptions.setEnableDirectStream(false);
internalOptions.setMaxAudioChannels(Utils.downMixAudio(mFragment.getContext()) ? 2 : null); //have to downmix at server
internalOptions.setSubtitleStreamIndex(forcedSubtitleIndex);
internalOptions.setMediaSourceId(getCurrentMediaSource().getId());
if (!isLiveTv) {
internalOptions.setMediaSourceId(getCurrentMediaSource().getId());
}
DeviceProfile internalProfile = new ExoPlayerProfile(
mFragment.getContext(),
isLiveTv && !userPreferences.getValue().get(UserPreferences.Companion.getLiveTvDirectPlayEnabled()),
Expand Down

0 comments on commit a47c97d

Please sign in to comment.