Solved

iphone, html audio dies when iPhone goes to sleep

Posted on 2014-10-29
2
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What's a UDID? If you're involved in developing, testing, or even reviewing an iOS application that's in beta, then at some point you may need to know the UDID for any iOS devices that you'll be testing on. What's the UDID? It stands for Unique Dev…
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
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…

627 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