bitmovin-player-react-native 0.44.1-alpha.0 → 1.0.0-alpha.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.
- package/.eslintignore +11 -0
- package/.eslintrc.js +7 -0
- package/.gitattributes +3 -0
- package/.prettierignore +11 -0
- package/.ruby-version +1 -0
- package/.swiftlint.yml +171 -0
- package/Brewfile +2 -0
- package/CHANGELOG.md +627 -0
- package/CONTRIBUTING.md +255 -0
- package/TODO.md +0 -0
- package/android/.editorconfig +8 -0
- package/android/build.gradle +78 -75
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/gradle.properties +1 -0
- package/android/gradlew +248 -0
- package/android/gradlew.bat +92 -0
- package/android/ktlint.gradle +31 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/ActivityLifecycleListener.kt +51 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/BitmovinCastManagerModule.kt +32 -55
- package/android/src/main/java/com/bitmovin/player/reactnative/BufferModule.kt +33 -45
- package/android/src/main/java/com/bitmovin/player/reactnative/CustomMessageHandlerModule.kt +84 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/DebugModule.kt +6 -14
- package/android/src/main/java/com/bitmovin/player/reactnative/DecoderConfigModule.kt +89 -44
- package/android/src/main/java/com/bitmovin/player/reactnative/DrmModule.kt +80 -99
- package/android/src/main/java/com/bitmovin/player/reactnative/EventSubscription.kt +22 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/FullscreenHandlerModule.kt +100 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/MediaSessionPlaybackManager.kt +5 -5
- package/android/src/main/java/com/bitmovin/player/reactnative/NetworkModule.kt +98 -56
- package/android/src/main/java/com/bitmovin/player/reactnative/OfflineModule.kt +132 -186
- package/android/src/main/java/com/bitmovin/player/reactnative/PlayerAnalyticsModule.kt +37 -36
- package/android/src/main/java/com/bitmovin/player/reactnative/PlayerModule.kt +252 -528
- package/android/src/main/java/com/bitmovin/player/reactnative/RNPlayerPackage.kt +11 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/RNPlayerView.kt +558 -213
- package/android/src/main/java/com/bitmovin/player/reactnative/RNPlayerViewManager.kt +99 -286
- package/android/src/main/java/com/bitmovin/player/reactnative/ResultWaiter.kt +58 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/SourceModule.kt +77 -151
- package/android/src/main/java/com/bitmovin/player/reactnative/Types.kt +44 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/UuidModule.kt +12 -15
- package/android/src/main/java/com/bitmovin/player/reactnative/converter/JsonConverter.kt +296 -456
- package/android/src/main/java/com/bitmovin/player/reactnative/extensions/ListExtension.kt +89 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/extensions/MapExtension.kt +95 -0
- package/android/src/main/java/com/bitmovin/player/reactnative/offline/OfflineContentManagerBridge.kt +20 -52
- package/android/src/main/java/com/bitmovin/player/reactnative/ui/CustomMessageHandlerBridge.kt +10 -20
- package/android/src/main/java/com/bitmovin/player/reactnative/ui/FullscreenHandlerBridge.kt +4 -9
- package/app.plugin.js +21 -0
- package/build/BitmovinPlayerReactNative.types.d.ts +18 -0
- package/build/BitmovinPlayerReactNative.types.d.ts.map +1 -0
- package/build/BitmovinPlayerReactNative.types.js +2 -0
- package/build/BitmovinPlayerReactNative.types.js.map +1 -0
- package/build/adaptationConfig.d.ts +18 -0
- package/build/adaptationConfig.d.ts.map +1 -0
- package/build/adaptationConfig.js +2 -0
- package/build/adaptationConfig.js.map +1 -0
- package/build/advertising.d.ts +175 -0
- package/build/advertising.d.ts.map +1 -0
- package/build/advertising.js +37 -0
- package/build/advertising.js.map +1 -0
- package/build/analytics/config.d.ts +194 -0
- package/build/analytics/config.d.ts.map +1 -0
- package/build/analytics/config.js +2 -0
- package/build/analytics/config.js.map +1 -0
- package/build/analytics/index.d.ts +3 -0
- package/build/analytics/index.d.ts.map +1 -0
- package/build/analytics/index.js +3 -0
- package/build/analytics/index.js.map +1 -0
- package/build/analytics/player.d.ts +24 -0
- package/build/analytics/player.d.ts.map +1 -0
- package/build/analytics/player.js +30 -0
- package/build/analytics/player.js.map +1 -0
- package/build/analytics/playerAnalyticsModule.d.ts +13 -0
- package/build/analytics/playerAnalyticsModule.d.ts.map +1 -0
- package/build/analytics/playerAnalyticsModule.js +3 -0
- package/build/analytics/playerAnalyticsModule.js.map +1 -0
- package/build/audioSession.d.ts +33 -0
- package/build/audioSession.d.ts.map +1 -0
- package/build/audioSession.js +21 -0
- package/build/audioSession.js.map +1 -0
- package/build/audioTrack.d.ts +39 -0
- package/build/audioTrack.d.ts.map +1 -0
- package/build/audioTrack.js +2 -0
- package/build/audioTrack.js.map +1 -0
- package/build/bitmovinCastManager.d.ts +58 -0
- package/build/bitmovinCastManager.d.ts.map +1 -0
- package/build/bitmovinCastManager.js +64 -0
- package/build/bitmovinCastManager.js.map +1 -0
- package/build/bufferApi.d.ts +85 -0
- package/build/bufferApi.d.ts.map +1 -0
- package/build/bufferApi.js +60 -0
- package/build/bufferApi.js.map +1 -0
- package/build/bufferConfig.d.ts +42 -0
- package/build/bufferConfig.d.ts.map +1 -0
- package/build/bufferConfig.js +2 -0
- package/build/bufferConfig.js.map +1 -0
- package/build/components/PlayerView/events.d.ts +310 -0
- package/build/components/PlayerView/events.d.ts.map +1 -0
- package/build/components/PlayerView/events.js +2 -0
- package/build/components/PlayerView/events.js.map +1 -0
- package/build/components/PlayerView/index.d.ts +10 -0
- package/build/components/PlayerView/index.d.ts.map +1 -0
- package/build/components/PlayerView/index.js +72 -0
- package/build/components/PlayerView/index.js.map +1 -0
- package/build/components/PlayerView/native.d.ts +30 -0
- package/build/components/PlayerView/native.d.ts.map +1 -0
- package/build/components/PlayerView/native.js +6 -0
- package/build/components/PlayerView/native.js.map +1 -0
- package/build/components/PlayerView/nativeEvents.d.ts +437 -0
- package/build/components/PlayerView/nativeEvents.d.ts.map +1 -0
- package/build/components/PlayerView/nativeEvents.js +2 -0
- package/build/components/PlayerView/nativeEvents.js.map +1 -0
- package/build/components/PlayerView/pictureInPictureConfig.d.ts +22 -0
- package/build/components/PlayerView/pictureInPictureConfig.d.ts.map +1 -0
- package/build/components/PlayerView/pictureInPictureConfig.js +2 -0
- package/build/components/PlayerView/pictureInPictureConfig.js.map +1 -0
- package/build/components/PlayerView/playerViewConfig.d.ts +111 -0
- package/build/components/PlayerView/playerViewConfig.d.ts.map +1 -0
- package/build/components/PlayerView/playerViewConfig.js +51 -0
- package/build/components/PlayerView/playerViewConfig.js.map +1 -0
- package/build/components/PlayerView/properties.d.ts +61 -0
- package/build/components/PlayerView/properties.d.ts.map +1 -0
- package/build/components/PlayerView/properties.js +2 -0
- package/build/components/PlayerView/properties.js.map +1 -0
- package/build/components/index.d.ts +5 -0
- package/build/components/index.d.ts.map +1 -0
- package/build/components/index.js +5 -0
- package/build/components/index.js.map +1 -0
- package/build/debug.d.ts +46 -0
- package/build/debug.d.ts.map +1 -0
- package/build/debug.js +52 -0
- package/build/debug.js.map +1 -0
- package/build/decoder/decoderConfig.d.ts +96 -0
- package/build/decoder/decoderConfig.d.ts.map +1 -0
- package/build/decoder/decoderConfig.js +6 -0
- package/build/decoder/decoderConfig.js.map +1 -0
- package/build/decoder/decoderConfigModule.d.ts +14 -0
- package/build/decoder/decoderConfigModule.d.ts.map +1 -0
- package/build/decoder/decoderConfigModule.js +31 -0
- package/build/decoder/decoderConfigModule.js.map +1 -0
- package/build/decoder/index.d.ts +26 -0
- package/build/decoder/index.d.ts.map +1 -0
- package/build/decoder/index.js +50 -0
- package/build/decoder/index.js.map +1 -0
- package/build/drm/drmModule.d.ts +55 -0
- package/build/drm/drmModule.d.ts.map +1 -0
- package/build/drm/drmModule.js +3 -0
- package/build/drm/drmModule.js.map +1 -0
- package/build/drm/fairplayConfig.d.ts +91 -0
- package/build/drm/fairplayConfig.d.ts.map +1 -0
- package/build/drm/fairplayConfig.js +2 -0
- package/build/drm/fairplayConfig.js.map +1 -0
- package/build/drm/index.d.ts +112 -0
- package/build/drm/index.d.ts.map +1 -0
- package/build/drm/index.js +191 -0
- package/build/drm/index.js.map +1 -0
- package/build/drm/widevineConfig.d.ts +58 -0
- package/build/drm/widevineConfig.d.ts.map +1 -0
- package/build/drm/widevineConfig.js +2 -0
- package/build/drm/widevineConfig.js.map +1 -0
- package/build/events.d.ts +692 -0
- package/build/events.d.ts.map +1 -0
- package/build/events.js +2 -0
- package/build/events.js.map +1 -0
- package/build/hooks/index.d.ts +2 -0
- package/build/hooks/index.d.ts.map +1 -0
- package/build/hooks/index.js +2 -0
- package/build/hooks/index.js.map +1 -0
- package/build/hooks/usePlayer.d.ts +8 -0
- package/build/hooks/usePlayer.d.ts.map +1 -0
- package/build/hooks/usePlayer.js +10 -0
- package/build/hooks/usePlayer.js.map +1 -0
- package/build/hooks/useProxy.d.ts +18 -0
- package/build/hooks/useProxy.d.ts.map +1 -0
- package/build/hooks/useProxy.js +16 -0
- package/build/hooks/useProxy.js.map +1 -0
- package/build/index.d.ts +32 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +32 -0
- package/build/index.js.map +1 -0
- package/build/liveConfig.d.ts +13 -0
- package/build/liveConfig.d.ts.map +1 -0
- package/build/liveConfig.js +2 -0
- package/build/liveConfig.js.map +1 -0
- package/build/media.d.ts +85 -0
- package/build/media.d.ts.map +1 -0
- package/build/media.js +2 -0
- package/build/media.js.map +1 -0
- package/build/mediaControlConfig.d.ts +62 -0
- package/build/mediaControlConfig.d.ts.map +1 -0
- package/build/mediaControlConfig.js +2 -0
- package/build/mediaControlConfig.js.map +1 -0
- package/build/mediaTrackRole.d.ts +28 -0
- package/build/mediaTrackRole.d.ts.map +1 -0
- package/build/mediaTrackRole.js +2 -0
- package/build/mediaTrackRole.js.map +1 -0
- package/build/modules/AudioSessionModule.d.ts +8 -0
- package/build/modules/AudioSessionModule.d.ts.map +1 -0
- package/build/modules/AudioSessionModule.js +7 -0
- package/build/modules/AudioSessionModule.js.map +1 -0
- package/build/modules/BitmovinCastManagerModule.d.ts +11 -0
- package/build/modules/BitmovinCastManagerModule.d.ts.map +1 -0
- package/build/modules/BitmovinCastManagerModule.js +3 -0
- package/build/modules/BitmovinCastManagerModule.js.map +1 -0
- package/build/modules/BufferModule.d.ts +16 -0
- package/build/modules/BufferModule.d.ts.map +1 -0
- package/build/modules/BufferModule.js +3 -0
- package/build/modules/BufferModule.js.map +1 -0
- package/build/modules/DebugModule.d.ts +8 -0
- package/build/modules/DebugModule.d.ts.map +1 -0
- package/build/modules/DebugModule.js +3 -0
- package/build/modules/DebugModule.js.map +1 -0
- package/build/modules/PlayerModule.d.ts +188 -0
- package/build/modules/PlayerModule.d.ts.map +1 -0
- package/build/modules/PlayerModule.js +3 -0
- package/build/modules/PlayerModule.js.map +1 -0
- package/build/modules/SourceModule.d.ts +51 -0
- package/build/modules/SourceModule.d.ts.map +1 -0
- package/build/modules/SourceModule.js +3 -0
- package/build/modules/SourceModule.js.map +1 -0
- package/build/modules/UuidModule.d.ts +8 -0
- package/build/modules/UuidModule.d.ts.map +1 -0
- package/build/modules/UuidModule.js +3 -0
- package/build/modules/UuidModule.js.map +1 -0
- package/build/nativeInstance.d.ts +49 -0
- package/build/nativeInstance.d.ts.map +1 -0
- package/build/nativeInstance.js +20 -0
- package/build/nativeInstance.js.map +1 -0
- package/build/network/index.d.ts +50 -0
- package/build/network/index.d.ts.map +1 -0
- package/build/network/index.js +102 -0
- package/build/network/index.js.map +1 -0
- package/build/network/networkConfig.d.ts +151 -0
- package/build/network/networkConfig.d.ts.map +1 -0
- package/build/network/networkConfig.js +21 -0
- package/build/network/networkConfig.js.map +1 -0
- package/build/network/networkModule.d.ts +29 -0
- package/build/network/networkModule.d.ts.map +1 -0
- package/build/network/networkModule.js +3 -0
- package/build/network/networkModule.js.map +1 -0
- package/build/offline/index.d.ts +8 -0
- package/build/offline/index.d.ts.map +1 -0
- package/build/offline/index.js +8 -0
- package/build/offline/index.js.map +1 -0
- package/build/offline/offlineContentConfig.d.ts +18 -0
- package/build/offline/offlineContentConfig.d.ts.map +1 -0
- package/build/offline/offlineContentConfig.js +2 -0
- package/build/offline/offlineContentConfig.js.map +1 -0
- package/build/offline/offlineContentManager.d.ts +90 -0
- package/build/offline/offlineContentManager.d.ts.map +1 -0
- package/build/offline/offlineContentManager.js +177 -0
- package/build/offline/offlineContentManager.js.map +1 -0
- package/build/offline/offlineContentManagerListener.d.ts +174 -0
- package/build/offline/offlineContentManagerListener.d.ts.map +1 -0
- package/build/offline/offlineContentManagerListener.js +17 -0
- package/build/offline/offlineContentManagerListener.js.map +1 -0
- package/build/offline/offlineContentOptions.d.ts +29 -0
- package/build/offline/offlineContentOptions.d.ts.map +1 -0
- package/build/offline/offlineContentOptions.js +2 -0
- package/build/offline/offlineContentOptions.js.map +1 -0
- package/build/offline/offlineDownloadRequest.d.ts +19 -0
- package/build/offline/offlineDownloadRequest.d.ts.map +1 -0
- package/build/offline/offlineDownloadRequest.js +2 -0
- package/build/offline/offlineDownloadRequest.js.map +1 -0
- package/build/offline/offlineModule.d.ts +32 -0
- package/build/offline/offlineModule.d.ts.map +1 -0
- package/build/offline/offlineModule.js +3 -0
- package/build/offline/offlineModule.js.map +1 -0
- package/build/offline/offlineSourceOptions.d.ts +12 -0
- package/build/offline/offlineSourceOptions.d.ts.map +1 -0
- package/build/offline/offlineSourceOptions.js +2 -0
- package/build/offline/offlineSourceOptions.js.map +1 -0
- package/build/offline/offlineState.d.ts +23 -0
- package/build/offline/offlineState.d.ts.map +1 -0
- package/build/offline/offlineState.js +24 -0
- package/build/offline/offlineState.js.map +1 -0
- package/build/playbackConfig.d.ts +88 -0
- package/build/playbackConfig.d.ts.map +1 -0
- package/build/playbackConfig.js +2 -0
- package/build/playbackConfig.js.map +1 -0
- package/build/player.d.ts +308 -0
- package/build/player.d.ts.map +1 -0
- package/build/player.js +445 -0
- package/build/player.js.map +1 -0
- package/build/playerConfig.d.ts +83 -0
- package/build/playerConfig.d.ts.map +1 -0
- package/build/playerConfig.js +2 -0
- package/build/playerConfig.js.map +1 -0
- package/build/remoteControlConfig.d.ts +38 -0
- package/build/remoteControlConfig.d.ts.map +1 -0
- package/build/remoteControlConfig.js +2 -0
- package/build/remoteControlConfig.js.map +1 -0
- package/build/source.d.ts +216 -0
- package/build/source.d.ts.map +1 -0
- package/build/source.js +167 -0
- package/build/source.js.map +1 -0
- package/build/styleConfig.d.ts +120 -0
- package/build/styleConfig.d.ts.map +1 -0
- package/build/styleConfig.js +38 -0
- package/build/styleConfig.js.map +1 -0
- package/build/subtitleFormat.d.ts +27 -0
- package/build/subtitleFormat.d.ts.map +1 -0
- package/build/subtitleFormat.js +28 -0
- package/build/subtitleFormat.js.map +1 -0
- package/build/subtitleTrack.d.ts +55 -0
- package/build/subtitleTrack.d.ts.map +1 -0
- package/build/subtitleTrack.js +2 -0
- package/build/subtitleTrack.js.map +1 -0
- package/build/thumbnail.d.ts +38 -0
- package/build/thumbnail.d.ts.map +1 -0
- package/build/thumbnail.js +2 -0
- package/build/thumbnail.js.map +1 -0
- package/build/tweaksConfig.d.ts +197 -0
- package/build/tweaksConfig.d.ts.map +1 -0
- package/build/tweaksConfig.js +25 -0
- package/build/tweaksConfig.js.map +1 -0
- package/build/ui/customMessageHandlerModule.d.ts +27 -0
- package/build/ui/customMessageHandlerModule.d.ts.map +1 -0
- package/build/ui/customMessageHandlerModule.js +3 -0
- package/build/ui/customMessageHandlerModule.js.map +1 -0
- package/build/ui/custommessagehandler.d.ts +56 -0
- package/build/ui/custommessagehandler.d.ts.map +1 -0
- package/build/ui/custommessagehandler.js +54 -0
- package/build/ui/custommessagehandler.js.map +1 -0
- package/build/ui/custommessagehandlerbridge.d.ts +33 -0
- package/build/ui/custommessagehandlerbridge.d.ts.map +1 -0
- package/build/ui/custommessagehandlerbridge.js +72 -0
- package/build/ui/custommessagehandlerbridge.js.map +1 -0
- package/build/ui/custommessagesender.d.ts +5 -0
- package/build/ui/custommessagesender.d.ts.map +1 -0
- package/build/ui/custommessagesender.js +2 -0
- package/build/ui/custommessagesender.js.map +1 -0
- package/build/ui/fullscreenHandlerModule.d.ts +20 -0
- package/build/ui/fullscreenHandlerModule.d.ts.map +1 -0
- package/build/ui/fullscreenHandlerModule.js +3 -0
- package/build/ui/fullscreenHandlerModule.js.map +1 -0
- package/build/ui/fullscreenhandler.d.ts +18 -0
- package/build/ui/fullscreenhandler.d.ts.map +1 -0
- package/build/ui/fullscreenhandler.js +2 -0
- package/build/ui/fullscreenhandler.js.map +1 -0
- package/build/ui/fullscreenhandlerbridge.d.ts +26 -0
- package/build/ui/fullscreenhandlerbridge.d.ts.map +1 -0
- package/build/ui/fullscreenhandlerbridge.js +67 -0
- package/build/ui/fullscreenhandlerbridge.js.map +1 -0
- package/build/ui/index.d.ts +3 -0
- package/build/ui/index.d.ts.map +1 -0
- package/build/ui/index.js +3 -0
- package/build/ui/index.js.map +1 -0
- package/expo-module.config.json +40 -0
- package/ios/AppLifecycleDelegate.swift +25 -0
- package/ios/AudioSessionModule.swift +14 -40
- package/ios/BitmovinCastManagerModule.swift +30 -69
- package/ios/BufferModule.swift +26 -62
- package/ios/CustomMessageHandlerBridge.swift +11 -18
- package/ios/CustomMessageHandlerModule.swift +61 -63
- package/ios/DebugModule.swift +6 -27
- package/ios/DrmModule.swift +105 -379
- package/ios/Event+JSON.swift +1 -0
- package/ios/FullscreenHandlerBridge.swift +12 -5
- package/ios/FullscreenHandlerModule.swift +73 -57
- package/ios/LockedBox.swift +21 -0
- package/ios/ModuleRegistry+Generics.swift +11 -0
- package/ios/NetworkModule.swift +78 -82
- package/ios/OfflineContentManagerBridge.swift +11 -38
- package/ios/OfflineModule.swift +136 -454
- package/ios/PlayerAnalyticsModule.swift +24 -52
- package/ios/PlayerModule.swift +192 -770
- package/ios/RCTConvert+BitmovinPlayer.swift +38 -312
- package/ios/RNBitmovinPlayer.h +1 -8
- package/ios/RNBitmovinPlayer.podspec +47 -0
- package/ios/RNPlayerView.swift +600 -77
- package/ios/RNPlayerViewManager.swift +96 -210
- package/ios/Registry.swift +2 -2
- package/ios/ResultWaiter.swift +66 -0
- package/ios/SourceModule.swift +104 -223
- package/ios/UuidModule.swift +9 -18
- package/package.json +67 -71
- package/plugin/build/FeatureFlags.d.ts +24 -0
- package/plugin/build/FeatureFlags.js +2 -0
- package/plugin/build/index.d.ts +7 -0
- package/plugin/build/index.js +10 -0
- package/plugin/build/withAppGradleDependencies.d.ts +7 -0
- package/plugin/build/withAppGradleDependencies.js +49 -0
- package/plugin/build/withBitmovinAndroidConfig.d.ts +7 -0
- package/plugin/build/withBitmovinAndroidConfig.js +159 -0
- package/plugin/build/withBitmovinConfig.d.ts +7 -0
- package/plugin/build/withBitmovinConfig.js +21 -0
- package/plugin/build/withBitmovinIosConfig.d.ts +7 -0
- package/plugin/build/withBitmovinIosConfig.js +53 -0
- package/plugin/src/FeatureFlags.ts +21 -0
- package/plugin/src/index.ts +9 -0
- package/plugin/src/withAppGradleDependencies.ts +80 -0
- package/plugin/src/withBitmovinAndroidConfig.ts +224 -0
- package/plugin/src/withBitmovinConfig.ts +24 -0
- package/plugin/src/withBitmovinIosConfig.ts +71 -0
- package/plugin/tsconfig.json +9 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/prettier.config.js +7 -0
- package/scripts/format-android.sh +2 -0
- package/scripts/format-swift.sh +3 -0
- package/scripts/lint-android.sh +2 -0
- package/scripts/lint-swift.sh +3 -0
- package/scripts/pre-commit.sh +14 -0
- package/scripts/setup-hooks.sh +58 -0
- package/src/BitmovinPlayerReactNative.types.ts +19 -0
- package/src/adaptationConfig.ts +1 -1
- package/src/advertising.ts +1 -1
- package/src/analytics/config.ts +4 -4
- package/src/analytics/player.ts +4 -6
- package/src/analytics/playerAnalyticsModule.ts +19 -0
- package/src/audioSession.ts +4 -6
- package/src/audioTrack.ts +1 -1
- package/src/bitmovinCastManager.ts +14 -10
- package/src/bufferApi.ts +1 -3
- package/src/bufferConfig.ts +2 -2
- package/src/components/PlayerView/events.ts +92 -94
- package/src/components/PlayerView/index.tsx +109 -159
- package/src/components/PlayerView/native.ts +24 -11
- package/src/components/PlayerView/nativeEvents.ts +113 -94
- package/src/components/PlayerView/pictureInPictureConfig.ts +1 -1
- package/src/components/PlayerView/playerViewConfig.ts +4 -8
- package/src/components/PlayerView/properties.ts +23 -22
- package/src/debug.ts +1 -3
- package/src/decoder/decoderConfig.ts +3 -3
- package/src/decoder/decoderConfigModule.ts +62 -0
- package/src/decoder/index.ts +32 -16
- package/src/drm/drmModule.ts +84 -0
- package/src/drm/fairplayConfig.ts +1 -1
- package/src/drm/index.ts +130 -40
- package/src/drm/widevineConfig.ts +5 -5
- package/src/events.ts +47 -41
- package/src/hooks/useProxy.ts +13 -20
- package/src/mediaControlConfig.ts +1 -1
- package/src/modules/AudioSessionModule.ts +13 -0
- package/src/modules/BitmovinCastManagerModule.ts +14 -0
- package/src/modules/BufferModule.ts +18 -0
- package/src/modules/DebugModule.ts +9 -0
- package/src/modules/PlayerModule.ts +251 -0
- package/src/modules/SourceModule.ts +74 -0
- package/src/modules/UuidModule.ts +9 -0
- package/src/nativeInstance.ts +3 -3
- package/src/network/index.ts +42 -15
- package/src/network/networkConfig.ts +3 -3
- package/src/network/networkModule.ts +51 -0
- package/src/offline/offlineContentConfig.ts +1 -1
- package/src/offline/offlineContentManager.ts +15 -50
- package/src/offline/offlineContentManagerListener.ts +20 -23
- package/src/offline/offlineContentOptions.ts +2 -2
- package/src/offline/offlineDownloadRequest.ts +1 -1
- package/src/offline/offlineModule.ts +46 -0
- package/src/offline/offlineSourceOptions.ts +2 -2
- package/src/offline/offlineState.ts +1 -1
- package/src/playbackConfig.ts +5 -6
- package/src/player.ts +53 -48
- package/src/source.ts +15 -14
- package/src/styleConfig.ts +5 -5
- package/src/subtitleFormat.ts +5 -5
- package/src/subtitleTrack.ts +1 -1
- package/src/tweaksConfig.ts +16 -16
- package/src/ui/customMessageHandlerModule.ts +46 -0
- package/src/ui/custommessagehandlerbridge.ts +45 -18
- package/src/ui/fullscreenHandlerModule.ts +35 -0
- package/src/ui/fullscreenhandlerbridge.ts +35 -15
- package/tsconfig.json +9 -0
- package/typedoc.json +23 -0
- package/RNBitmovinPlayer.podspec +0 -26
- package/android/src/main/java/com/bitmovin/player/reactnative/BitmovinBaseModule.kt +0 -114
- package/android/src/main/java/com/bitmovin/player/reactnative/EventRelay.kt +0 -47
- package/android/src/main/java/com/bitmovin/player/reactnative/RNPlayerViewPackage.kt +0 -48
- package/android/src/main/java/com/bitmovin/player/reactnative/extensions/ReactContextExtension.kt +0 -24
- package/android/src/main/java/com/bitmovin/player/reactnative/extensions/ReadableArray.kt +0 -20
- package/android/src/main/java/com/bitmovin/player/reactnative/extensions/ReadableMap.kt +0 -15
- package/android/src/main/java/com/bitmovin/player/reactnative/extensions/ReadableMapExtension.kt +0 -57
- package/android/src/main/java/com/bitmovin/player/reactnative/extensions/WritableMap.kt +0 -27
- package/android/src/main/java/com/bitmovin/player/reactnative/ui/CustomMessageHandlerModule.kt +0 -86
- package/android/src/main/java/com/bitmovin/player/reactnative/ui/FullscreenHandlerModule.kt +0 -78
- package/ios/AudioSessionModule.m +0 -10
- package/ios/BitmovinCastManagerModule.m +0 -14
- package/ios/BufferModule.m +0 -8
- package/ios/CustomMessageHandlerModule.m +0 -10
- package/ios/DebugModule.m +0 -7
- package/ios/DrmModule.m +0 -16
- package/ios/FullscreenHandlerModule.m +0 -10
- package/ios/NetworkModule.m +0 -10
- package/ios/OfflineModule.m +0 -19
- package/ios/PlayerAnalyticsModule.m +0 -8
- package/ios/PlayerModule.m +0 -130
- package/ios/PreprocessHttpRequestDelegateBridge.swift +0 -30
- package/ios/RCTBridge+Generics.swift +0 -6
- package/ios/RNBitmovinPlayer.xcodeproj/project.pbxproj +0 -303
- package/ios/RNPlayerView+PlayerListener.swift +0 -229
- package/ios/RNPlayerView+UserInterfaceListener.swift +0 -35
- package/ios/RNPlayerViewManager.m +0 -79
- package/ios/SourceModule.m +0 -42
- package/ios/UuidModule.m +0 -9
- package/lib/index.d.mts +0 -4303
- package/lib/index.d.ts +0 -4303
- package/lib/index.js +0 -1895
- package/lib/index.mjs +0 -1836
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConfigPlugin,
|
|
3
|
+
withInfoPlist,
|
|
4
|
+
withPodfileProperties,
|
|
5
|
+
} from 'expo/config-plugins';
|
|
6
|
+
import FeatureFlags from './FeatureFlags';
|
|
7
|
+
|
|
8
|
+
const withBitmovinIosConfig: ConfigPlugin<{
|
|
9
|
+
playerLicenseKey: string;
|
|
10
|
+
features: FeatureFlags;
|
|
11
|
+
}> = (config, { playerLicenseKey, features }) => {
|
|
12
|
+
const offlineFeatureConfig =
|
|
13
|
+
typeof features.offline === 'object'
|
|
14
|
+
? features.offline
|
|
15
|
+
: {
|
|
16
|
+
android: {
|
|
17
|
+
isEnabled: !!features.offline,
|
|
18
|
+
externalStoragePermission: false,
|
|
19
|
+
},
|
|
20
|
+
ios: { isEnabled: !!features.offline },
|
|
21
|
+
};
|
|
22
|
+
const googleCastIosConfig = features.googleCastSDK?.ios
|
|
23
|
+
? typeof features.googleCastSDK.ios === 'string'
|
|
24
|
+
? { version: features.googleCastSDK.ios }
|
|
25
|
+
: features.googleCastSDK.ios
|
|
26
|
+
: null;
|
|
27
|
+
|
|
28
|
+
config = withInfoPlist(config, (config) => {
|
|
29
|
+
config.modResults['BitmovinPlayerLicenseKey'] = playerLicenseKey;
|
|
30
|
+
if (
|
|
31
|
+
features.backgroundPlayback ||
|
|
32
|
+
features.airPlay ||
|
|
33
|
+
features.pictureInPicture
|
|
34
|
+
) {
|
|
35
|
+
let backgroundModes = new Set(
|
|
36
|
+
config.modResults['UIBackgroundModes'] || []
|
|
37
|
+
);
|
|
38
|
+
backgroundModes.add('audio');
|
|
39
|
+
config.modResults['UIBackgroundModes'] = Array.from(backgroundModes);
|
|
40
|
+
}
|
|
41
|
+
if (offlineFeatureConfig?.ios?.isEnabled) {
|
|
42
|
+
config.modResults['BitmovinPlayerOfflineSupportEnabled'] = true;
|
|
43
|
+
}
|
|
44
|
+
if (googleCastIosConfig) {
|
|
45
|
+
const appId = googleCastIosConfig.appId || 'FFE417E5';
|
|
46
|
+
const localNetworkUsageDescription =
|
|
47
|
+
googleCastIosConfig.localNetworkUsageDescription ||
|
|
48
|
+
'${PRODUCT_NAME} uses the local network to discover Cast-enabled devices on your WiFi network.';
|
|
49
|
+
|
|
50
|
+
config.modResults['NSBonjourServices'] = [
|
|
51
|
+
'_googlecast._tcp',
|
|
52
|
+
`_${appId}._googlecast._tcp`,
|
|
53
|
+
];
|
|
54
|
+
config.modResults['NSLocalNetworkUsageDescription'] =
|
|
55
|
+
localNetworkUsageDescription;
|
|
56
|
+
}
|
|
57
|
+
return config;
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
config = withPodfileProperties(config, (config) => {
|
|
61
|
+
if (googleCastIosConfig) {
|
|
62
|
+
config.modResults['BITMOVIN_GOOGLE_CAST_SDK_VERSION'] =
|
|
63
|
+
googleCastIosConfig.version;
|
|
64
|
+
}
|
|
65
|
+
return config;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
return config;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export default withBitmovinIosConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/FeatureFlags.ts","./src/index.ts","./src/withAppGradleDependencies.ts","./src/withBitmovinAndroidConfig.ts","./src/withBitmovinConfig.ts","./src/withBitmovinIosConfig.ts"],"version":"5.8.3"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Pre-commit hook to run lint-staged
|
|
3
|
+
|
|
4
|
+
# Load common paths where Node.js might be installed
|
|
5
|
+
export PATH="/usr/local/bin:/opt/homebrew/bin:$HOME/.nvm/current/bin:$HOME/.volta/bin:$HOME/.fnm/current/bin:$PATH"
|
|
6
|
+
|
|
7
|
+
# Try to find npx
|
|
8
|
+
NPX=$(command -v npx)
|
|
9
|
+
if [ -z "$NPX" ]; then
|
|
10
|
+
echo "Error: npx not found in PATH"
|
|
11
|
+
exit 1
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
$NPX lint-staged
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Setup git pre-commit hooks for the project
|
|
4
|
+
echo "Setting up pre-commit hooks..."
|
|
5
|
+
|
|
6
|
+
# Check if .git directory exists
|
|
7
|
+
if [ ! -d ".git" ]; then
|
|
8
|
+
echo "Error: Not a git repository. Please run this from the root of the project."
|
|
9
|
+
exit 1
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
# Check if hooks directory exists
|
|
13
|
+
if [ ! -d ".git/hooks" ]; then
|
|
14
|
+
echo "Creating .git/hooks directory..."
|
|
15
|
+
mkdir -p .git/hooks
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
# Get the directory where this script is located
|
|
19
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
20
|
+
PRE_COMMIT_SOURCE="$SCRIPT_DIR/pre-commit.sh"
|
|
21
|
+
|
|
22
|
+
# Check if the pre-commit.sh template exists
|
|
23
|
+
if [ ! -f "$PRE_COMMIT_SOURCE" ]; then
|
|
24
|
+
echo "Error: pre-commit.sh template not found at $PRE_COMMIT_SOURCE"
|
|
25
|
+
exit 1
|
|
26
|
+
fi
|
|
27
|
+
|
|
28
|
+
# Check if pre-commit hook already exists and compare content
|
|
29
|
+
HOOK_PATH=".git/hooks/pre-commit"
|
|
30
|
+
NEEDS_UPDATE=true
|
|
31
|
+
|
|
32
|
+
if [ -f "$HOOK_PATH" ]; then
|
|
33
|
+
# Compare the existing hook with the template
|
|
34
|
+
if cmp -s "$PRE_COMMIT_SOURCE" "$HOOK_PATH"; then
|
|
35
|
+
NEEDS_UPDATE=false
|
|
36
|
+
echo "✅ Pre-commit hook is already up to date"
|
|
37
|
+
else
|
|
38
|
+
echo "📝 Pre-commit hook exists but differs from template, updating..."
|
|
39
|
+
fi
|
|
40
|
+
else
|
|
41
|
+
echo "📦 Installing pre-commit hook..."
|
|
42
|
+
fi
|
|
43
|
+
|
|
44
|
+
# Install or update the hook if needed
|
|
45
|
+
if [ "$NEEDS_UPDATE" = true ]; then
|
|
46
|
+
cp "$PRE_COMMIT_SOURCE" "$HOOK_PATH"
|
|
47
|
+
chmod +x "$HOOK_PATH"
|
|
48
|
+
echo "✅ Pre-commit hook installed successfully!"
|
|
49
|
+
fi
|
|
50
|
+
echo ""
|
|
51
|
+
echo "The pre-commit hook will now run automatically on every commit and will:"
|
|
52
|
+
echo " - Run ESLint (quiet mode) on TypeScript/JavaScript files"
|
|
53
|
+
echo " - Auto-format Swift files with SwiftLint, then run SwiftLint (strict mode)"
|
|
54
|
+
echo " - Auto-format Kotlin files with ktlint, then run ktlint"
|
|
55
|
+
echo " - Auto-format files with Prettier"
|
|
56
|
+
echo ""
|
|
57
|
+
echo "To test all linting manually, run: yarn lint:all"
|
|
58
|
+
echo "To bypass the hook temporarily, commit with: git commit --no-verify"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
export type OnLoadEventPayload = {
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type BitmovinPlayerReactNativeModuleEvents = {
|
|
8
|
+
onChange: (params: ChangeEventPayload) => void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type ChangeEventPayload = {
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type BitmovinPlayerReactNativeViewProps = {
|
|
16
|
+
url: string;
|
|
17
|
+
onLoad: (event: { nativeEvent: OnLoadEventPayload }) => void;
|
|
18
|
+
style?: StyleProp<ViewStyle>;
|
|
19
|
+
};
|
package/src/adaptationConfig.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface AdaptationConfig {
|
|
|
11
11
|
/**
|
|
12
12
|
* The initial bandwidth estimate in bits per second the player uses to select the optimal media tracks before actual bandwidth data is available. Overriding this value should only be done in specific cases and will most of the time not result in better selection logic.
|
|
13
13
|
*
|
|
14
|
-
* @
|
|
14
|
+
* @remarks Platform: Android
|
|
15
15
|
* @see https://cdn.bitmovin.com/player/android/3/docs/player-core/com.bitmovin.player.api.media/-adaptation-config/initial-bandwidth-estimate-override.html
|
|
16
16
|
*/
|
|
17
17
|
initialBandwidthEstimateOverride?: number;
|
package/src/advertising.ts
CHANGED
package/src/analytics/config.ts
CHANGED
|
@@ -44,17 +44,17 @@ export interface SourceMetadata extends CustomDataConfig {
|
|
|
44
44
|
/**
|
|
45
45
|
* ID of the video in the CMS system
|
|
46
46
|
*/
|
|
47
|
-
videoId?:
|
|
47
|
+
videoId?: string;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Human readable title of the video asset currently playing
|
|
51
51
|
*/
|
|
52
|
-
title?:
|
|
52
|
+
title?: string;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Breadcrumb path to show where in the app the user is
|
|
56
56
|
*/
|
|
57
|
-
path?:
|
|
57
|
+
path?: string;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Flag to see if stream is live before stream metadata is available
|
|
@@ -64,7 +64,7 @@ export interface SourceMetadata extends CustomDataConfig {
|
|
|
64
64
|
/**
|
|
65
65
|
* CDN Provider that the video playback session is using
|
|
66
66
|
*/
|
|
67
|
-
cdnProvider?:
|
|
67
|
+
cdnProvider?: string;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|
package/src/analytics/player.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { NativeModules } from 'react-native';
|
|
2
1
|
import { CustomDataConfig } from './config';
|
|
3
|
-
|
|
4
|
-
const PlayerAnalyticsModule = NativeModules.PlayerAnalyticsModule;
|
|
2
|
+
import PlayerAnalyticsModule from './playerAnalyticsModule';
|
|
5
3
|
|
|
6
4
|
/**
|
|
7
5
|
* Provides the means to control the analytics collected by a `Player`.
|
|
@@ -21,8 +19,8 @@ export class AnalyticsApi {
|
|
|
21
19
|
* Sends a sample with the provided custom data.
|
|
22
20
|
* Does not change the configured custom data of the collector or source.
|
|
23
21
|
*/
|
|
24
|
-
sendCustomDataEvent = (customData: CustomDataConfig) => {
|
|
25
|
-
PlayerAnalyticsModule.sendCustomDataEvent(this.playerId, customData);
|
|
22
|
+
sendCustomDataEvent = async (customData: CustomDataConfig) => {
|
|
23
|
+
await PlayerAnalyticsModule.sendCustomDataEvent(this.playerId, customData);
|
|
26
24
|
};
|
|
27
25
|
|
|
28
26
|
/**
|
|
@@ -30,7 +28,7 @@ export class AnalyticsApi {
|
|
|
30
28
|
*
|
|
31
29
|
* @returns The current user id.
|
|
32
30
|
*/
|
|
33
|
-
getUserId = async (): Promise<string> => {
|
|
31
|
+
getUserId = async (): Promise<string | null> => {
|
|
34
32
|
return PlayerAnalyticsModule.getUserId(this.playerId);
|
|
35
33
|
};
|
|
36
34
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NativeModule, requireNativeModule } from 'expo-modules-core';
|
|
2
|
+
|
|
3
|
+
export type PlayerAnalyticsModuleEvents = Record<string, any>;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Native PlayerAnalyticsModule using Expo modules API.
|
|
7
|
+
* Provides modern async/await interface while maintaining backward compatibility.
|
|
8
|
+
*/
|
|
9
|
+
declare class PlayerAnalyticsModule extends NativeModule<PlayerAnalyticsModuleEvents> {
|
|
10
|
+
sendCustomDataEvent(
|
|
11
|
+
playerId: string,
|
|
12
|
+
customData: Record<string, any>
|
|
13
|
+
): Promise<void>;
|
|
14
|
+
getUserId(playerId: string): Promise<string | null>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default requireNativeModule<PlayerAnalyticsModule>(
|
|
18
|
+
'PlayerAnalyticsModule'
|
|
19
|
+
);
|
package/src/audioSession.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const AudioSessionModule = NativeModules.AudioSessionModule;
|
|
1
|
+
import AudioSessionModule from './modules/AudioSessionModule';
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
* An audio session category defines a set of audio behaviors.
|
|
@@ -15,7 +13,7 @@ const AudioSessionModule = NativeModules.AudioSessionModule;
|
|
|
15
13
|
* - `record`: The category for recording audio while also silencing playback audio.
|
|
16
14
|
* - `soloAmbient`: The default audio session category.
|
|
17
15
|
*
|
|
18
|
-
* @
|
|
16
|
+
* @remarks Platform: iOS
|
|
19
17
|
* @see https://developer.apple.com/documentation/avfaudio/avaudiosession/category
|
|
20
18
|
*/
|
|
21
19
|
export type AudioSessionCategory =
|
|
@@ -29,14 +27,14 @@ export type AudioSessionCategory =
|
|
|
29
27
|
/**
|
|
30
28
|
* An object that communicates to the system how you intend to use audio in your app.
|
|
31
29
|
*
|
|
32
|
-
* @
|
|
30
|
+
* @remarks Platform: iOS
|
|
33
31
|
* @see https://developer.apple.com/documentation/avfaudio/avaudiosession
|
|
34
32
|
*/
|
|
35
33
|
export const AudioSession = {
|
|
36
34
|
/**
|
|
37
35
|
* Sets the audio session's category.
|
|
38
36
|
*
|
|
39
|
-
* @
|
|
37
|
+
* @remarks Platform: iOS
|
|
40
38
|
* @see https://developer.apple.com/documentation/avfaudio/avaudiosession/1616583-setcategory
|
|
41
39
|
*/
|
|
42
40
|
setCategory: async (category: AudioSessionCategory): Promise<void> => {
|
package/src/audioTrack.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const BitmovinCastManagerModule = NativeModules.BitmovinCastManagerModule;
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
import BitmovinCastManagerModule from './modules/BitmovinCastManagerModule';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* The options to be used for initializing `BitmovinCastManager`
|
|
7
|
-
* @
|
|
6
|
+
* @remarks Platform: Android, iOS
|
|
8
7
|
*/
|
|
9
8
|
export interface BitmovinCastManagerOptions {
|
|
10
9
|
/**
|
|
@@ -24,7 +23,7 @@ export interface BitmovinCastManagerOptions {
|
|
|
24
23
|
* The `BitmovinCastManager` needs to be initialized by calling `BitmovinCastManager.initialize`
|
|
25
24
|
* before `Player` creation to enable casting features.
|
|
26
25
|
*
|
|
27
|
-
* @
|
|
26
|
+
* @remarks Platform: Android, iOS
|
|
28
27
|
*/
|
|
29
28
|
export const BitmovinCastManager = {
|
|
30
29
|
/**
|
|
@@ -54,7 +53,9 @@ export const BitmovinCastManager = {
|
|
|
54
53
|
if (Platform.OS === 'ios' && Platform.isTV) {
|
|
55
54
|
return Promise.resolve();
|
|
56
55
|
}
|
|
57
|
-
return BitmovinCastManagerModule.initializeCastManager(
|
|
56
|
+
return BitmovinCastManagerModule.initializeCastManager(
|
|
57
|
+
options || undefined
|
|
58
|
+
);
|
|
58
59
|
},
|
|
59
60
|
|
|
60
61
|
/**
|
|
@@ -62,13 +63,13 @@ export const BitmovinCastManager = {
|
|
|
62
63
|
* Make sure to call this method on every Android Activity switch.
|
|
63
64
|
*
|
|
64
65
|
* @returns A promise that resolves when the context was updated successfully
|
|
65
|
-
* @
|
|
66
|
+
* @remarks Platform: Android
|
|
66
67
|
*/
|
|
67
68
|
updateContext: async (): Promise<void> => {
|
|
68
69
|
if (Platform.OS === 'ios') {
|
|
69
70
|
return Promise.resolve();
|
|
70
71
|
}
|
|
71
|
-
return BitmovinCastManagerModule.updateContext();
|
|
72
|
+
return BitmovinCastManagerModule.updateContext?.() || Promise.resolve();
|
|
72
73
|
},
|
|
73
74
|
|
|
74
75
|
/**
|
|
@@ -78,10 +79,13 @@ export const BitmovinCastManager = {
|
|
|
78
79
|
* @param messageNamespace The message namespace to be used, in case of null the default message namespace will be used
|
|
79
80
|
* @returns A promise that resolves when the message was sent successfully
|
|
80
81
|
*/
|
|
81
|
-
sendMessage: (message:
|
|
82
|
+
sendMessage: (message: string, messageNamespace: string | null = null) => {
|
|
82
83
|
if (Platform.OS === 'ios' && Platform.isTV) {
|
|
83
84
|
return Promise.resolve();
|
|
84
85
|
}
|
|
85
|
-
return BitmovinCastManagerModule.sendMessage(
|
|
86
|
+
return BitmovinCastManagerModule.sendMessage(
|
|
87
|
+
message,
|
|
88
|
+
messageNamespace || undefined
|
|
89
|
+
);
|
|
86
90
|
},
|
|
87
91
|
};
|
package/src/bufferApi.ts
CHANGED
package/src/bufferConfig.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface BufferConfig {
|
|
|
27
27
|
*
|
|
28
28
|
* Default is `5` seconds.
|
|
29
29
|
*
|
|
30
|
-
* @
|
|
30
|
+
* @remarks Platform: Android
|
|
31
31
|
*/
|
|
32
32
|
restartThreshold?: number;
|
|
33
33
|
/**
|
|
@@ -36,7 +36,7 @@ export interface BufferConfig {
|
|
|
36
36
|
*
|
|
37
37
|
* Default is `2.5` seconds.
|
|
38
38
|
*
|
|
39
|
-
* @
|
|
39
|
+
* @remarks Platform: Android
|
|
40
40
|
*/
|
|
41
41
|
startupThreshold?: number;
|
|
42
42
|
}
|