- fix spacing issue

This commit is contained in:
evkwan 2022-05-03 14:47:43 +08:00
parent 95a55a2551
commit 12189a94eb

View File

@ -1018,14 +1018,14 @@ class ReactExoplayerView extends FrameLayout implements
if (loadVideoStarted) { if (loadVideoStarted) {
loadVideoStarted = false; loadVideoStarted = false;
if (audioTrackType != null) { if (audioTrackType != null) {
setSelectedAudioTrack(audioTrackType, audioTrackValue); setSelectedAudioTrack(audioTrackType, audioTrackValue);
} }
if (videoTrackType != null) { if (videoTrackType != null) {
setSelectedVideoTrack(videoTrackType, videoTrackValue); setSelectedVideoTrack(videoTrackType, videoTrackValue);
} }
if (textTrackType != null) { if (textTrackType != null) {
setSelectedTextTrack(textTrackType, textTrackValue); setSelectedTextTrack(textTrackType, textTrackValue);
} }
Format videoFormat = player.getVideoFormat(); Format videoFormat = player.getVideoFormat();
int width = videoFormat != null ? videoFormat.width : 0; int width = videoFormat != null ? videoFormat.width : 0;
int height = videoFormat != null ? videoFormat.height : 0; int height = videoFormat != null ? videoFormat.height : 0;