molendijk
11-15-2009, 09:57 PM
1) CODE TITLE: Controlling video's coming from a video sharing website
2) AUTHOR NAME: Arie Molendijk
3) DESCRIPTION:
If we accidentally click on a video from a video sharing website (YouTube, DailyMotion etc.), it will show in a new window (belonging to the provider of the video) even if we included it properly in our page. Only certain video types, like the one provided by http://video.google.nl, don't show this behavior, which is rather annoying: think of the user who clicks on a big-sized video with the simple intention of closing a menu item that is on top of it.
I wrote a script that gives us some control over 'foreign' video's, whatever their type. The script enables us to click on a video without accidentally opening a new window containing it, to instantly replay a video that is still running, to grab its valid HTML 4 strict include code, to size it in percentages, to show our own customized video-info together with the video, to close the video just like a normal window, and to easily create a play-list.
4) URL TO CODE: http://www.let.rug.nl/molendyk/include_video5/video.html
Edit:
This is now deprecated. As I explain HERE (http://www.dynamicdrive.com/forums/blog.php?b=39), there's a much more elegant way of preventing the user from accidentally opening a video in a new window. The new URL TO CODE is:
http://www.let.rug.nl/molendyk/include_video6/video.html
===
Arie.
2) AUTHOR NAME: Arie Molendijk
3) DESCRIPTION:
If we accidentally click on a video from a video sharing website (YouTube, DailyMotion etc.), it will show in a new window (belonging to the provider of the video) even if we included it properly in our page. Only certain video types, like the one provided by http://video.google.nl, don't show this behavior, which is rather annoying: think of the user who clicks on a big-sized video with the simple intention of closing a menu item that is on top of it.
I wrote a script that gives us some control over 'foreign' video's, whatever their type. The script enables us to click on a video without accidentally opening a new window containing it, to instantly replay a video that is still running, to grab its valid HTML 4 strict include code, to size it in percentages, to show our own customized video-info together with the video, to close the video just like a normal window, and to easily create a play-list.
4) URL TO CODE: http://www.let.rug.nl/molendyk/include_video5/video.html
Edit:
This is now deprecated. As I explain HERE (http://www.dynamicdrive.com/forums/blog.php?b=39), there's a much more elegant way of preventing the user from accidentally opening a video in a new window. The new URL TO CODE is:
http://www.let.rug.nl/molendyk/include_video6/video.html
===
Arie.