react-native-theoplayer 3.3.0 → 3.3.1
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,13 @@ 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.3.1] - 23-12-11
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fixed an issue on Android where a `ContentResumeRequested` ad event was never broadcasted.
|
|
13
|
+
- Fixed an issue on iOS where the ad duration was provided in milliseconds instead of seconds.
|
|
14
|
+
|
|
8
15
|
## [3.3.0] - 23-12-11
|
|
9
16
|
|
|
10
17
|
### Changed
|
|
@@ -106,7 +106,7 @@ class AdEventAdapter(private val adsApi: AdsApiWrapper, eventEmitter: AdEventEmi
|
|
|
106
106
|
"aderror" -> GoogleImaAdEventType.AD_ERROR
|
|
107
107
|
"adbuffering" -> GoogleImaAdEventType.AD_BUFFERING
|
|
108
108
|
"adbreakbegin" -> GoogleImaAdEventType.AD_BREAK_STARTED
|
|
109
|
-
"adbreakend" -> GoogleImaAdEventType.
|
|
109
|
+
"adbreakend" -> GoogleImaAdEventType.CONTENT_RESUME_REQUESTED
|
|
110
110
|
else -> null /*unknown*/
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -141,7 +141,7 @@ class THEOplayerRCTAdAdapter {
|
|
|
141
141
|
width: adData[PROP_GOOGLE_AD_WIDTH] as? Int,
|
|
142
142
|
height: adData[PROP_GOOGLE_AD_HEIGHT] as? Int,
|
|
143
143
|
integration: THEOplayerRCTTypeUtils.adIntegrationKind((adData[PROP_AD_INTEGRATION] as? String) ?? ""),
|
|
144
|
-
duration: lround(
|
|
144
|
+
duration: lround((adData[PROP_AD_DURATION] as? Double) ?? 0.0),
|
|
145
145
|
mediaFiles: [], // TODO
|
|
146
146
|
adSystem: adData[PROP_GOOGLE_AD_AD_SYSTEM] as? String,
|
|
147
147
|
creativeId: adData[PROP_GOOGLE_AD_CREATIVE_ID] as? String,
|