1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

I Need Html Embed Code For Video

Discussion in 'HTML & Website Design' started by creativewebmaster, Feb 19, 2013.

  1. #1
    I need html embed code for video
     
    creativewebmaster, Feb 19, 2013 IP
  2. tyteen4a03

    tyteen4a03 Member

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #2
    Which website? Youtube or just plain video files?

    For HTML5 (Recommended method), the embed code would be:
    <video>
      <source src="movie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> <!-- MP4 - H.264+AAC -->
      <source src="movie.webm" type='video/webm; codecs="vp8, vorbis"' /> <!-- WebM - VP8+Vorbis -->
      Video tag not supported. Download the video <a href="movie.webm">here</a>. <!-- Fallback - alternatively embedding a <embed> here works? -->
    </video>
    Code (markup):
    Obviously you don't need to encode both formats - just delete the <source> tag of the specific file format you don't have.
    (See HTML5Rocks for more information)

    For HTML4.01, the embed code would be:
    <embed src="video.mp4">
    Code (markup):
    For YouTube, the embed code would be:
    <iframe width="853" height="480" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>
    Code (markup):
     
    tyteen4a03, Feb 19, 2013 IP
  3. cesurasean

    cesurasean Active Member

    Messages:
    269
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Normally sites will provide this code for you. Or are you trying to develop your own videos and enclosures on your own website, or something?
     
    cesurasean, Feb 20, 2013 IP
  4. vpsguru

    vpsguru Greenhorn

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #4
    Upload your video to youtube. Youtube generate embed link and you can add them on your website.
     
    vpsguru, Feb 21, 2013 IP
  5. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #5
    workingsmart, Feb 21, 2013 IP
  6. infoway111

    infoway111 Member

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #6
    Yeah, I completely agree with the above points. Youtube generate embed link and then we can add them on our website.
     
    infoway111, Mar 1, 2013 IP