I need to be able to autoplay sounds for a specific web application. As the application is being used internally I have access to the devices and would therefore like to turn off the autoplay restriction for audio on mobile chrome for iOS.
Are there any settings for that?
There is a policy AutoplayAllowed for this purpose: https://dev.chromium.org/administrators/policy-list-3#AutoplayAllowed
But it doesn't work anymore on iOS:
Policy Support on Chrome on iOS is being removed in Chrome 48 as part of Chrome's move to WKWebView where supporting many of the policies was not possible.
Source: https://dev.chromium.org/administrators/ios-mdm-policy-format
Related
If iOS supports native push notifications, why isn't it possible for Chrome team (and other browsers' vendors) to implement WebPush? Are there any technical restrictions?
Because on iOS, Apple has (so far) disabled support for service workers in any browser other than Safari, and has also done the same on WebView.
So I understand based on the Youtube API docs as well as a few related questions here on Stackoverflow that auto-play is not allowed for embedded media on Safari/Chrome on mobile devices. The rationale is to ensure unsolicited downloads don't happen over cellular networks. But if a user is on Chrome in a mobile device but is on Wi-Fi (which a lot of users are on typically), this restriction of disallowing autoplay seems to still exist via the Youtube iframe API. Why is this the case? Perhaps there is something I am missing. Appreciate any advice/pointers. I was hoping to achieve auto-play on mobile web if user is on WiFi.
Actually it's not Youtube's Restrictions, it's (was) Apple's.
New Policies for iOS
You just need to add the correct html tag and attribute and it works on newer devices.
Has anyone else noticed that Safari (and even Chrome) for iOS attempt to preload all audio tags even if you use the preload="none":
<audio src="test.mp3" preload="none"></audio>
Desktop browsers appear to work correctly, but as soon as I load the page from the iPhone the Apache server registers a request for the file.
According to Apple Docs, Mobile Safari never loads music file or metadata until user touch is detected. This is to make sure a webpage doesn't request a lot of music or data to be downloaded on mobile devices which might take up a lot of mobile data. So preload tag is essentially always set to "none" in mobile Safari regardless of what your code has. Here's the link to the docs where they explain everything.
Quote straight from the docs "Note: The preload attribute is supported in Safari 5.0 and later. Safari on iOS never preloads."
I would like to record audio in the browser on iOS and Android.
What are my options right now (oct. 2013) ?
How fast is WebRTC being adopted from the different browser makers ?
The MediaStream Recording API is implemented in Firefox Beta on Android, but not yet in Chrome (though their is an Intent to Implement).
simpl.info/mediarecorder
You can also try recorder.js with Web Audio: http://webaudiodemos.appspot.com/AudioRecorder/index.html.
I don't think this is currently possible with straight HTML (although I've heard that HTML5 may support this in the future):
I'd like a web app that can record audio from the iPad (and also, ideally iPhone).
This will not be an iOS app. It's a web page.
Unfortunately, no. The only hardware functions you can get access to via HTML/JS are the location service and the accelerometer.