@bluebillywig/react-native-bb-player 8.47.1 → 8.47.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.
Files changed (58) hide show
  1. package/android/build.gradle +0 -10
  2. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeplayersdk/8.46.0/bbnativeplayersdk-8.46.0.aar +0 -0
  3. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeplayersdk/8.46.0/bbnativeplayersdk-8.46.0.module +137 -0
  4. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeplayersdk/8.46.0/bbnativeplayersdk-8.46.0.pom +57 -0
  5. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeplayersdk-core/8.46.0/bbnativeplayersdk-core-8.46.0.aar +0 -0
  6. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeplayersdk-core/8.46.0/bbnativeplayersdk-core-8.46.0.module +264 -0
  7. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeplayersdk-core/8.46.0/bbnativeplayersdk-core-8.46.0.pom +171 -0
  8. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeshared/8.46.0/bbnativeshared-8.46.0.jar +0 -0
  9. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeshared/8.46.0/bbnativeshared-8.46.0.module +159 -0
  10. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeshared/8.46.0/bbnativeshared-8.46.0.pom +36 -0
  11. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeshared-android/8.46.0/bbnativeshared-android-8.46.0.aar +0 -0
  12. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeshared-android/8.46.0/bbnativeshared-android-8.46.0.module +329 -0
  13. package/android/repo/com/bluebillywig/bbnativeplayersdk/bbnativeshared-android/8.46.0/bbnativeshared-android-8.46.0.pom +267 -0
  14. package/android/src/main/java/com/bluebillywig/bbplayer/BBPlayerModule.kt +5 -0
  15. package/android/src/main/java/com/bluebillywig/bbplayer/BBPlayerView.kt +8 -0
  16. package/ios/BBCastButtonView.swift +1 -1
  17. package/ios/BBCastButtonViewManager.swift +3 -3
  18. package/ios/BBCastMiniControlsView.swift +1 -1
  19. package/ios/BBCastMiniControlsViewManager.swift +3 -3
  20. package/ios/BBPlayerExtensions.swift +1 -1
  21. package/ios/BBPlayerModule.mm +1 -0
  22. package/ios/BBPlayerModule.swift +72 -152
  23. package/ios/BBPlayerView.swift +21 -9
  24. package/ios/BBPlayerViewManager.swift +34 -73
  25. package/ios/BBShortsView.swift +6 -3
  26. package/ios/BBShortsViewManager.swift +11 -9
  27. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/_CodeSignature/CodeResources +256 -0
  28. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/_CodeSignature/CodeResources +311 -0
  29. package/lib/commonjs/BBOutstreamView.js +1 -0
  30. package/lib/commonjs/BBOutstreamView.js.map +1 -1
  31. package/lib/commonjs/NativeCommands.js +4 -0
  32. package/lib/commonjs/NativeCommands.js.map +1 -1
  33. package/lib/commonjs/index.js +0 -4
  34. package/lib/commonjs/index.js.map +1 -1
  35. package/lib/commonjs/specs/NativeBBPlayerModule.js.map +1 -1
  36. package/lib/module/BBOutstreamView.js +1 -0
  37. package/lib/module/BBOutstreamView.js.map +1 -1
  38. package/lib/module/NativeCommands.js +4 -0
  39. package/lib/module/NativeCommands.js.map +1 -1
  40. package/lib/module/index.js +0 -8
  41. package/lib/module/index.js.map +1 -1
  42. package/lib/module/specs/NativeBBPlayerModule.js.map +1 -1
  43. package/lib/typescript/src/BBOutstreamView.d.ts.map +1 -1
  44. package/lib/typescript/src/BBPlayer.types.d.ts +2 -0
  45. package/lib/typescript/src/BBPlayer.types.d.ts.map +1 -1
  46. package/lib/typescript/src/NativeCommands.d.ts +1 -0
  47. package/lib/typescript/src/NativeCommands.d.ts.map +1 -1
  48. package/lib/typescript/src/index.d.ts +0 -4
  49. package/lib/typescript/src/index.d.ts.map +1 -1
  50. package/lib/typescript/src/specs/NativeBBPlayerModule.d.ts +1 -0
  51. package/lib/typescript/src/specs/NativeBBPlayerModule.d.ts.map +1 -1
  52. package/package.json +1 -1
  53. package/react-native-bb-player.podspec +3 -2
  54. package/src/BBOutstreamView.tsx +1 -0
  55. package/src/BBPlayer.types.ts +2 -0
  56. package/src/NativeCommands.ts +4 -0
  57. package/src/index.ts +0 -8
  58. package/src/specs/NativeBBPlayerModule.ts +1 -0
