mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Merge branch 'fix-audio-only-playback' into 'master'
Fix audio only playback See merge request videostreaming/grayjay!50
This commit is contained in:
commit
3ed2c1ba5d
1 changed files with 8 additions and 1 deletions
|
@ -1322,7 +1322,14 @@ class VideoDetailView : ConstraintLayout {
|
|||
this.video = video;
|
||||
cleanupPlaybackTracker();
|
||||
|
||||
onVideoChanged.emit(video.video.videoSources[0].width, video.video.videoSources[0].height)
|
||||
if (video.video.videoSources.isNotEmpty()) {
|
||||
onVideoChanged.emit(
|
||||
video.video.videoSources[0].width,
|
||||
video.video.videoSources[0].height
|
||||
)
|
||||
} else {
|
||||
onVideoChanged.emit(0, 0)
|
||||
}
|
||||
|
||||
if (video is JSVideoDetails) {
|
||||
val me = this;
|
||||
|
|
Loading…
Add table
Reference in a new issue