From c985957dd52dfebc76ae7e8eab847a465fe0c09f Mon Sep 17 00:00:00 2001 From: Baris Sencan Date: Fri, 26 Jun 2015 15:12:33 -0700 Subject: [PATCH] Set player rate on main thread --- RCTVideo.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RCTVideo.m b/RCTVideo.m index 1ff98250..f89f649c 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -375,7 +375,9 @@ static NSString *const statusKeyPath = @"status"; [self setResizeMode:_resizeMode]; [self setRepeat:_repeat]; [self setPaused:_paused]; - [_player setRate:_rate]; + dispatch_async(dispatch_get_main_queue(), ^{ + [_player setRate:_rate]; + }); } - (void)setRepeat:(BOOL)repeat {