Loading android/build.gradle +1 −1 Changes for android/build.gradle: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -17,5 +17,5 @@ android { dependencies { provided 'com.facebook.react:react-native:+' compile 'com.yqritc:android-scalablevideoview:1.0.1' compile 'com.yqritc:android-scalablevideoview:1.0.4' } android/src/main/java/com/brentvatne/react/ReactVideoView.java +2 −4 Changes for android/src/main/java/com/brentvatne/react/ReactVideoView.java: 2 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -194,8 +194,7 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP } if ( mMediaPlayer != null ) { mMediaPlayerValid = false; mMediaPlayer.stop(); mMediaPlayer.release(); release(); } } Loading Loading @@ -296,9 +295,8 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP event.putMap(ReactVideoViewManager.PROP_SRC, src); mEventEmitter.receiveEvent(getId(), Events.EVENT_LOAD_START.toString(), event); // not async to prevent random crashes on Android playback from local resource due to race conditions try { prepare(this); prepareAsync(this); } catch (Exception e) { e.printStackTrace(); } Loading Loading
android/build.gradle +1 −1 Changes for android/build.gradle: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -17,5 +17,5 @@ android { dependencies { provided 'com.facebook.react:react-native:+' compile 'com.yqritc:android-scalablevideoview:1.0.1' compile 'com.yqritc:android-scalablevideoview:1.0.4' }
android/src/main/java/com/brentvatne/react/ReactVideoView.java +2 −4 Changes for android/src/main/java/com/brentvatne/react/ReactVideoView.java: 2 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -194,8 +194,7 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP } if ( mMediaPlayer != null ) { mMediaPlayerValid = false; mMediaPlayer.stop(); mMediaPlayer.release(); release(); } } Loading Loading @@ -296,9 +295,8 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP event.putMap(ReactVideoViewManager.PROP_SRC, src); mEventEmitter.receiveEvent(getId(), Events.EVENT_LOAD_START.toString(), event); // not async to prevent random crashes on Android playback from local resource due to race conditions try { prepare(this); prepareAsync(this); } catch (Exception e) { e.printStackTrace(); } Loading