Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: background play from the browser?

Tags:

html

ios

Some iOS apps like Pandora continue playing audio after the app screen has been exited, and even after the device has been locked.

Is it possible to keep audio playing in this way from a browser tab? In other words, can I code an HTML5 page that plays audio and continues playing even after the iPhone is locked?

like image 237
themirror Avatar asked Nov 08 '11 23:11

themirror


People also ask

Can you play videos in the background on iPhone?

You can play YouTube videos in the background on your iPhone using YouTube Premium or Safari. YouTube Premium lets you play videos when the app isn't open, but it costs $11.99 per month. You can also play YouTube videos in the background in Safari using view mode.


1 Answers

Yes, audio playing in a mobile Safari tab will continuously play even when multi-tasking or locking your screen. However, if you save the bookmark to the home screen, open, play audio, and then hop out to multi-task, the audio fades out.

like image 113
shanebo Avatar answered Oct 20 '22 07:10

shanebo