Reply
Making an embed script like youtube or myspace?
Old 06-29-2008, 09:45 PM Making an embed script like youtube or myspace?
goheadtry's Avatar
Webmaster Talker

Posts: 715
Name: John
Location: United States of America, California
Okay I have noticed how myspace has very simple embed script, I would like to make an embed script as simple as youtube.com

here is an example of a youtube script

I have noticed in the script

There is a section like this
Code:
http://www.youtube.com/v/_n77CwPUB7o&hl=en
when I type it in I get this

Code:
http://www.youtube.com/swf/l.swf?video_id=_n77CwPUB7o&rel=1&eurl=&iurl=http%3A//i.ytimg.com/vi/_n77CwPUB7o/default.jpg&t=OEgsToPDskIDcRmx--xEyJ5grXhYmWEy&hl=en
HTML Code:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/_n77CwPUB7o&hl=en"></param><embed src="http://www.youtube.com/v/_n77CwPUB7o&hl=en" type="application/x-shockwave-flash" width="425" height="344"></embed></object>
So here is the html embed I want to simplify:


HTML Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240">
<param name="movie" value="http://www.mcmediaplayer.com/public/mcmp_0.5.swf"><param name="allowScriptAccess" value="always"><param name="quality" value="high"><param name="allowFullScreen" value="true"><param name="FlashVars" value="fpFileURL=http://www.technologyforever.com/vidd/1.flv&amp;fpPreviewImageURL=http://www.mcmediaplayer.com/public/testfiles/testimage.jpg&amp;cpBackgroundColor=048FB8&amp;cpButtonsOpacity=80&amp;cpHidePanel=mouseout&amp;cpPlayBtnPosition=55x12&amp;fpButtonOpacity=45&amp;fpButtonSize=204x204&amp;msgBackgroundColor=048FB8&amp;playerSize=320x240">
<embed src="http://www.mcmediaplayer.com/public/mcmp_0.5.swf" quality="high" allowfullscreen="true" allowscriptaccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" flashvars="fpFileURL=http://www.technologyforever.com/vidd/1.flv&amp;fpPreviewImageURL=http://www.mcmediaplayer.com/public/testfiles/testimage.jpg&amp;cpBackgroundColor=048FB8&amp;cpButtonsOpacity=80&amp;cpHidePanel=mouseout&amp;cpPlayBtnPosition=55x12&amp;fpButtonOpacity=45&amp;fpButtonSize=204x204&amp;msgBackgroundColor=048FB8&amp;playerSize=320x240" width="320" height="240">
</object>
Please help me. I will give you talkupation. I need to know how to simplify my script.

Last edited by goheadtry : 06-29-2008 at 09:47 PM.
goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
When You Register, These Ads Go Away!
     
Old 06-30-2008, 02:37 PM Re: Making an embed script like youtube or myspace?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,314
Name: Keith Marshall
Location: West Hartford, CT
With a combination of htaccess rewrite and a database storing the redirect url value of the movie, you can redirect the embed source to the correct url by the table id.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Making an embed script like youtube or myspace?
 

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11422 seconds with 13 queries