react-native-theoplayer 8.2.1 → 8.2.2
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
CHANGED
|
@@ -5,6 +5,10 @@ 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
|
+
## [8.2.2] - 24-09-28
|
|
9
|
+
|
|
10
|
+
- Fixed a build issue on iOS for applications that run without the GOOGLE_IMA feature flag
|
|
11
|
+
|
|
8
12
|
## [8.2.1] - 24-09-27
|
|
9
13
|
|
|
10
14
|
### Fixed
|
|
@@ -9,7 +9,7 @@ import GoogleInteractiveMediaAds
|
|
|
9
9
|
|
|
10
10
|
struct AdsConfig {
|
|
11
11
|
var adSUIEnabled: Bool = true
|
|
12
|
-
var adsImaConfig = AdsImaConfig()
|
|
12
|
+
var adsImaConfig = AdsImaConfig(maxRedirects: 4, enableDebugMode: false)
|
|
13
13
|
var allowedMimeTypes: [String]?
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -20,7 +20,21 @@ struct AdsImaConfig {
|
|
|
20
20
|
var featureFlags: [String:String]?
|
|
21
21
|
var autoPlayAdBreaks: Bool?
|
|
22
22
|
var sessionID: String?
|
|
23
|
-
var bitrate: Int
|
|
23
|
+
var bitrate: Int
|
|
24
|
+
|
|
25
|
+
init(maxRedirects: UInt, enableDebugMode: Bool, ppid: String? = nil, featureFlags: [String : String]? = nil, autoPlayAdBreaks: Bool? = nil, sessionID: String? = nil, bitrate: Int? = -1) {
|
|
26
|
+
self.maxRedirects = maxRedirects
|
|
27
|
+
self.enableDebugMode = enableDebugMode
|
|
28
|
+
self.ppid = ppid
|
|
29
|
+
self.featureFlags = featureFlags
|
|
30
|
+
self.autoPlayAdBreaks = autoPlayAdBreaks
|
|
31
|
+
self.sessionID = sessionID
|
|
32
|
+
#if canImport(THEOplayerGoogleIMAIntegration)
|
|
33
|
+
self.bitrate = bitrate ?? kIMAAutodetectBitrate
|
|
34
|
+
#else
|
|
35
|
+
self.bitrate = bitrate ?? -1
|
|
36
|
+
#endif
|
|
37
|
+
}
|
|
24
38
|
}
|
|
25
39
|
|
|
26
40
|
#if os(iOS)
|
|
@@ -50,7 +64,9 @@ extension THEOplayerRCTView {
|
|
|
50
64
|
if let enableDebugMode = adsImaConfig["enableDebugMode"] as? Bool {
|
|
51
65
|
self.adsConfig.adsImaConfig.enableDebugMode = enableDebugMode
|
|
52
66
|
}
|
|
53
|
-
|
|
67
|
+
if let bitrate = adsImaConfig["bitrate"] as? Int {
|
|
68
|
+
self.adsConfig.adsImaConfig.bitrate = bitrate
|
|
69
|
+
}
|
|
54
70
|
}
|
|
55
71
|
}
|
|
56
72
|
}
|