IT Community - Software Programming, Web Development and Technical Support

How do we show video embed tag in thumbnail

This is a discussion on How do we show video embed tag in thumbnail within the PHP Programming forums, part of the Web Development category; Hi, How do we show the video embed tag as a thumbnail image? or Shall we create thumbnail from the ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-15-2007, 08:15 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Question How do we show video embed tag in thumbnail

Hi,
How do we show the video embed tag as a thumbnail image?
or
Shall we create thumbnail from the given embed tag as
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/vtZ2qeOwuaI"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/vtZ2qeOwuaI" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350">
</embed></object>

I am in need of creating thumbnail from the above embed tag.

Thanks
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-15-2007, 12:06 PM
makemoneyonlinenow makemoneyonlinenow is offline
D-Web Trainee
 
Join Date: Mar 2007
Posts: 47
makemoneyonlinenow is on a distinguished road
Default Re: How do we show video embed tag in thumbnail

Shoot, I feel so silly. I used to know how to do this and just when I was about to explain it it falls right out of my brain!

Hopefully, it will come back to me soon or someone else will be kind enough to answer the question. Now I am going to be thinking about this all day!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-16-2007, 12:17 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 299
Karpagarajan is on a distinguished road
Thumbs up Re: How do we show video embed tag in thumbnail

I think you can simply give this embed tag in your web file and change the width and height of that object. You cannot create the video thumbnail from the embed tag.

for example


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>videothumbs</title>
</head>
<body bgcolor="#ffffff">

<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/vtZ2qeOwuaI"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/vtZ2qeOwuaI" type="application/x-shockwave-flash" wmode="transparent" width="200" height="200">
</embed></object>

</body>
</html>


thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-16-2007, 10:51 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How do we show video embed tag in thumbnail

Hi Karpaga,
Ok. I think it shows as a thumbnail. but the problem is while hitting this object it opened another window and take you that original url. But here i need to call my javascript function instead of calling its url.

For better, i expect the concepts of creating thumbnail from the given src.

Thanks for your effort.
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-16-2007, 11:24 PM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 299
Karpagarajan is on a distinguished road
Thumbs up Re: How do we show video embed tag in thumbnail

I think it is not possible to hook the embedded object event. Because say for example the embedded tag has yahoo videos, the yahoo component itself has its own click event functionality. To trap this click event, you need to have an another layer. It will be done by our own code only. So previous tag embed will not work in this case. So please use the following method.
  • Create a flash component which will hold the embeded object inside.
  • And put a layer before the embed object.
  • Place the movieclip object with _alpha=0.Execute your function in the movieclip click event(javascript function)
  • Get flashvars from your code to this flash component to activate the embeded object.
Hope it will work. I just gave the flash oriented problem solving method. The sameway you can apply with any of your code.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-17-2007, 12:36 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How do we show video embed tag in thumbnail

Hi,
Thanks. It is working for me too except a small. Is there any function in the flash script to capture the event from the html page while clicking the object. Still i have tried to get event for the clicking event on the object.

Hope can understand my query..
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-17-2007, 03:09 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 299
Karpagarajan is on a distinguished road
Thumbs up Re: How do we show video embed tag in thumbnail

Sorry...I didnt get your question.


1. You want to capture the HTML object event?
or
2. You want to capture the event from the embeded tag object.?

For No 1. We cannot capture the event of HTML page. If the flash swf is in HTML page, the flash will do it's functionality only not the other's. If you want to capture for the flash object click event, you can call the javascript function in HTML Page by the following code in the flash component click event. In that you can do whatever you want to proceed

getURL("javascript:alert('Sample javascriptfunction')");

For No 2. Already we have included the Embeded video object to the flash component in the previous message.You can call the program for embeded video click event or call the javascript (Above sample code) in the movieclip event.

I hope this will help you. If anything else let me know or give brief explanation about your problem

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
embed a video file in HTML xarzu The Lounge 3 05-01-2008 02:30 PM
How to create BMP thumbnail image in PHP? Jeyaseelansarc PHP Programming 2 10-13-2007 01:05 AM
Create thumbnail for Video in PHP Jeyaseelansarc PHP Programming 1 09-10-2007 07:51 AM
How to create a Thumbnail Images even the users give in different ration in c#. H2o C# Programming 4 08-10-2007 01:00 AM
Create thumbnail for Video in PHP Jeyaseelansarc PHP Programming 0 03-12-2007 07:06 AM


All times are GMT -7. The time now is 02:40 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0