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.
@@ -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
- isPlayerInitialized && (
103
- <NativePlayerView
104
- ref={nativeView}
105
- style={nativeViewStyle}
106
- config={nativePlayerViewConfig}
107
- isFullscreenRequested={isFullscreenRequested}
108
- isPictureInPictureRequested={isPictureInPictureRequested}
109
- scalingMode={scalingMode}
110
- fullscreenBridgeId={fullscreenBridge.current?.nativeId}
111
- onBmpAdBreakFinished={proxy(props.onAdBreakFinished)}
112
- onBmpAdBreakStarted={proxy(props.onAdBreakStarted)}
113
- onBmpAdClicked={proxy(props.onAdClicked)}
114
- onBmpAdError={proxy(props.onAdError)}
115
- onBmpAdFinished={proxy(props.onAdFinished)}
116
- onBmpAdManifestLoad={proxy(props.onAdManifestLoad)}
117
- onBmpAdManifestLoaded={proxy(props.onAdManifestLoaded)}
118
- onBmpAdQuartile={proxy(props.onAdQuartile)}
119
- onBmpAdScheduled={proxy(props.onAdScheduled)}
120
- onBmpAdSkipped={proxy(props.onAdSkipped)}
121
- onBmpAdStarted={proxy(props.onAdStarted)}
122
- onBmpCastAvailable={proxy(props.onCastAvailable)}
123
- onBmpCastPaused={proxy(props.onCastPaused)}
124
- onBmpCastPlaybackFinished={proxy(props.onCastPlaybackFinished)}
125
- onBmpCastPlaying={proxy(props.onCastPlaying)}
126
- onBmpCastStarted={proxy(props.onCastStarted)}
127
- onBmpCastStart={proxy(props.onCastStart)}
128
- onBmpCastStopped={proxy(props.onCastStopped)}
129
- onBmpCastTimeUpdated={proxy(props.onCastTimeUpdated)}
130
- onBmpCastWaitingForDevice={proxy(props.onCastWaitingForDevice)}
131
- onBmpCueEnter={proxy(props.onCueEnter)}
132
- onBmpCueExit={proxy(props.onCueExit)}
133
- onBmpDestroy={proxy(props.onDestroy)}
134
- onBmpEvent={proxy(props.onEvent)}
135
- onBmpFullscreenEnabled={proxy(props.onFullscreenEnabled)}
136
- onBmpFullscreenDisabled={proxy(props.onFullscreenDisabled)}
137
- onBmpFullscreenEnter={proxy(props.onFullscreenEnter)}
138
- onBmpFullscreenExit={proxy(props.onFullscreenExit)}
139
- onBmpMuted={proxy(props.onMuted)}
140
- onBmpPaused={proxy(props.onPaused)}
141
- onBmpPictureInPictureAvailabilityChanged={proxy(
142
- props.onPictureInPictureAvailabilityChanged
143
- )}
144
- onBmpPictureInPictureEnter={proxy(props.onPictureInPictureEnter)}
145
- onBmpPictureInPictureEntered={proxy(props.onPictureInPictureEntered)}
146
- onBmpPictureInPictureExit={proxy(props.onPictureInPictureExit)}
147
- onBmpPictureInPictureExited={proxy(props.onPictureInPictureExited)}
148
- onBmpPlay={proxy(props.onPlay)}
149
- onBmpPlaybackFinished={proxy(props.onPlaybackFinished)}
150
- onBmpPlaybackSpeedChanged={proxy(props.onPlaybackSpeedChanged)}
151
- onBmpPlayerActive={proxy(props.onPlayerActive)}
152
- onBmpPlayerError={proxy(props.onPlayerError)}
153
- onBmpPlayerWarning={proxy(props.onPlayerWarning)}
154
- onBmpPlaying={proxy(props.onPlaying)}
155
- onBmpReady={proxy(props.onReady)}
156
- onBmpSeek={proxy(props.onSeek)}
157
- onBmpSeeked={proxy(props.onSeeked)}
158
- onBmpTimeShift={proxy(props.onTimeShift)}
159
- onBmpTimeShifted={proxy(props.onTimeShifted)}
160
- onBmpStallStarted={proxy(props.onStallStarted)}
161
- onBmpStallEnded={proxy(props.onStallEnded)}
162
- onBmpSourceError={proxy(props.onSourceError)}
163
- onBmpSourceLoad={proxy(props.onSourceLoad)}
164
- onBmpSourceLoaded={proxy(props.onSourceLoaded)}
165
- onBmpSourceUnloaded={proxy(props.onSourceUnloaded)}
166
- onBmpSourceWarning={proxy(props.onSourceWarning)}
167
- onBmpAudioAdded={proxy(props.onAudioAdded)}
168
- onBmpAudioChanged={proxy(props.onAudioChanged)}
169
- onBmpAudioRemoved={proxy(props.onAudioRemoved)}
170
- onBmpSubtitleAdded={proxy(props.onSubtitleAdded)}
171
- onBmpSubtitleChanged={proxy(props.onSubtitleChanged)}
172
- onBmpSubtitleRemoved={proxy(props.onSubtitleRemoved)}
173
- onBmpTimeChanged={proxy(props.onTimeChanged)}
174
- onBmpUnmuted={proxy(props.onUnmuted)}
175
- onBmpVideoDownloadQualityChanged={proxy(
176
- props.onVideoDownloadQualityChanged
177
- )}
178
- onBmpVideoPlaybackQualityChanged={proxy(
179
- props.onVideoPlaybackQualityChanged
180
- )}
181
- onBmpDownloadFinished={proxy(props.onDownloadFinished)}
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
  }