mirror of
https://github.com/zoriya/react-native-video.git
synced 2025-12-06 07:16:12 +00:00
Fix video dimensions for HLS streams
This commit is contained in:
@@ -638,6 +638,10 @@ static int const RCTVideoUnset = -1;
|
||||
} else {
|
||||
orientation = @"portrait";
|
||||
}
|
||||
} else if (_playerItem.presentationSize.height) {
|
||||
width = [NSNumber numberWithFloat:_playerItem.presentationSize.width];
|
||||
height = [NSNumber numberWithFloat:_playerItem.presentationSize.height];
|
||||
orientation = width > height ? @"landscape" : @"portrait";
|
||||
}
|
||||
|
||||
if (self.onVideoLoad && _videoLoadStarted) {
|
||||
|
||||
Reference in New Issue
Block a user