3

Some websites that have sound/music keep the sound running even after the web browser is closed on iPad. Some other websites stop the sound when the page is closed. I suppose there must be some coding within the HTML to control this. How is this done?

5
  • 1
    Do you have any example? Jun 18 '13 at 6:41
  • For example, coffitivity.com keeps playing the sound after closing the browser, but youtube.com stops playing if I close the browser while it is playing.
    – sawa
    Jun 18 '13 at 6:45
  • I've been testing it but it does not happen to me. Do you actually close the web browser or just put it into background? Does it happen with both safari and chrome?
    – Thecafremo
    Jun 18 '13 at 7:25
  • 1
    @Thecafremo Sorry if my description was not accurate. I am putting it to the background. It is the same with safari and chrome.
    – sawa
    Jun 18 '13 at 7:38
  • I recently upgrade my iPad mini to iOS 8.1 and started having this issue with YouTube videos. After closing the browser (with video still running) the audio continues for several seconds. This problem did not exist before upgrade.
    – user101530
    Nov 19 '14 at 23:21
4

As you may see, websites that keep the music running appear as the music app (here on iOS 6)

enter image description here

It uses the HTML5 audio feature. In the website you gave (coffitivity.com). They use the JPlayer plugin for jquery to use the HTML5 audio API.

4
  • So if the audio comes from HTML5 audio, it keeps playing, and if it is done by something else (e.g., flash), then it stops?
    – sawa
    Jun 18 '13 at 7:43
  • Since flash doesn't run on iOS you won't have any sound ;) Jun 18 '13 at 7:44
  • Right. Then what is the difference between youtube (run on the web browser, not the app)?
    – sawa
    Jun 18 '13 at 7:46
  • The same thing happens to YouTube. But notice that sometimes Safari opens the YouTube app. And the YouTube app doesn't become the "Music app". Jun 18 '13 at 8:01
0

The same seems to happening under Safari Version 7.0.1 (9537.73.11) and MacOSX 10.9.1. A youtube video is watched and then a new web site is opened by typing a new address into the address bar. The new web site is loading but the youtube video sound still continues. closing the window and opening a new window "resolves" this.

0

It plays out of cache when it is started. Whatever page you're on will attempt to download the entire audio and video in order to give the user a higher quality playback. There's an issue in the latest Facebook on iPhone where the audio keeps playing even after leaving the post. Depending on how much cache memory was used the audio will just keep on playing. For Facebook they blindly added the caching feature and didn't bother flushing it or killing the related process. It's called lazy development and poor QA result decisions. Releasing the rest of the updates was more important than fixing the symptom.

For the posts about minimizing the window I can only say LOL.... Good god. The active pages don't stop just because you minimized the window or opened a new tab while leaving the original open.

0

I was able to get this to stop on my iPad Air by going to Settings->General->Multitasking and turning off Persistent Video Overlay. (I did leave multitasking turned on.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .