Loading RCTVideo.m +2 −0 Changes for RCTVideo.m: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -226,6 +226,7 @@ static NSString *const playbackRate = @"rate"; _player = [AVPlayer playerWithPlayerItem:_playerItem]; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; [_player addObserver:self forKeyPath:playbackRate options:0 context:nil]; _playbackRateObserverRegistered = YES; const Float64 progressUpdateIntervalMS = _progressUpdateInterval / 1000; // @see endScrubbing in AVPlayerDemoPlaybackViewController.m of https://developer.apple.com/library/ios/samplecode/AVPlayerDemo/Introduction/Intro.html Loading Loading @@ -670,6 +671,7 @@ static NSString *const playbackRate = @"rate"; { [_player pause]; [_player removeObserver:self forKeyPath:playbackRate]; _playbackRateObserverRegistered = NO; _player = nil; [self removePlayerLayer]; Loading Loading
RCTVideo.m +2 −0 Changes for RCTVideo.m: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -226,6 +226,7 @@ static NSString *const playbackRate = @"rate"; _player = [AVPlayer playerWithPlayerItem:_playerItem]; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; [_player addObserver:self forKeyPath:playbackRate options:0 context:nil]; _playbackRateObserverRegistered = YES; const Float64 progressUpdateIntervalMS = _progressUpdateInterval / 1000; // @see endScrubbing in AVPlayerDemoPlaybackViewController.m of https://developer.apple.com/library/ios/samplecode/AVPlayerDemo/Introduction/Intro.html Loading Loading @@ -670,6 +671,7 @@ static NSString *const playbackRate = @"rate"; { [_player pause]; [_player removeObserver:self forKeyPath:playbackRate]; _playbackRateObserverRegistered = NO; _player = nil; [self removePlayerLayer]; Loading