Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
2b33b9ebbb
@ -3,6 +3,7 @@
|
|||||||
### Version 5.1.0-alpha6
|
### Version 5.1.0-alpha6
|
||||||
|
|
||||||
- Fix iOS bug which would break size of views when video is displayed with controls on a non full-screen React view. [#1931](https://github.com/react-native-community/react-native-video/pull/1931)
|
- Fix iOS bug which would break size of views when video is displayed with controls on a non full-screen React view. [#1931](https://github.com/react-native-community/react-native-video/pull/1931)
|
||||||
|
- Fix video dimensions being undefined when playing HLS in ios. [#1992](https://github.com/react-native-community/react-native-video/pull/1992)
|
||||||
|
|
||||||
### Version 5.1.0-alpha5
|
### Version 5.1.0-alpha5
|
||||||
|
|
||||||
|
@ -640,6 +640,10 @@ static int const RCTVideoUnset = -1;
|
|||||||
} else {
|
} else {
|
||||||
orientation = @"portrait";
|
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) {
|
if (self.onVideoLoad && _videoLoadStarted) {
|
||||||
|
Loading…
Reference in New Issue
Block a user