@bluebillywig/react-native-bb-player 8.45.21 → 8.45.23

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 (32) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/bluebillywig/bbplayer/BBPlayerView.kt +3 -2
  3. package/ios/BBPlayerView.swift +1 -2
  4. package/ios/BBShortsView.swift +23 -11
  5. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Assets.car +0 -0
  6. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/BBNativePlayerKit +0 -0
  7. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Headers/BBNativePlayerKit-Swift.h +9 -9
  8. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Info.plist +0 -0
  9. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios.abi.json +1002 -953
  10. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios.private.swiftinterface +136 -2
  11. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios.swiftinterface +136 -2
  13. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Assets.car +0 -0
  14. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/BBNativePlayerKit +0 -0
  15. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Headers/BBNativePlayerKit-Swift.h +18 -18
  16. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Info.plist +0 -0
  17. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios-simulator.abi.json +1002 -953
  18. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +136 -2
  19. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  20. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +136 -2
  21. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +1002 -953
  22. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +136 -2
  23. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  24. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +136 -2
  25. package/ios/Frameworks/bbnativeshared.xcframework/Info.plist +5 -5
  26. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/bbnativeshared.framework/bbnativeshared +0 -0
  27. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/dSYMs/bbnativeshared.framework.dSYM/Contents/Resources/DWARF/bbnativeshared +0 -0
  28. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/dSYMs/bbnativeshared.framework.dSYM/Contents/Resources/Relocations/aarch64/bbnativeshared.yml +1 -1
  29. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64_x86_64-simulator/bbnativeshared.framework/bbnativeshared +0 -0
  30. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64_x86_64-simulator/dSYMs/bbnativeshared.framework.dSYM/Contents/Resources/DWARF/bbnativeshared +0 -0
  31. package/package.json +1 -1
  32. package/react-native-bb-player.podspec +2 -2
