How can I use audio and video ?

Discussion in 'HTML & Website Design' started by Ardra, Jan 3, 2011.

  1. #1
    I want to add sound using HTML. How can I do this?
     
    Ardra, Jan 3, 2011 IP
  2. computerlaptop

    computerlaptop Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Windows Media Center, with four large buttons that call up descriptions of the primary tools when you hover the cursor: Audio Converter, Audio Extractor, Sound Recording, and Karaoke Song Recording.
     
    computerlaptop, Jan 4, 2011 IP
  3. extrickster

    extrickster Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think it would be something like...

    I maybe wrong however... but I believe that will work. You have to replace "sounds/beatles.mid" with whatever you please.
     
    extrickster, Jan 4, 2011 IP
  4. Freeman93

    Freeman93 Well-Known Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #4
    Freeman93, Jan 4, 2011 IP
  5. kapisoorseo

    kapisoorseo Active Member

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #5
    <video width="560" height="340" controls>
    <source src="path/to/myvideo.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
    <source src="path/to/myvideo.ogv" type='video/ogg; codecs="theora, vorbis"'>
    </video>

    ------------------------------
    <video width="560" height="340" controls>
    <source src="path/to/myvideo.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
    <source src="path/to/myvideo.ogv" type='video/ogg; codecs="theora, vorbis"'>
    <object width="640" height="384" type="application/x-shockwave-flash"
    data="path/to/swf/player.swf?image=placeholder.jpg&file=path/to/myvideo.mp4">
    <param name="movie" value="path/to/swf/player.swf?image=placeholder.jpg&file=path/to/myvideo.mp4" />
    </object>
    </video>
     
    kapisoorseo, Jan 4, 2011 IP