Fix regression reported by @eduedix - not automatically playing
- Was introduced with `pause` prop
This commit is contained in:
12
RCTVideo.m
12
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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user