react-native-theoplayer 3.10.2 → 3.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/ios/THEOplayerRCTPlayerAPI.swift +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.10.3] - 24-03-22
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fixed a crash on iOS when playing an IMA Ad after reparenting the THEOplayerView to a different native Viewcontroller.
|
|
13
|
+
|
|
8
14
|
## [3.10.2] - 24-03-22
|
|
9
15
|
|
|
10
16
|
### Changed
|
|
@@ -60,6 +60,7 @@ class THEOplayerRCTPlayerAPI: NSObject, RCTBridgeModule {
|
|
|
60
60
|
let (sourceDescription, metadataTrackDescriptions) = THEOplayerRCTSourceDescriptionBuilder.buildSourceDescription(src)
|
|
61
61
|
if let srcDescription = sourceDescription {
|
|
62
62
|
if let player = theView.player {
|
|
63
|
+
self.triggerViewHierarchyValidation(player)
|
|
63
64
|
self.setNewSourceDescription(player: player, srcDescription: srcDescription)
|
|
64
65
|
theView.processMetadataTracks(metadataTrackDescriptions: metadataTrackDescriptions)
|
|
65
66
|
}
|
|
@@ -71,6 +72,15 @@ class THEOplayerRCTPlayerAPI: NSObject, RCTBridgeModule {
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
}
|
|
75
|
+
|
|
76
|
+
private func triggerViewHierarchyValidation(_ player: THEOplayer) {
|
|
77
|
+
// TEMP: trigger a ViewController Hierarchy revalidation for IMA on the iOS THEOplayer SDK
|
|
78
|
+
#if canImport(THEOplayerGoogleIMAIntegration)
|
|
79
|
+
let originalFrame = player.frame
|
|
80
|
+
player.frame.size.width -= 1
|
|
81
|
+
player.frame = originalFrame
|
|
82
|
+
#endif
|
|
83
|
+
}
|
|
74
84
|
|
|
75
85
|
private func setNewSourceDescription(player: THEOplayer, srcDescription: SourceDescription) {
|
|
76
86
|
if DEBUG_PLAYER_API { PrintUtils.printLog(logText: "[NATIVE] Setting new source on TheoPlayer") }
|