From d97d92bba3662fba0bd12a35734a32cdcc981680 Mon Sep 17 00:00:00 2001 From: Bardia Khosravi Date: Sat, 25 Aug 2018 20:36:08 +0430 Subject: [PATCH] (ios): fix audio blackscreen Fixes the bug where video is blank after playing audio(because of overlay from audio player). --- src/ios/StreamingMedia.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ios/StreamingMedia.m b/src/ios/StreamingMedia.m index b41a4c0..d190637 100755 --- a/src/ios/StreamingMedia.m +++ b/src/ios/StreamingMedia.m @@ -71,6 +71,9 @@ -(void)parseOptions:(NSDictionary *)options type:(NSString *) type { } else { backgroundColor = [UIColor blackColor]; } + } else { + // Reset overlay on video player after playing audio + [self cleanup]; } // No specific options for video yet }