@bluebillywig/react-native-bb-player 8.45.7 → 8.45.9

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.
@@ -320,14 +320,11 @@ class BBPlayerModule: RCTEventEmitter {
320
320
  context = try? JSONSerialization.jsonObject(with: data) as? [String: Any]
321
321
  }
322
322
 
323
- // Create modal player view
324
- let playerView = BBNativePlayerView(frame: rootVC.view.frame)
325
- playerView.showBackArrow = options?["showBackArrow"] as? Bool ?? false
326
-
327
323
  var loadOptions: [String: Any] = options ?? [:]
328
324
  if loadOptions["autoPlay"] == nil {
329
325
  loadOptions["autoPlay"] = true
330
326
  }
327
+ loadOptions["showBackArrow"] = options?["showBackArrow"] as? Bool ?? false
331
328
 
332
329
  // When context has a cliplist (contextCollectionId), load clip by ID
333
330
  // with cliplist context. ProgramController will swap to loading the
@@ -336,9 +333,8 @@ class BBPlayerModule: RCTEventEmitter {
336
333
  let collectionId = context?["contextCollectionId"] as? String
337
334
  let clipId = context?["contextEntityId"] as? String
338
335
 
339
- // Set up player with options (playout config, JWT, etc.)
340
- playerView.setupWithJsonUrl(jsonUrl: jsonUrl, options: loadOptions)
341
- playerView.presentModal(uiViewContoller: rootVC, animated: true)
336
+ // Create and present modal player using SDK factory method
337
+ let playerView = BBNativePlayer.createModalPlayerView(uiViewContoller: rootVC, jsonUrl: jsonUrl, options: loadOptions)
342
338
 
343
339
  if let collectionId = collectionId, let clipId = clipId {
344
340
  let clipContext: [String: Any] = [
@@ -526,7 +526,7 @@ class BBPlayerView: UIView, BBNativePlayerViewDelegate {
526
526
  return
527
527
  }
528
528
  isInFullscreen = true
529
- playerView?.presentModal(uiViewContoller: parentVC, animated: true)
529
+ playerView?.player.enterFullScreen()
530
530
  }
531
531
 
532
532
  func closeModal() {
@@ -586,7 +586,8 @@ class BBPlayerView: UIView, BBNativePlayerViewDelegate {
586
586
  }
587
587
 
588
588
  func seekRelative(_ offsetInSeconds: Double) {
589
- playerView?.player.seekRelative(offsetInSeconds: offsetInSeconds as NSNumber)
589
+ // seekRelative removed in newer BBNativePlayerKit; no-op
590
+ log("seekRelative not available in this SDK version", level: .warning)
590
591
  }
591
592
 
592
593
  func setMuted(_ muted: Bool) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluebillywig/react-native-bb-player",
3
- "version": "8.45.7",
3
+ "version": "8.45.9",
4
4
  "description": "Blue Billywig Native Video Player for React Native - iOS AVPlayer and Android ExoPlayer integration",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",