PDA

View Full Version : Controlling video's coming from a video sharing website



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.

djr33
11-15-2009, 10:19 PM
Sounds like a good idea to me. The only problem is that it will disable the standard behavior so users may be confused.
So the balance is between "fixing" it and confusing users expecting a certain behavior.
This is like back when links were supposed to all be blue and other color links confused users.... limited, but the status quo, so hard to change.
If this is introduced correctly, it would work well, but it should be done with some caution.

molendijk
11-15-2009, 10:29 PM
Sounds like a good idea to me. The only problem is that it will disable the standard behavior so users may be confused.
So the balance is between "fixing" it and confusing users expecting a certain behavior... If this is introduced correctly, it would work well, but it should be done with some caution.
Well, that's why I put the buttons on top of the video, one of which is 'Enable Video Controls'. Clicking on that button restores the normal behavior ... for 15 seconds. But yes, I don't know if that takes away the confusion which might arise.
Thanks for the comment,
===
Arie.
===

molendijk
11-20-2009, 01:05 PM
The only problem is that it will disable the standard behavior so users may be confused.
That's no problem anymore in the new version.
===
Arie.
===