Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions ios/Video/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher
selector:@selector(audioRouteChanged:)
name:AVAudioSessionRouteChangeNotification
object:nil];

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(bandwidthUpdated:)
name:AVPlayerItemNewAccessLogEntryNotification
object:nil];
}

return self;
Expand Down Expand Up @@ -820,13 +825,6 @@ - (void)attachListeners
name:AVPlayerItemPlaybackStalledNotification
object:nil];

[[NSNotificationCenter defaultCenter] removeObserver:self
name:AVPlayerItemNewAccessLogEntryNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(bandwidthUpdated:)
name:AVPlayerItemNewAccessLogEntryNotification
object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self
name: AVPlayerItemFailedToPlayToEndTimeNotification
object:nil];
Expand Down