EricssonResearch / bowser

A WebRTC browser for iOS developed in the open
BSD 2-Clause "Simplified" License
208 stars 65 forks source link

Playing audio in HTML audio tag doesn't work #75

Open mattschertler opened 8 years ago

mattschertler commented 8 years ago

It seems that playing audio in the audio tag doesn't work.

Regards, matt

stefanalund commented 8 years ago

Bowser extends the WKWebView and should therefore support most of the things that Mobile Safari does. Do you know if playing audio works there?

stefanalund commented 8 years ago

I just stumbled upon these extra configs that may solve your problem:

WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
config.allowsInlineMediaPlayback = YES;
config.mediaPlaybackRequiresUserAction = false;

Do you have the possibility to test this yourself?