Embedding Clickable Video - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Website Design and Development > HTML / CSS

WebmasterForums.com is the premier Forum on the internet. Registered Users do not see the above ads.
LinkBack Thread Tools Search this Thread Display Modes
Old 03-27-2016, 06:27 PM   #1 (permalink)
Regular User
Join Date: Sep 2008
Posts: 32
Vance is on a distinguished road
Default Embedding Clickable Video

I sure hope this is the right place for this question. If not, I apologize and hope a mod will move it.

Anyway, I have videos that I have embedded into a website and I would like to find out if and how I can modify the code so that after it starts to play and the visitor clicks on the video it opens another URL.

The code I am using is:
<embed width="700" height="450" flashvars="image=http://mywebsite url/images/18.jpg&stretching=exactfit&width=700&height=450&fi le=http://my-video.flv&repeat=list&link=http%3A%2F%2Fwww.URL To Open When Clicked&linktarget=_blank&displayclick=link&autost art=false" src="http://mywebsite url/mediaplayer.swf" type="application/x-shockwave-flash" allowscriptaccess="always" quality="high" allowfullscreen="true"/></embed>

The way it works now, I click on the image to start the video. The video plays,but when I click on it a second time, it just pauses the video.

I am trying to figure out how to get it to go to another url when the video is clicked on a second time.

I hope this makes sense.

I have done a search on Google, but can't find anything on it and I am far from an expert on this subject so any help would be appreciated. A guide as to how to do this would be great.

Thanks in advance
Vance is offline   Reply With Quote
Sponsored Links
Old 08-27-2016, 11:34 PM   #2 (permalink)
Regular User
Join Date: Aug 2016
Posts: 16
AEDELGOD is on a distinguished road
Default Re: Embedding Clickable Video

embedding flash is a bad idea, using the embed tags is a bad idea on its own since it is considered obsolete in html5. So try the html 5 version for example:
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.

If you want to use flash in it use JWPlayer. It uses HTML5 with it's own JS library to have valid flash players

Last edited by AEDELGOD; 08-28-2016 at 01:18 AM.
AEDELGOD is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

» Advertisement

» Advertisement

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Advertisement

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum

All times are GMT -4. The time now is 11:11 PM.

Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.1
User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Webmaster Forums
Web Hosting | Web Hosting