@@ -0,0 +1,267 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3
+ <!-- This module was also published with a richer model, Gradle metadata, -->
4
+ <!-- which should be used instead. Do not delete the following line which -->
5
+ <!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
6
+ <!-- that they should prefer consuming it instead. -->
7
+ <!-- do_not_remove: published-with-gradle-metadata -->
8
+ <modelVersion>4.0.0</modelVersion>
9
+ <groupId>com.bluebillywig.bbnativeplayersdk</groupId>
10
+ <artifactId>bbnativeshared-android</artifactId>
11
+ <version>8.46.0</version>
12
+ <packaging>aar</packaging>
13
+ <name>bbnativeplayersdk Shared</name>
14
+ <description>Blue Billywig Native Player SDK for Android</description>
15
+ <url>https://github.com/bluebillywig/bbnativeplayersdk-kotlin</url>
16
+ <inceptionYear>2021</inceptionYear>
17
+ <licenses>
18
+ <license>
19
+ <name>The Apache Software License, Version 2.0</name>
20
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
21
+ <distribution>repo</distribution>
22
+ </license>
23
+ </licenses>
24
+ <developers>
25
+ <developer>
26
+ <id>blue-billywig-github-workflow</id>
27
+ <name>Blue Billywig Github Workflow</name>
28
+ <email>j.koppen@bluebillywig.com</email>
29
+ </developer>
30
+ </developers>
31
+ <scm>
32
+ <connection>scm:git@github.com:bluebillywig/bbnativeplayersdk-kotlin.git</connection>
33
+ <developerConnection>scm:git@github.com:bluebillywig/bbnativeplayersdk-kotlin.git</developerConnection>
34
+ <url>https://github.com/bluebillywig/bbnativeplayersdk-kotlin</url>
35
+ </scm>
36
+ <dependencyManagement>
37
+ <dependencies>
38
+ <dependency>
39
+ <groupId>org.jetbrains.kotlin</groupId>
40
+ <artifactId>kotlin-stdlib</artifactId>
41
+ <version>2.1.0</version>
42
+ </dependency>
43
+ </dependencies>
44
+ </dependencyManagement>
45
+ <dependencies>
46
+ <dependency>
47
+ <groupId>org.jetbrains.kotlinx</groupId>
48
+ <artifactId>kotlinx-coroutines-android</artifactId>
49
+ <version>1.9.0</version>
50
+ <scope>runtime</scope>
51
+ <exclusions>
52
+ <exclusion>
53
+ <groupId>org.jetbrains.kotlin</groupId>
54
+ <artifactId>kotlin-stdlib-common</artifactId>
55
+ </exclusion>
56
+ <exclusion>
57
+ <groupId>org.jetbrains.kotlin</groupId>
58
+ <artifactId>kotlin-test-common</artifactId>
59
+ </exclusion>
60
+ <exclusion>
61
+ <groupId>org.jetbrains.kotlin</groupId>
62
+ <artifactId>kotlin-test-annotations-common</artifactId>
63
+ </exclusion>
64
+ </exclusions>
65
+ </dependency>
66
+ <dependency>
67
+ <groupId>io.ktor</groupId>
68
+ <artifactId>ktor-client-android</artifactId>
69
+ <version>[2.0, 3.1)</version>
70
+ <scope>runtime</scope>
71
+ <exclusions>
72
+ <exclusion>
73
+ <groupId>org.jetbrains.kotlin</groupId>
74
+ <artifactId>kotlin-stdlib-common</artifactId>
75
+ </exclusion>
76
+ <exclusion>
77
+ <groupId>org.jetbrains.kotlin</groupId>
78
+ <artifactId>kotlin-test-common</artifactId>
79
+ </exclusion>
80
+ <exclusion>
81
+ <groupId>org.jetbrains.kotlin</groupId>
82
+ <artifactId>kotlin-test-annotations-common</artifactId>
83
+ </exclusion>
84
+ </exclusions>
85
+ </dependency>
86
+ <dependency>
87
+ <groupId>org.jetbrains.kotlin</groupId>
88
+ <artifactId>kotlin-stdlib</artifactId>
89
+ <scope>runtime</scope>
90
+ <exclusions>
91
+ <exclusion>
92
+ <groupId>org.jetbrains.kotlin</groupId>
93
+ <artifactId>kotlin-stdlib-common</artifactId>
94
+ </exclusion>
95
+ <exclusion>
96
+ <groupId>org.jetbrains.kotlin</groupId>
97
+ <artifactId>kotlin-test-common</artifactId>
98
+ </exclusion>
99
+ <exclusion>
100
+ <groupId>org.jetbrains.kotlin</groupId>
101
+ <artifactId>kotlin-test-annotations-common</artifactId>
102
+ </exclusion>
103
+ </exclusions>
104
+ <version>unspecified</version>
105
+ </dependency>
106
+ <dependency>
107
+ <groupId>org.jetbrains.kotlinx</groupId>
108
+ <artifactId>kotlinx-coroutines-core</artifactId>
109
+ <version>[1.5.2-native-mt, 1.9.0]</version>
110
+ <scope>runtime</scope>
111
+ <exclusions>
112
+ <exclusion>
113
+ <groupId>org.jetbrains.kotlin</groupId>
114
+ <artifactId>kotlin-stdlib-common</artifactId>
115
+ </exclusion>
116
+ <exclusion>
117
+ <groupId>org.jetbrains.kotlin</groupId>
118
+ <artifactId>kotlin-test-common</artifactId>
119
+ </exclusion>
120
+ <exclusion>
121
+ <groupId>org.jetbrains.kotlin</groupId>
122
+ <artifactId>kotlin-test-annotations-common</artifactId>
123
+ </exclusion>
124
+ </exclusions>
125
+ </dependency>
126
+ <dependency>
127
+ <groupId>io.ktor</groupId>
128
+ <artifactId>ktor-client-core</artifactId>
129
+ <version>[2.0, 3.1)</version>
130
+ <scope>runtime</scope>
131
+ <exclusions>
132
+ <exclusion>
133
+ <groupId>org.jetbrains.kotlin</groupId>
134
+ <artifactId>kotlin-stdlib-common</artifactId>
135
+ </exclusion>
136
+ <exclusion>
137
+ <groupId>org.jetbrains.kotlin</groupId>
138
+ <artifactId>kotlin-test-common</artifactId>
139
+ </exclusion>
140
+ <exclusion>
141
+ <groupId>org.jetbrains.kotlin</groupId>
142
+ <artifactId>kotlin-test-annotations-common</artifactId>
143
+ </exclusion>
144
+ </exclusions>
145
+ </dependency>
146
+ <dependency>
147
+ <groupId>org.jetbrains.kotlinx</groupId>
148
+ <artifactId>kotlinx-serialization-json</artifactId>
149
+ <version>1.5.1</version>
150
+ <scope>runtime</scope>
151
+ <exclusions>
152
+ <exclusion>
153
+ <groupId>org.jetbrains.kotlin</groupId>
154
+ <artifactId>kotlin-stdlib-common</artifactId>
155
+ </exclusion>
156
+ <exclusion>
157
+ <groupId>org.jetbrains.kotlin</groupId>
158
+ <artifactId>kotlin-test-common</artifactId>
159
+ </exclusion>
160
+ <exclusion>
161
+ <groupId>org.jetbrains.kotlin</groupId>
162
+ <artifactId>kotlin-test-annotations-common</artifactId>
163
+ </exclusion>
164
+ </exclusions>
165
+ </dependency>
166
+ <dependency>
167
+ <groupId>io.ktor</groupId>
168
+ <artifactId>ktor-client-serialization</artifactId>
169
+ <version>[2.0, 3.1)</version>
170
+ <scope>runtime</scope>
171
+ <exclusions>
172
+ <exclusion>
173
+ <groupId>org.jetbrains.kotlin</groupId>
174
+ <artifactId>kotlin-stdlib-common</artifactId>
175
+ </exclusion>
176
+ <exclusion>
177
+ <groupId>org.jetbrains.kotlin</groupId>
178
+ <artifactId>kotlin-test-common</artifactId>
179
+ </exclusion>
180
+ <exclusion>
181
+ <groupId>org.jetbrains.kotlin</groupId>
182
+ <artifactId>kotlin-test-annotations-common</artifactId>
183
+ </exclusion>
184
+ </exclusions>
185
+ </dependency>
186
+ <dependency>
187
+ <groupId>org.jetbrains.kotlinx</groupId>
188
+ <artifactId>kotlinx-datetime-jvm</artifactId>
189
+ <version>0.6.2</version>
190
+ <scope>runtime</scope>
191
+ <exclusions>
192
+ <exclusion>
193
+ <groupId>org.jetbrains.kotlin</groupId>
194
+ <artifactId>kotlin-stdlib-common</artifactId>
195
+ </exclusion>
196
+ <exclusion>
197
+ <groupId>org.jetbrains.kotlin</groupId>
198
+ <artifactId>kotlin-test-common</artifactId>
199
+ </exclusion>
200
+ <exclusion>
201
+ <groupId>org.jetbrains.kotlin</groupId>
202
+ <artifactId>kotlin-test-annotations-common</artifactId>
203
+ </exclusion>
204
+ </exclusions>
205
+ </dependency>
206
+ <dependency>
207
+ <groupId>com.benasher44</groupId>
208
+ <artifactId>uuid-jvm</artifactId>
209
+ <version>0.3.1</version>
210
+ <scope>runtime</scope>
211
+ <exclusions>
212
+ <exclusion>
213
+ <groupId>org.jetbrains.kotlin</groupId>
214
+ <artifactId>kotlin-stdlib-common</artifactId>
215
+ </exclusion>
216
+ <exclusion>
217
+ <groupId>org.jetbrains.kotlin</groupId>
218
+ <artifactId>kotlin-test-common</artifactId>
219
+ </exclusion>
220
+ <exclusion>
221
+ <groupId>org.jetbrains.kotlin</groupId>
222
+ <artifactId>kotlin-test-annotations-common</artifactId>
223
+ </exclusion>
224
+ </exclusions>
225
+ </dependency>
226
+ <dependency>
227
+ <groupId>com.soywiz.korlibs.krypto</groupId>
228
+ <artifactId>krypto-android</artifactId>
229
+ <version>2.4.12</version>
230
+ <scope>runtime</scope>
231
+ <exclusions>
232
+ <exclusion>
233
+ <groupId>org.jetbrains.kotlin</groupId>
234
+ <artifactId>kotlin-stdlib-common</artifactId>
235
+ </exclusion>
236
+ <exclusion>
237
+ <groupId>org.jetbrains.kotlin</groupId>
238
+ <artifactId>kotlin-test-common</artifactId>
239
+ </exclusion>
240
+ <exclusion>
241
+ <groupId>org.jetbrains.kotlin</groupId>
242
+ <artifactId>kotlin-test-annotations-common</artifactId>
243
+ </exclusion>
244
+ </exclusions>
245
+ </dependency>
246
+ <dependency>
247
+ <groupId>co.touchlab</groupId>
248
+ <artifactId>stately-common-jvm</artifactId>
249
+ <version>1.2.2</version>
250
+ <scope>runtime</scope>
251
+ <exclusions>
252
+ <exclusion>
253
+ <groupId>org.jetbrains.kotlin</groupId>
254
+ <artifactId>kotlin-stdlib-common</artifactId>
255
+ </exclusion>
256
+ <exclusion>
257
+ <groupId>org.jetbrains.kotlin</groupId>
258
+ <artifactId>kotlin-test-common</artifactId>
259
+ </exclusion>
260
+ <exclusion>
261
+ <groupId>org.jetbrains.kotlin</groupId>
262
+ <artifactId>kotlin-test-annotations-common</artifactId>
263
+ </exclusion>
264
+ </exclusions>
265
+ </dependency>
266
+ </dependencies>
267
+ </project>
@@ -137,6 +137,11 @@ class BBPlayerModule(private val reactContext: ReactApplicationContext) :
137
137
  runOnUiThread(viewTag.toInt()) { it.showCastPicker() }
