From 90a0f85cf97a46c347b9802e17ce70ed87222e54 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Tue, 7 Apr 2015 08:31:40 -0700 Subject: [PATCH] Fix regression reported by @eduedix - not automatically playing - Was introduced with `pause` prop --- RCTVideo.m | 12 +++++++----- package.json | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/RCTVideo.m b/RCTVideo.m index fc9a2179..175ae2f5 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -76,6 +76,8 @@ @"canStepForward": [NSNumber numberWithBool:video.canStepForward], @"target": self.reactTag }]; + + [_player play]; } - (void)setResizeMode:(NSString*)mode @@ -85,11 +87,11 @@ - (void)setPause:(BOOL)wantsToPause { - if (wantsToPause) { - [_player pause]; - } else { - [_player play]; - } + if (wantsToPause) { + [_player pause]; + } else { + [_player play]; + } } diff --git a/package.json b/package.json index 5889b5b3..b22737a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-video", - "version": "0.2.0", + "version": "0.2.1", "description": "A