File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,14 @@ - (void)seekTo:(NSNumber *)time {
166
166
}
167
167
168
168
- (void )playbackController : (id <BCOVPlaybackController>)controller playbackSession : (id <BCOVPlaybackSession>)session didReceiveLifecycleEvent : (BCOVPlaybackSessionLifecycleEvent *)lifecycleEvent {
169
- if (lifecycleEvent.eventType == kBCOVPlaybackSessionLifecycleEventPlaybackBufferEmpty ) {
169
+ if (lifecycleEvent.eventType == kBCOVPlaybackSessionLifecycleEventPlaybackBufferEmpty || lifecycleEvent.eventType == kBCOVPlaybackSessionLifecycleEventFail ||
170
+ lifecycleEvent.eventType == kBCOVPlaybackSessionLifecycleEventError ||
171
+ lifecycleEvent.eventType == kBCOVPlaybackSessionLifecycleEventTerminate ) {
170
172
_playbackSession = nil ;
171
- } else if (lifecycleEvent.eventType == kBCOVPlaybackSessionLifecycleEventReady ) {
172
- _playbackSession = session;
173
+ return ;
174
+ }
175
+ _playbackSession = session;
176
+ if (lifecycleEvent.eventType == kBCOVPlaybackSessionLifecycleEventReady ) {
173
177
[self refreshVolume ];
174
178
[self refreshBitRate ];
175
179
if (self.onReady ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-brightcove-player" ,
3
- "version" : " 1.6.6 " ,
3
+ "version" : " 1.6.7 " ,
4
4
"description" : " A React Native implementation of Brightcove Player SDK." ,
5
5
"main" : " index.js" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments