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.

How to integrate a video onto homepage without using YouTube

Discussion in 'HTML & Website Design' started by WebDev Solutions, Jul 16, 2013.

  1. #1
    Hello,

    We currently have a promotional/informational video on our homepage. As you can see, the video is currently hosted on YouTube and we simply added the embedding code that YT provided us.

    We'd like to keep this video on the homepage but integrate it directly into the site, without using YouTube (this is because at present other youtube videos appear once the video ends which potentially loses us traffic). Can anybody give me some guidance on how to go about doing this?

    Ideally I'd like someone to give me step by step instructions so I learn how to do this myself- but I would be open to paying somebody to do it for me if that's not an option in your mind.

    Any help is greatly appreciated.

    WebDev
    WebDev Solutions, Jul 16, 2013 IP
  2. Vernard

    Vernard Greenhorn

    Messages:
    92
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    13
    #2
    Here you go: http://www.videojs.com/
    Docs: https://github.com/videojs/video.js/blob/master/docs/index.md
    Vernard, Jul 21, 2013 IP
  3. rhoula

    rhoula Active Member

    Messages:
    856
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    95
    #3
    I think with YouTube there is an option where you can disable the links at the end of the video to keep your traffic within your site.

    You may wanna check it out with YouTube. I'm pretty sure I've seen it before.

    Good luck
    rhoula, Jul 22, 2013 IP
  4. jimmyt200388

    jimmyt200388 Active Member

    Messages:
    175
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    55
    #4
    flow player is my favourite it plays almost anything whereas video JS will only play MP4
    jimmyt200388, Jul 23, 2013 IP
  5. Vernard

    Vernard Greenhorn

    Messages:
    92
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    13
    #5
    VideoJS supports webm & ogv.
    Vernard, Jul 23, 2013 IP
  6. kk5st

    kk5st Well-Known Member

    Messages:
    2,906
    Likes Received:
    191
    Best Answers:
    9
    Trophy Points:
    190
    #6
    Since it's your video, host it yourself and use the object element.
    Code (Text):
    1. <!DOCTYPE html>
    2.  
    3. <html>
    4. <head>
    5.   <meta content="text/html; charset=utf-8"
    6.         http-equiv="Content-Type">
    7.  
    8.   <title>test document</title>
    9.   <base href="#">
    10.   <style type="text/css">
    11. /*<![CDATA[*/
    12.  
    13.   object {
    14.     border: 1px solid black;
    15.     height: 320px;
    16.     width: 480px;
    17.     }
    18.  
    19.   /*]]>*/
    20.   </style>
    21. </head>
    22.  
    23. <body>
    24.   <p><object data="long-div.flv"
    25.           type="video/x-flv">
    26.     <p>Oops, the video didn&#39;t load. You may see it at <a href=
    27.     "...">YouTube</a></p>
    28.   </object></p>
    29. </body>
    30. </html>
    cheers,

    gary
    kk5st, Jul 23, 2013 IP
  7. jimmyt200388

    jimmyt200388 Active Member

    Messages:
    175
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    55
    #7
    You have to provide alternative formats depending if they are firefox, chrome etc
    jimmyt200388, Jul 23, 2013 IP
  8. jamjar919

    jamjar919 Well-Known Member

    Messages:
    315
    Likes Received:
    6
    Best Answers:
    5
    Trophy Points:
    105
    #8
    You could either use the new <video> tag, or just use <object> (Probably preferable). I believe there is a way to disable those video links at the end through your youtube account though.
    jamjar919, Jul 23, 2013 IP
  9. Vernard

    Vernard Greenhorn

    Messages:
    92
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    13
    #9
    ogv & webm works on Firefox, Chrome, & IE.
    Vernard, Jul 23, 2013 IP