Fix regression reported by @eduedix - not automatically playing
- Was introduced with `pause` prop
This commit is contained in:
parent
116ee6844f
commit
90a0f85cf9
12
RCTVideo.m
12
RCTVideo.m
@ -76,6 +76,8 @@
|
|||||||
@"canStepForward": [NSNumber numberWithBool:video.canStepForward],
|
@"canStepForward": [NSNumber numberWithBool:video.canStepForward],
|
||||||
@"target": self.reactTag
|
@"target": self.reactTag
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
[_player play];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setResizeMode:(NSString*)mode
|
- (void)setResizeMode:(NSString*)mode
|
||||||
@ -85,11 +87,11 @@
|
|||||||
|
|
||||||
- (void)setPause:(BOOL)wantsToPause
|
- (void)setPause:(BOOL)wantsToPause
|
||||||
{
|
{
|
||||||
if (wantsToPause) {
|
if (wantsToPause) {
|
||||||
[_player pause];
|
[_player pause];
|
||||||
} else {
|
} else {
|
||||||
[_player play];
|
[_player play];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-video",
|
"name": "react-native-video",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "A <Video> element for react-native",
|
"description": "A <Video> element for react-native",
|
||||||
"main": "Video.ios.js",
|
"main": "Video.ios.js",
|
||||||
"author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)",
|
"author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)",
|
||||||
|
Loading…
Reference in New Issue
Block a user