Results 1 to 3 of 3

Thread: How to stop background music?

  1. #1

    Thread Starter
    Join Date
    Jan 2020

    How to stop background music?

    I have an application where music plays automatically when the page loads (see code below). One of the options on the page, when clicked, will open a new page in a new window. In that window there is a video that plays. The problem is that the background music is playing along with the sound from the video. I need a way to pause the background music for about 3 minutes while the video plays. How would I accomplish that?

    Code upon page load:

    <div id="audio_playMain">
    <audio id="audio_file_main" autoplay loop runat="server">
    <source src="/Images/Just_Feeling_Great_full_mix.mp3" type="audio/mpeg">

    Thanks in advance!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Sydney, Australia

    Re: How to stop background music?

    You have posted in a CodeBank forum, which are for sharing working code snippets rather than asking questions. I have asked the mods to move this thread to a more appropriate forum. Please do not create a duplicate in the meantime.

  3. #3
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    An obscure body in the SK system. The inhabitants call it Earth

    Re: How to stop background music?

    The best argument against democracy is a five minute conversation with the average voter - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width