Commit e8e3ffec authored by Baris Sencan's avatar Baris Sencan
Browse files

Set volume and muted properties on main queue

parent 3b531948
Loading
Loading
Loading
Loading
+4 −0
Changes for RCTVideo.m: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -365,11 +365,15 @@ static NSString *const statusKeyPath = @"status";
- (void)applyModifiers
{
  if (_muted) {
    dispatch_async(dispatch_get_main_queue(), ^{
      [_player setVolume:0];
      [_player setMuted:YES];
    });
  } else {
    dispatch_async(dispatch_get_main_queue(), ^{
      [_player setVolume:_volume];
      [_player setMuted:NO];
    });
  }

  [self setResizeMode:_resizeMode];