Merge pull request #9562 from bravenewpipe/use-videostream-for-audio-only-background-playback
Support audio only background for services only supporting video streams
This commit is contained in:
commit
fc5a5c4e1c
3 changed files with 59 additions and 8 deletions
|
|
@ -1602,8 +1602,9 @@ public final class VideoDetailFragment
|
|||
|
||||
binding.detailControlsDownload.setVisibility(
|
||||
StreamTypeUtil.isLiveStream(info.getStreamType()) ? View.GONE : View.VISIBLE);
|
||||
binding.detailControlsBackground.setVisibility(info.getAudioStreams().isEmpty()
|
||||
? View.GONE : View.VISIBLE);
|
||||
binding.detailControlsBackground.setVisibility(
|
||||
info.getAudioStreams().isEmpty() && info.getVideoStreams().isEmpty()
|
||||
? View.GONE : View.VISIBLE);
|
||||
|
||||
final boolean noVideoStreams =
|
||||
info.getVideoStreams().isEmpty() && info.getVideoOnlyStreams().isEmpty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue