How to prevent user from being redirected to host site when embedding videos?

IGotta

Junior Member
Joined
Aug 27, 2010
Messages
105
Reaction score
41
I'm not sure if I worded the title right, I'm not really sure how to ask it...

When you embed a video onto your site, how do you prevent the user from being taken to the host site when clicking the video? This isn't just for YT videos, but all embedded videos.

I want to be able to embed a video on my site, but when the user clicks it I don't want it to take them to the site where the video was uploaded? Is this possible?

Is it also possible to prevent full screen?



I was thinking of disabling left and right click, and just having the video start playing automatically but I don't like that. They wouldn't be able to click anywhere anyways.:confused:

Any advice is greatly appreciated and welcomed.
 
This is the closest I've found. Your visitors still can click on the small youtube logo on the bottom right, but if they click anywhere else on the video, nothing happens. It has autoplay, doesn't go full screen AFAIK, and has playlist. It also plays videos from other sources:

Demo:
Code:
http://2.s3.envato.com/files/11971045/index.html

Page:
Code:
http://activeden.net/item/video-banner-youtubeflv-as3-v2/1019113
 
Back
Top