@@ -83,7 +83,7 @@ dependencies {
83
83
  // Blue Billywig Native Player SDK
84
84
  // Uses latest available version by default
85
85
  // Customers can pin a specific version using resolutionStrategy in their app's build.gradle
86
- implementation 'com.bluebillywig.bbnativeplayersdk:bbnativeplayersdk:+'
86
+ implementation 'com.bluebillywig.bbnativeplayersdk:8.45.+'
87
87
 
88
88
  // AndroidX MediaRouter for Chromecast support
89
89
  implementation 'androidx.mediarouter:mediarouter:1.7.0'
@@ -398,8 +398,9 @@ class BBPlayerView(private val reactContext: ThemedReactContext) : FrameLayout(r
398
398
  }
399
399
 
400
400
  fun seekRelative(offsetInSeconds: Double) {
401
- // seekRelative not yet available in native SDK
402
- android.util.Log.w("BBPlayerView", "seekRelative not supported by native SDK")
401
+ if (::playerView.isInitialized) {
402
+ playerView.player?.seek(offsetInSeconds, true)
403
+ }
403
404
  }
404
405
 
405
406
  fun setVolume(volume: Double) {
@@ -586,8 +586,7 @@ class BBPlayerView: UIView, BBNativePlayerViewDelegate {
586
586
  }
587
587
 
588
588
  func seekRelative(_ offsetInSeconds: Double) {
589
- // seekRelative removed in newer BBNativePlayerKit; no-op
590
- log("seekRelative not available in this SDK version", level: .warning)
589
+ playerView?.player.seekRelative(offsetInSeconds: offsetInSeconds as NSNumber)
591
590
  }
592
591
 
593
592
  func setMuted(_ muted: Bool) {
@@ -139,12 +139,23 @@ class BBShortsView: UIView, BBNativeShortsViewDelegate {
139
139
 
140
140
  // Wrap in a UINavigationController so the native SDK can present
141
141
  // shelf-mode modals (openShortsPlayerAsModal uses navigationController?.present).
142
- // Hide the nav bar since we don't need visible navigation chrome.
143
- let nav = UINavigationController(rootViewController: UIViewController())
142
+ // The native SDK adds BBNativeShortsViewController as a child of the VC we pass.
143
+ // That child then uses its navigationController to present modals.
144
+ let containerVC = UIViewController()
145
+ containerVC.view.backgroundColor = .clear
146
+ let nav = UINavigationController(rootViewController: containerVC)
144
147
  nav.isNavigationBarHidden = true
145
148
  nav.view.frame = bounds
146
149
  nav.view.backgroundColor = .clear
147
150
  viewController.addChild(nav)
151
+ addSubview(nav.view)
152
+ nav.view.translatesAutoresizingMaskIntoConstraints = false
153
+ NSLayoutConstraint.activate([
154
+ nav.view.topAnchor.constraint(equalTo: topAnchor),
155
+ nav.view.leadingAnchor.constraint(equalTo: leadingAnchor),
156
+ nav.view.trailingAnchor.constraint(equalTo: trailingAnchor),
157
+ nav.view.bottomAnchor.constraint(equalTo: bottomAnchor),
158
+ ])
148
159
  nav.didMove(toParent: viewController)
149
160
  self.navController = nav
150
161
 
@@ -154,10 +165,10 @@ class BBShortsView: UIView, BBNativeShortsViewDelegate {
154
165
  optionsDict = dict
155
166
  }
156
167
 
157
- // Create the shorts view using the factory method
158
- // Pass the nav controller so the native SDK's shelf tap can present modals
168
+ // Create the shorts view using the container VC inside the nav controller
169
+ // so the native SDK's shelf tap can present modals via navigationController
159
170
  shortsView = BBNativeShorts.createShortsView(
160
- uiViewController: nav,
171
+ uiViewController: containerVC,
161
172
  frame: bounds,
162
173
  jsonUrl: jsonUrl,
163
174
  options: optionsDict
@@ -171,14 +182,15 @@ class BBShortsView: UIView, BBNativeShortsViewDelegate {
171
182
 
172
183
  shorts.delegate = self
173
184
 
174
- // Add to view hierarchy with autolayout
175
- addSubview(shorts)
185
+ // Add shorts view inside the container VC's view so it sits within the
186
+ // navigation controller hierarchy (required for shelf modal presentation)
187
+ containerVC.view.addSubview(shorts)
176
188
  shorts.translatesAutoresizingMaskIntoConstraints = false
177
189
  NSLayoutConstraint.activate([
178
- shorts.topAnchor.constraint(equalTo: topAnchor),
179
- shorts.leadingAnchor.constraint(equalTo: leadingAnchor),
180
- shorts.trailingAnchor.constraint(equalTo: trailingAnchor),
181
- shorts.bottomAnchor.constraint(equalTo: bottomAnchor)
190
+ shorts.topAnchor.constraint(equalTo: containerVC.view.topAnchor),
191
+ shorts.leadingAnchor.constraint(equalTo: containerVC.view.leadingAnchor),
192
+ shorts.trailingAnchor.constraint(equalTo: containerVC.view.trailingAnchor),
193
+ shorts.bottomAnchor.constraint(equalTo: containerVC.view.bottomAnchor)
182
194
  ])
183
195
 
184
196
  log("BBShortsView.setupShorts() completed")
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
3
+ // Generated by Apple Swift version 6.2.4 effective-5.10 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
4
4
  #ifndef BBNATIVEPLAYERKIT_SWIFT_H
5
5
  #define BBNATIVEPLAYERKIT_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -355,14 +355,14 @@ SWIFT_CLASS("_TtC17BBNativePlayerKit28BBNativePlayerViewController")
355
355
  @property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
356
356
  @end
357
357
 
358
- @interface BBNativePlayerViewController (SWIFT_EXTENSION(BBNativePlayerKit)) <GCKDiscoveryManagerListener>
359
- - (void)didUpdateDeviceList;
360
- @end
361
-
362
358
  @interface BBNativePlayerViewController (SWIFT_EXTENSION(BBNativePlayerKit)) <BbnativesharedEventListenerInterface>
363
359
  - (void)onEventEventType:(BbnativesharedEventName * _Nonnull)eventType data:(NSDictionary<NSString *, id> * _Nullable)data;
364
360
  @end
365
361
 
362
+ @interface BBNativePlayerViewController (SWIFT_EXTENSION(BBNativePlayerKit)) <GCKDiscoveryManagerListener>
363
+ - (void)didUpdateDeviceList;
364
+ @end
365
+
366
366
  @class UIGestureRecognizer;
367
367
  @class UITouch;
368
368
  @interface BBNativePlayerViewController (SWIFT_EXTENSION(BBNativePlayerKit)) <UIGestureRecognizerDelegate>
@@ -649,14 +649,14 @@ SWIFT_CLASS("_TtC17BBNativePlayerKit18BBNativeShortsView")
649
649
  - (void)removeFromSuperview;
650
650
  @end
651
651
 
652
- @interface BBNativeShortsView (SWIFT_EXTENSION(BBNativePlayerKit)) <BbnativesharedEventListenerInterface>
653
- - (void)onEventEventType:(BbnativesharedEventName * _Nonnull)eventType data:(NSDictionary<NSString *, id> * _Nullable)data;
654
- @end
655
-
656
652
  @interface BBNativeShortsView (SWIFT_EXTENSION(BBNativePlayerKit)) <BBNativePlayerViewDelegate>
657
653
  - (void)bbNativePlayerViewWithPlayerView:(BBNativePlayerView * _Nonnull)playerView didSetupWithJsonUrl:(NSString * _Nullable)url;
658
654
  @end
659
655
 
656
+ @interface BBNativeShortsView (SWIFT_EXTENSION(BBNativePlayerKit)) <BbnativesharedEventListenerInterface>
657
+ - (void)onEventEventType:(BbnativesharedEventName * _Nonnull)eventType data:(NSDictionary<NSString *, id> * _Nullable)data;
658
+ @end
659
+
660
660
  /// :nodoc:
661
661
  SWIFT_CLASS("_TtC17BBNativePlayerKit28BBNativeShortsViewController")
662
662
  @interface BBNativeShortsViewController : UIViewController