Embedding Youtube vids on my website - does it work?
Moderators: Víctor Paredes, Belgarath, slowtiger
Embedding Youtube vids on my website - does it work?
I haven't worked on my web site in ages and it's been down a long time since it got hacked. Enough time to get over the pain.
This is a test of how I am going to embed Youtube videos on my new web site. I like using Youtube but wasn't happy with some of the limitations. This just uses hidden content with css and javascript. You can over ride many of the parameters of the default embed code, like listing "related" videos at the end and turning on autoplay. Everything you see is pulled from my videos on the youtube site, including the thumbnails.
Like I said just a test. I will be inserting this code into the final layout of the site. Let me know if it doesn't work right.
You should click on the thumbnails on the left which shows the video on the right that begins to play automatically. Clicking another thumbnail should hide the open one and show the new one. Clicking the same thumbnail again hides that video.
http://www.vernsworld.com/anime_studio/embed-movie.html
-vern
This is a test of how I am going to embed Youtube videos on my new web site. I like using Youtube but wasn't happy with some of the limitations. This just uses hidden content with css and javascript. You can over ride many of the parameters of the default embed code, like listing "related" videos at the end and turning on autoplay. Everything you see is pulled from my videos on the youtube site, including the thumbnails.
Like I said just a test. I will be inserting this code into the final layout of the site. Let me know if it doesn't work right.
You should click on the thumbnails on the left which shows the video on the right that begins to play automatically. Clicking another thumbnail should hide the open one and show the new one. Clicking the same thumbnail again hides that video.
http://www.vernsworld.com/anime_studio/embed-movie.html
-vern
- synthsin75
- Posts: 9973
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Yes. I don't want to go to the hassle of hosting my own video content. You can have a small amount of space and have all your high bandwidth space hogging content on youtube. I will also be looking at other options for video like Vimeo (higher quality).synthsin75 wrote: Will this be the long promised tutorial site?
I have a pretty good used PC now and have downloaded Wink and Camstudio (the free version). I plan to try these out for doing tutorials. I still feel more comfortable doing "static" or "simpler" text and "screen grab" tutorials. They can be repurposed for print, web or pdf etc. They are also easier to do. See how it goes.
-vern
- kphgraphics
- Posts: 132
- Joined: Mon Oct 22, 2007 7:32 am
Cool! Thanks for the feedback.
Genete,
these were some vids I had lying about for testing. The new "HD" display for youtube is great. As long as the video is in the right format when uploaded the high quality display is added in "automatically", their processor creates a high res "version".
Synth,
I can fix that IE issue by using the SWFObject for embedding the videos. This is cool. It gives you complete control over EVERYTHING when embedding the videos using JS, like playing, pausing, stopping etc. So you can "replace" the controls that Youtube normally puts in with your own. You can also "force" high quality playback.
-vern
Genete,
these were some vids I had lying about for testing. The new "HD" display for youtube is great. As long as the video is in the right format when uploaded the high quality display is added in "automatically", their processor creates a high res "version".
Synth,
I can fix that IE issue by using the SWFObject for embedding the videos. This is cool. It gives you complete control over EVERYTHING when embedding the videos using JS, like playing, pausing, stopping etc. So you can "replace" the controls that Youtube normally puts in with your own. You can also "force" high quality playback.
-vern
Woooohooooo!
Check out that link again. I updated it. It now uses the SWFObject code. It's so easy and way less coding. Total control. I can even eliminate the Youtube controls completely.
http://www.vernsworld.com/anime_studio/embed-movie.html
This is cool! If anyone does youtube stuff and embeds the links in their own web pages... AND isn't afraid of fooling with the code you need to check out the SWFObject stuff. It's fairly easy to do if you understand some basic HTML and javasscript. It only works "online" though. You can't do "local testing".
http://code.google.com/p/swfobject/
-vern
Check out that link again. I updated it. It now uses the SWFObject code. It's so easy and way less coding. Total control. I can even eliminate the Youtube controls completely.
http://www.vernsworld.com/anime_studio/embed-movie.html
This is cool! If anyone does youtube stuff and embeds the links in their own web pages... AND isn't afraid of fooling with the code you need to check out the SWFObject stuff. It's fairly easy to do if you understand some basic HTML and javasscript. It only works "online" though. You can't do "local testing".
http://code.google.com/p/swfobject/
-vern
- synthsin75
- Posts: 9973
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
- synthsin75
- Posts: 9973
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
- Víctor Paredes
- Site Admin
- Posts: 5660
- Joined: Wed Jan 26, 2005 12:18 am
- Location: Barcelona/Chile
- Contact:
It's very easy to do. You will need to edit code by hand unless there is some kind of widget or add on for Dreamweaver or other html tool. You do have to upload some extra stuff to your server and link to it. Or there is a "hosted" version of the code you can link to if you don't want to host it on your own site.
It actually uses a totally different method for embedding the videos. It isn't actually embedding at all. It replaces the content of a <div> tag with the youtube video link. That empty video place holder is then loaded with a video through a simple JS function when you click a link.
In my first example I had all the youtube videos already in the page code in hidden div tags. Clicking the links would show or hide the content in the div's.
With SWFObject I only have one div tag that holds the video content. That div has an ID which is targeted by the links that loads the new content.
This is great. To add a new video link I just put in the link with the Youtube video "id" and it works. It's very efficient and looks nice too.
I have to agree with Synth though, I wish there was a way to "scrub" and pause video in Youtube. Apparently there is no way to do that using this type of "embedding". The video controls aren't "in" the web page so there is no way to use a "goto frame" command. I may be missing something though.
-vern
It actually uses a totally different method for embedding the videos. It isn't actually embedding at all. It replaces the content of a <div> tag with the youtube video link. That empty video place holder is then loaded with a video through a simple JS function when you click a link.
In my first example I had all the youtube videos already in the page code in hidden div tags. Clicking the links would show or hide the content in the div's.
With SWFObject I only have one div tag that holds the video content. That div has an ID which is targeted by the links that loads the new content.
This is great. To add a new video link I just put in the link with the Youtube video "id" and it works. It's very efficient and looks nice too.
I have to agree with Synth though, I wish there was a way to "scrub" and pause video in Youtube. Apparently there is no way to do that using this type of "embedding". The video controls aren't "in" the web page so there is no way to use a "goto frame" command. I may be missing something though.
-vern