bitmovin-player-react-native 0.27.1 → 0.28.0

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.
@@ -18,8 +18,9 @@ Pod::Spec.new do |s|
18
18
 
19
19
  s.source_files = "ios/**/*.{h,m,mm,swift}"
20
20
 
21
+ s.swift_version = "5.10"
21
22
  s.dependency "React-Core"
22
- s.dependency "BitmovinPlayer", "3.66.1"
23
+ s.dependency "BitmovinPlayer", "3.67.0"
23
24
  s.ios.dependency "GoogleAds-IMA-iOS-SDK", "3.23.0"
24
25
  s.tvos.dependency "GoogleAds-IMA-tvOS-SDK", "4.13.0"
25
26
  end
@@ -105,5 +105,5 @@ dependencies {
105
105
  // Bitmovin
106
106
  implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.31.0'
107
107
  implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
108
- implementation 'com.bitmovin.player:player:3.74.0+jason'
108
+ implementation 'com.bitmovin.player:player:3.78.0+jason'
109
109
  }
@@ -206,6 +206,7 @@ fun ReadableMap.toAdItem(): AdItem? {
206
206
  return AdItem(
207
207
  sources = getArray("sources") ?.toMapList()?.mapNotNull { it?.toAdSource() }?.toTypedArray() ?: return null,
208
208
  position = getString("position") ?: "pre",
209
+ preloadOffset = getDoubleOrNull("preloadOffset") ?: 0.0,
209
210
  )
210
211
  }
211
212
 
package/lib/index.d.mts CHANGED
@@ -87,6 +87,15 @@ interface AdItem {
87
87
  * The fallback ad sources need to have the same `AdSourceType` as the main ad source.
88
88
  */
89
89
  sources: AdSource[];
90
+ /**
91
+ * The amount of seconds the ad manifest is loaded in advance
92
+ * compared to when the ad break is scheduled for playback.
93
+ *
94
+ * Default value is 0.0
95
+ *
96
+ * @platform Android
97
+ */
98
+ preloadOffset?: number;
90
99
  }
91
100
  /**
92
101
  * Contains configuration values regarding the ads which should be played back by the player.
package/lib/index.d.ts CHANGED
@@ -87,6 +87,15 @@ interface AdItem {
87
87
  * The fallback ad sources need to have the same `AdSourceType` as the main ad source.
88
88
  */
89
89
  sources: AdSource[];
90
+ /**
91
+ * The amount of seconds the ad manifest is loaded in advance
92
+ * compared to when the ad break is scheduled for playback.
93
+ *
94
+ * Default value is 0.0
95
+ *
96
+ * @platform Android
97
+ */
98
+ preloadOffset?: number;
90
99
  }
91
100
  /**
92
101
  * Contains configuration values regarding the ads which should be played back by the player.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitmovin-player-react-native",
3
- "version": "0.27.1",
3
+ "version": "0.28.0",
4
4
  "description": "Official React Native bindings for Bitmovin's mobile Player SDKs.",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",
@@ -76,6 +76,16 @@ export interface AdItem {
76
76
  * The fallback ad sources need to have the same `AdSourceType` as the main ad source.
77
77
  */
78
78
  sources: AdSource[];
79
+
80
+ /**
81
+ * The amount of seconds the ad manifest is loaded in advance
82
+ * compared to when the ad break is scheduled for playback.
83
+ *
84
+ * Default value is 0.0
85
+ *
86
+ * @platform Android
87
+ */
88
+ preloadOffset?: number;
79
89
  }
80
90
 
81
91
  /**