mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-30 14:44:27 +02:00
added video detail check
This commit is contained in:
parent
7c9e9d5f52
commit
86b6938911
@ -2382,6 +2382,11 @@ class VideoDetailView : ConstraintLayout {
|
|||||||
var videoSourceWidth = _player.exoPlayer?.player?.videoSize?.width
|
var videoSourceWidth = _player.exoPlayer?.player?.videoSize?.width
|
||||||
var videoSourceHeight = _player.exoPlayer?.player?.videoSize?.height
|
var videoSourceHeight = _player.exoPlayer?.player?.videoSize?.height
|
||||||
|
|
||||||
|
if (videoSourceWidth == null || videoSourceHeight == null || videoSourceWidth == 0 || videoSourceHeight == 0){
|
||||||
|
videoSourceWidth = this.video?.video?.videoSources?.get(0)?.width
|
||||||
|
videoSourceHeight = this.video?.video?.videoSources?.get(0)?.height
|
||||||
|
}
|
||||||
|
|
||||||
return if (videoSourceWidth == null || videoSourceHeight == null || videoSourceWidth == 0 || videoSourceHeight == 0){
|
return if (videoSourceWidth == null || videoSourceHeight == null || videoSourceWidth == 0 || videoSourceHeight == 0){
|
||||||
null
|
null
|
||||||
} else{
|
} else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user