Compare CGFloats instead

This commit is contained in:
Jens Andersson 2020-05-05 18:10:49 +02:00
parent 4bc2a723a4
commit 08c7aaa77e

View File

@ -641,7 +641,7 @@ static int const RCTVideoUnset = -1;
} else if (_playerItem.presentationSize.height) {
width = [NSNumber numberWithFloat:_playerItem.presentationSize.width];
height = [NSNumber numberWithFloat:_playerItem.presentationSize.height];
orientation = width > height ? @"landscape" : @"portrait";
orientation = _playerItem.presentationSize.width > _playerItem.presentationSize.height ? @"landscape" : @"portrait";
}
if (self.onVideoLoad && _videoLoadStarted) {