bitmovin-player-react-native 1.0.0-alpha.0 → 1.0.0-alpha.2
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/README.md +4 -4
- package/android/src/main/java/com/bitmovin/player/reactnative/BufferModule.kt +1 -4
- package/android/src/main/java/com/bitmovin/player/reactnative/PlayerModule.kt +47 -52
- package/android/src/main/java/com/bitmovin/player/reactnative/PlayerRegistry.kt +78 -0
- package/build/components/PlayerView/index.d.ts +1 -1
- package/build/components/PlayerView/index.d.ts.map +1 -1
- package/build/components/PlayerView/index.js +4 -1
- package/build/components/PlayerView/index.js.map +1 -1
- package/ios/AppLifecycleDelegate.swift +4 -1
- package/ios/OfflineModule.swift +3 -7
- package/ios/PlayerModule.swift +99 -94
- package/ios/PlayerRegistry.swift +88 -0
- package/ios/RNPlayerView.swift +2 -0
- package/package.json +1 -1
- package/plugin/build/withBitmovinIosConfig.js +25 -20
- package/plugin/src/withBitmovinIosConfig.ts +27 -21
- package/src/components/PlayerView/index.tsx +84 -82
|
@@ -98,88 +98,90 @@ export function PlayerView({
|
|
|
98
98
|
}
|
|
99
99
|
}, [viewRef, nativeView]);
|
|
100
100
|
|
|
101
|
+
if (!isPlayerInitialized) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
|
|
101
105
|
return (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
/>
|
|
183
|
-
)
|
|
106
|
+
<NativePlayerView
|
|
107
|
+
ref={nativeView}
|
|
108
|
+
style={nativeViewStyle}
|
|
109
|
+
config={nativePlayerViewConfig}
|
|
110
|
+
isFullscreenRequested={isFullscreenRequested}
|
|
111
|
+
isPictureInPictureRequested={isPictureInPictureRequested}
|
|
112
|
+
scalingMode={scalingMode}
|
|
113
|
+
fullscreenBridgeId={fullscreenBridge.current?.nativeId}
|
|
114
|
+
onBmpAdBreakFinished={proxy(props.onAdBreakFinished)}
|
|
115
|
+
onBmpAdBreakStarted={proxy(props.onAdBreakStarted)}
|
|
116
|
+
onBmpAdClicked={proxy(props.onAdClicked)}
|
|
117
|
+
onBmpAdError={proxy(props.onAdError)}
|
|
118
|
+
onBmpAdFinished={proxy(props.onAdFinished)}
|
|
119
|
+
onBmpAdManifestLoad={proxy(props.onAdManifestLoad)}
|
|
120
|
+
onBmpAdManifestLoaded={proxy(props.onAdManifestLoaded)}
|
|
121
|
+
onBmpAdQuartile={proxy(props.onAdQuartile)}
|
|
122
|
+
onBmpAdScheduled={proxy(props.onAdScheduled)}
|
|
123
|
+
onBmpAdSkipped={proxy(props.onAdSkipped)}
|
|
124
|
+
onBmpAdStarted={proxy(props.onAdStarted)}
|
|
125
|
+
onBmpCastAvailable={proxy(props.onCastAvailable)}
|
|
126
|
+
onBmpCastPaused={proxy(props.onCastPaused)}
|
|
127
|
+
onBmpCastPlaybackFinished={proxy(props.onCastPlaybackFinished)}
|
|
128
|
+
onBmpCastPlaying={proxy(props.onCastPlaying)}
|
|
129
|
+
onBmpCastStarted={proxy(props.onCastStarted)}
|
|
130
|
+
onBmpCastStart={proxy(props.onCastStart)}
|
|
131
|
+
onBmpCastStopped={proxy(props.onCastStopped)}
|
|
132
|
+
onBmpCastTimeUpdated={proxy(props.onCastTimeUpdated)}
|
|
133
|
+
onBmpCastWaitingForDevice={proxy(props.onCastWaitingForDevice)}
|
|
134
|
+
onBmpCueEnter={proxy(props.onCueEnter)}
|
|
135
|
+
onBmpCueExit={proxy(props.onCueExit)}
|
|
136
|
+
onBmpDestroy={proxy(props.onDestroy)}
|
|
137
|
+
onBmpEvent={proxy(props.onEvent)}
|
|
138
|
+
onBmpFullscreenEnabled={proxy(props.onFullscreenEnabled)}
|
|
139
|
+
onBmpFullscreenDisabled={proxy(props.onFullscreenDisabled)}
|
|
140
|
+
onBmpFullscreenEnter={proxy(props.onFullscreenEnter)}
|
|
141
|
+
onBmpFullscreenExit={proxy(props.onFullscreenExit)}
|
|
142
|
+
onBmpMuted={proxy(props.onMuted)}
|
|
143
|
+
onBmpPaused={proxy(props.onPaused)}
|
|
144
|
+
onBmpPictureInPictureAvailabilityChanged={proxy(
|
|
145
|
+
props.onPictureInPictureAvailabilityChanged
|
|
146
|
+
)}
|
|
147
|
+
onBmpPictureInPictureEnter={proxy(props.onPictureInPictureEnter)}
|
|
148
|
+
onBmpPictureInPictureEntered={proxy(props.onPictureInPictureEntered)}
|
|
149
|
+
onBmpPictureInPictureExit={proxy(props.onPictureInPictureExit)}
|
|
150
|
+
onBmpPictureInPictureExited={proxy(props.onPictureInPictureExited)}
|
|
151
|
+
onBmpPlay={proxy(props.onPlay)}
|
|
152
|
+
onBmpPlaybackFinished={proxy(props.onPlaybackFinished)}
|
|
153
|
+
onBmpPlaybackSpeedChanged={proxy(props.onPlaybackSpeedChanged)}
|
|
154
|
+
onBmpPlayerActive={proxy(props.onPlayerActive)}
|
|
155
|
+
onBmpPlayerError={proxy(props.onPlayerError)}
|
|
156
|
+
onBmpPlayerWarning={proxy(props.onPlayerWarning)}
|
|
157
|
+
onBmpPlaying={proxy(props.onPlaying)}
|
|
158
|
+
onBmpReady={proxy(props.onReady)}
|
|
159
|
+
onBmpSeek={proxy(props.onSeek)}
|
|
160
|
+
onBmpSeeked={proxy(props.onSeeked)}
|
|
161
|
+
onBmpTimeShift={proxy(props.onTimeShift)}
|
|
162
|
+
onBmpTimeShifted={proxy(props.onTimeShifted)}
|
|
163
|
+
onBmpStallStarted={proxy(props.onStallStarted)}
|
|
164
|
+
onBmpStallEnded={proxy(props.onStallEnded)}
|
|
165
|
+
onBmpSourceError={proxy(props.onSourceError)}
|
|
166
|
+
onBmpSourceLoad={proxy(props.onSourceLoad)}
|
|
167
|
+
onBmpSourceLoaded={proxy(props.onSourceLoaded)}
|
|
168
|
+
onBmpSourceUnloaded={proxy(props.onSourceUnloaded)}
|
|
169
|
+
onBmpSourceWarning={proxy(props.onSourceWarning)}
|
|
170
|
+
onBmpAudioAdded={proxy(props.onAudioAdded)}
|
|
171
|
+
onBmpAudioChanged={proxy(props.onAudioChanged)}
|
|
172
|
+
onBmpAudioRemoved={proxy(props.onAudioRemoved)}
|
|
173
|
+
onBmpSubtitleAdded={proxy(props.onSubtitleAdded)}
|
|
174
|
+
onBmpSubtitleChanged={proxy(props.onSubtitleChanged)}
|
|
175
|
+
onBmpSubtitleRemoved={proxy(props.onSubtitleRemoved)}
|
|
176
|
+
onBmpTimeChanged={proxy(props.onTimeChanged)}
|
|
177
|
+
onBmpUnmuted={proxy(props.onUnmuted)}
|
|
178
|
+
onBmpVideoDownloadQualityChanged={proxy(
|
|
179
|
+
props.onVideoDownloadQualityChanged
|
|
180
|
+
)}
|
|
181
|
+
onBmpVideoPlaybackQualityChanged={proxy(
|
|
182
|
+
props.onVideoPlaybackQualityChanged
|
|
183
|
+
)}
|
|
184
|
+
onBmpDownloadFinished={proxy(props.onDownloadFinished)}
|
|
185
|
+
/>
|
|
184
186
|
);
|
|
185
187
|
}
|