February 6, 201511 yr I know that background music is not good for website, but my client want it. I spent two hours but didn't find nothing in google. I use this solution <!-- Simple audio playback --> <audio loop="loop" autoplay="autoplay"> <source src="img/site-music.mp3" type="audio/mpeg"> </audio> But music restart in every page. Add to that that when my client close page on tablet music continue playing! I am ii shoke)))) I know about http://jplayer.org but this plugin add background music only to one page. Is there any jq plugin i can use to achive loop background music on whole site? Thank you!)
February 6, 201511 yr To make music continually play you have to force a new window popup with a music player inside it.BBC Radio iPlayer does a good job of it: http://www.bbc.co.uk/radio4/on-air - might be worth taking a look.
February 6, 201511 yr Author Thank you! But i see news site. How it can help me? There is a script download button? Is there any way to avoid pop-up?
February 7, 201511 yr The only other way is to have the whole website inside an iframe or a frame, not sure that's very friendly though... The news site has an example of them doing a popup.
February 7, 201511 yr Author Oh, I see. Can you point me to the right tutorial for how to make frame for this? I understand that there is no any JQ plugin, right? Even http://jplayer.org can't help me? I am surprised. I thought that JQ has plugins for all goals.. If is so hard can you tell me at least how i can avoid tablet bug with music, how i can stop music after closing site? Jplayer can do this job? Edited February 7, 201511 yr by fleur
February 7, 201511 yr Author Understand. thank you very much for answer. Please, give me advice how i can create pop up window and save it above all pages ? User will open next pages and audio will play consistently. how to make this pop up? point me to right tutorial if possible, i can't find.
February 7, 201511 yr This stack overflow question has a good example of a popup: http://stackoverflow.com/questions/27860164/popup-a-radio-button-on-click Or you can just google javascript popup.
February 7, 201511 yr Author its not working – Redik Jan 9 at 12:18 It's okey. Thank you for advice! Next time i will be more careful and use AJAX
Create an account or sign in to comment