Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Harrison Mendonça
2020-05-06 12:09:41 -03:00
2 changed files with 5 additions and 0 deletions

View File

@@ -640,6 +640,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 = _playerItem.presentationSize.width > _playerItem.presentationSize.height ? @"landscape" : @"portrait";
}
if (self.onVideoLoad && _videoLoadStarted) {