Stopping a sound file from playing using just HTML?

Discussion in 'HTML & Website Design' started by Brandon Tanner, Apr 23, 2007.

  1. #1
    Is there a way to stop a sound file from playing using just HTML?

    For example, let's say that I have a "play" button that starts playing an audio stream (Play.gif), and am using this code to do it...

    <A HREF="http://www.MyWebsite.com/MyAudioStream.m3u"><IMG SRC="Play.gif"></A>

    So if I wanted to stop the file from playing (by using a "stop" button), how would I do it?

    I know this is possible using Javascript or Flash but is there any way to do it with just HTML?

    Thanks!
     
    Brandon Tanner, Apr 23, 2007 IP
  2. deques

    deques Peon

    Messages:
    206
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the code links to an m3u playlist which starts a mediaplayer like winamp. after that its not possible to control anything outside the website, unless its hacking in high level
     
    deques, Apr 24, 2007 IP
  3. Brandon Tanner

    Brandon Tanner Peon

    Messages:
    68
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks deques...

    Guess I'll have to do it with JS or Flash then.
     
    Brandon Tanner, Apr 24, 2007 IP
  4. kernes

    kernes Peon

    Messages:
    184
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think you should try



    <body>
    <embed autostart=true hidden=false src=song_name.mp3 loop=true VOLUME="0" HEIGHT="50" WIDTH="400">
    </body>
     
    kernes, Apr 25, 2007 IP
  5. Arson

    Arson Well-Known Member

    Messages:
    622
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    120
    #5
    embedding it would create a little mini media player on the page with the start and stop buttons if im not mistaken. along with pause.
     
    Arson, Apr 25, 2007 IP