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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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 |
| Sponsored Links |
| |||
| 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! |
| |||
| 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 |
| |||
| 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 |
| |||
| 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.
thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention |
| |||
| 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 |
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |