Solved

iphone, html audio dies when iPhone goes to sleep

Posted on 2014-10-29
2
186 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Are you having trouble connecting or getting your iPhone / Samsung device(s) to sync with Microsoft Exchange Server?   What have you tried?   What haven't you tried?
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
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…

739 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