react-native-video-trim 2.2.8 → 2.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -266,8 +266,6 @@ public class VideoTrimmerView extends FrameLayout implements IVideoTrimmerView {
266
266
  VideoTrimmerUtil.MAX_COUNT_RANGE = Math.max((VIDEO_FRAMES_WIDTH / VideoTrimmerUtil.mThumbWidth), VideoTrimmerUtil.MAX_COUNT_RANGE);
267
267
 
268
268
  startShootVideoThumbs(mContext, VideoTrimmerUtil.MAX_COUNT_RANGE, 0, mDuration);
269
- } else {
270
-
271
269
  }
272
270
 
273
271
  // Set initial handle positions if mMaxDuration < video duration
@@ -348,7 +346,9 @@ public class VideoTrimmerView extends FrameLayout implements IVideoTrimmerView {
348
346
 
349
347
  public void onMediaPause() {
350
348
  mTimingHandler.removeCallbacks(mTimingRunnable);
351
- mediaPlayer.pause();
349
+ if (mediaPlayer.isPlaying()) {
350
+ mediaPlayer.pause();
351
+ }
352
352
  setPlayPauseViewIcon(false);
353
353
  }
354
354
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-video-trim",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "description": "Video trimmer for your React Native app",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",