Solved

iphone, html audio dies when iPhone goes to sleep

Posted on 2014-10-29
2
180 Views
Last Modified: 2014-11-15
I have a website that streams music. When I view it on my Website, everything works fine until the phone goes to sleep . The audio stops.

Some websites and apps play audio even when screen fades to sleep?

Is their some advice or code I can add to the html (or php) to keep the audio playing?
0
Comment
Question by:edavo
2 Comments
 
LVL 12

Accepted Solution

by:
KRUNAL TAILOR earned 500 total points
ID: 40428851
Hi edavo,

you can prevent the phone to sleep using an audio loop. The trick won't start automatically, you will have to play it when the user touches the screen.

<audio loop src="http://www.sousound.com/music/healing/healing_01.mp3"></audio>

Open in new window


Thanks & Regards,
Krunal T. Tailor
0
 

Author Closing Comment

by:edavo
ID: 40444189
Works - but not a viable solution for serving music.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question