Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

iphone, html audio dies when iPhone goes to sleep

Posted on 2014-10-29
2
Medium Priority
?
191 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 1500 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Are you looking to clear some space on your phone for the latest iOS 8 update? Did you switch to Spotify so you no longer need to keep music native on your phone? Run out of space for taking photos while in the middle of vacation? Sometimes the quic…
Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
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…

670 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