138
138
  }
139
139
 
140
+ @ReactMethod
141
+ override fun updatePlayout(viewTag: Double, playoutJson: String) {
142
+ runOnUiThread(viewTag.toInt()) { it.updatePlayout(playoutJson) }
143
+ }
144
+
140
145
  @ReactMethod
141
146
  override fun loadWithClipId(
142
147
  viewTag: Double,
@@ -524,6 +524,14 @@ class BBPlayerView(private val reactContext: ThemedReactContext) : FrameLayout(r
524
524
  return null
525
525
  }
526
526
 
527
+ fun updatePlayout(playoutJson: String) {
528
+ if (!::playerView.isInitialized) {
529
+ Log.w("BBPlayerView", "Cannot updatePlayout - playerView not initialized")
530
+ return
531
+ }
532
+ playerView.player?.updatePlayoutWithJson(playoutJson)
533
+ }
534
+
527
535
  fun destroy() {
528
536
  Log.d("BBPlayerView", "destroy() called")
529
537
  if (::playerView.isInitialized) {
@@ -1,5 +1,5 @@
1
1
  import UIKit
2
- import GoogleCast
2
+ @preconcurrency import GoogleCast
3
3
 
4
4
  class BBCastButtonView: UIView {
5
5
  private var castButton: GCKUICastButton?
@@ -1,9 +1,9 @@
1
- import React
1
+ @preconcurrency import React
2
2
 
3
3
  @objc(BBCastButtonViewManager)
4
- class BBCastButtonViewManager: RCTViewManager {
4
+ class BBCastButtonViewManager: RCTViewManager, @unchecked Sendable {
5
5
  override func view() -> UIView! {
6
- return BBCastButtonView()
6
+ return MainActor.assumeIsolated { BBCastButtonView() }
7
7
  }
8
8
 
9
9
  override static func requiresMainQueueSetup() -> Bool {
@@ -1,5 +1,5 @@
1
1
  import UIKit
2
- import GoogleCast
2
+ @preconcurrency import GoogleCast
3
3
 
4
4
  class BBCastMiniControlsView: UIView {
5
5
  private var miniControlsViewController: GCKUIMiniMediaControlsViewController?
@@ -1,9 +1,9 @@
1
- import React
1
+ @preconcurrency import React
2
2
 
3
3
  @objc(BBCastMiniControlsViewManager)
4
- class BBCastMiniControlsViewManager: RCTViewManager {
4
+ class BBCastMiniControlsViewManager: RCTViewManager, @unchecked Sendable {
5
5
  override func view() -> UIView! {
6
- return BBCastMiniControlsView()
6
+ return MainActor.assumeIsolated { BBCastMiniControlsView() }
7
7
  }
8
8
 
9
9
  override static func requiresMainQueueSetup() -> Bool {
@@ -1,5 +1,5 @@
1
1
  import Foundation
2
- import bbnativeshared
2
+ @preconcurrency import bbnativeshared
3
3
 
4
4
  extension Project {
5
5
  func toDictionary() -> [String: Any?] {
@@ -28,6 +28,7 @@ RCT_EXTERN_METHOD(expand:(nonnull NSNumber *)viewTag)
28
28
  RCT_EXTERN_METHOD(autoPlayNextCancel:(nonnull NSNumber *)viewTag)
29
29
  RCT_EXTERN_METHOD(destroy:(nonnull NSNumber *)viewTag)
30
30
  RCT_EXTERN_METHOD(showCastPicker:(nonnull NSNumber *)viewTag)
31
+ RCT_EXTERN_METHOD(updatePlayout:(nonnull NSNumber *)viewTag playoutJson:(NSString *)playoutJson)
31
32
 
32
33
  // Load methods
33
34
  RCT_EXTERN_METHOD(loadWithClipId:(nonnull NSNumber *)viewTag clipId:(NSString *)clipId initiator:(NSString *)initiator autoPlay:(BOOL)autoPlay seekTo:(NSNumber *)seekTo contextJson:(NSString *)contextJson)