Loading RCTVideo.m +6 −0 Changes for RCTVideo.m: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -53,7 +53,13 @@ - (void)setSrc:(NSString *)source { BOOL isHttpPrefix = [source hasPrefix:@"http://"]; if (isHttpPrefix) { _videoURL = [NSURL URLWithString:source]; } else { _videoURL = [[NSURL alloc] initFileURLWithPath:[[NSBundle mainBundle] pathForResource:source ofType:@"mp4"]]; } _player = [AVPlayer playerWithURL:_videoURL]; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; _playerLayer = [AVPlayerLayer playerLayerWithPlayer:_player]; Loading Loading
RCTVideo.m +6 −0 Changes for RCTVideo.m: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -53,7 +53,13 @@ - (void)setSrc:(NSString *)source { BOOL isHttpPrefix = [source hasPrefix:@"http://"]; if (isHttpPrefix) { _videoURL = [NSURL URLWithString:source]; } else { _videoURL = [[NSURL alloc] initFileURLWithPath:[[NSBundle mainBundle] pathForResource:source ofType:@"mp4"]]; } _player = [AVPlayer playerWithURL:_videoURL]; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; _playerLayer = [AVPlayerLayer playerLayerWithPlayer:_player]; Loading