Hi everyone, I just can't figure out how this is done so I'll ask here. Take a look at this website: http://familyguynow.com/season.php?id=1 As you can see the videos on this site are linked from external sources and are not hosted on it's own servers. Yet the videos appear embedded on the site's pages. I know this is easy to do with youtube videos where you are actually given the embed code. But the videos appearing on this site are from sites that doesn't offer this feature. So my question is how are they doing this? Is it through some simple html or something more complex? Keep in mind that the site I posted is just one of many where I have seen this occur. How do these sites take videos from other sites and make them appear embedded on their own pages? Thanks in advance for answering my question, it's been bugging the heck out of me.
It is done with a called function javascript. See also hxxp://janusevi.tripod.com/ This is my web site that has links from tv and radio stations. I embedded a player and links open the required player with the call function javascript. This is how it looks like // JavaScript Document function cDisc(ob,tn){ ob.title=disc[tn]; } function mPlay(stream,player){ var PlayerDiv=document.getElementById("mPlayer"); // document.all.mPlayer.innerHTML = ""; if (player=="wm"){ //WMP.controls.stop(); PlayerDiv.innerHTML = "<object classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' type='application/x-mplayer2' width='400' height='300' id='WMP' ><param name='enableContextMenu' value='0'/><param name='autoplay' value='true'/><param name='SendPlayStateChangeEvents' value='true'/><param name='url' value='"+stream+"'/><embed src='"+stream+"' width='400' height='300' autostart='1' autoplay='1' align='middle' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' showcontrols='1' showstatusbar='0' showdisplay='0' autorewind='0' enablecontextmenu='0' border='0'></embed></object>"; document.title = "FAMILY JANUSEVI MEDIA"; return; } if (player=="rp"){ //RMP.controls.stop(); PlayerDiv.innerHTML = "<OBJECT ID='RMP' CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' WIDTH='400' HEIGHT='300' ><PARAM NAME='SRC' VALUE='http://5fm.com.mk:8011/listen.pls' /><PARAM NAME='CONSOLE' VALUE='_unique' /><PARAM NAME='CONTROLS' VALUE='ImageWindow,ControlPanel,StatusBar' /><PARAM NAME='CENTER' VALUE='true' /><embed src='' width='400'height='300' console='_unique' controls='ImageWindow,ControlPanel,StatusBar' center='true' name='RMP'></embed></OBJECT>"; document.title = "FAMILY JANUSEVI MEDIA"; RMP.SetSource(stream); RMP.DoNextEntry(); RMP.DoPlay(); return; } if (player=="qt"){ //QTP.controls.stop(); PlayerDiv.innerHTML = "<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab' width='400' height='300' id='QTP'><param name='src' value=''/><param name='autoplay' value='true'><param name='CONTROLLER' VALUE='true'><param name='SCALE' VALUE='tofit'><param name='pluginspage' value='http://www.apple.com/QuickTime/download/' /><embed src='' width='400' height='300' autoplay='true' controller='true' scale='tofit' pluginspage='http://www.apple.com/QuickTime/download/'></embed></object>"; document.title = "FAMILY JANUSEVI MEDIA"; QTP.src=stream; return; } if (player=="nw"){ document.title = "Opening New Window (Stream Website) for nw stream in new window"; window.open(stream); return; } } I also want help in adding flash to the mix. Any help appreciated