Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding an Mpeg from another URL

Status
Not open for further replies.

isaac48723

Technical User
Mar 17, 2002
6
US
I found a short mpeg that i would like to put in a movie the URL for this clip is
I was unable to download the source movie so I can only use the redirect link. Is there any way I can include the movie into a flash movie without making the windows media player window popup like I have here Any help would be appreciated
 
you would have to make the site in html frames..you can still have it all flash, but you would have to build around the frames..leaving a frame somewhere in the design where you wanted the movie to show..in the flash somewhere use the get url action calling the re-direct link to the frame named in the get url action..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Ok, will the mpeg still popup in media player or will it stay contained inside the frame with the redirect url in it?
 
should stay connected..just like when i click on that link it opens in my browser..but let's see.. i will test the link..give me a few..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
nah i guess my guess was wrong..can't do it without opening it up in a player..even tried embeding the movie in a table..didn't work..called it to a frame..opened in media player..

sorry..guess you have to have the actual movie to do what you need..

unless someone else knows another way..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
this is how aol embeds movie's in pop ups..if it helps..

Code:
<html>
<head><title></title>
<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/universal_style_css/[/URL]
feature_style_css.css&quot;>

<style>
#RealPlayer {
	position:absolute;
	width:320;
	height:240;
	left: 223px;
	top: 36px;
}
#RealPlayerObject {
	width:320;
	height:240;
}
#dropDown {
	position:absolute;
	left: 15px;
	top: 286px;
	visibility: hidden;
}
</style>

<script language=&quot;JavaScript&quot; src=&quot;[URL unfurl="true"]http://league.nba.com/aolplus/nba_playoffs_highlights.[/URL]
js?&quot;></script>
<script language=&quot;JavaScript&quot; src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_javascript/fxns.js&quot;></script>
<script language=&quot;JavaScript&quot; src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_javascript/volume.js&quot;></script>
<script language=&quot;JavaScript1.1&quot; src=&quot;[URL unfurl="true"]http://ads.web.aol.com/file/[/URL]
adsWrapper.js&quot;></script>
</head>
<body bgcolor=&quot;#FFFFFF&quot; background=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001[/URL]
/specific_channel_art/sports/background_art.gif&quot; marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 onload=&quot;toggleButton('RPplayOn');setData();&quot;>
<div id=&quot;channel&quot;><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
specific_channel_art/sports/channel.gif&quot; alt=&quot;&quot; border=&quot;0&quot;></div>

<div id=&quot;main_help&quot;><A HREF=&quot;aol://1722:sports&quot;><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
specific_channel_art/sports/main.gif&quot; border=&quot;0&quot; alt=&quot;sports main&quot; border=&quot;0&quot;></A>  <A HREF=&quot;aol://1722:highspeedaolhelplink&quot;><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
specific_channel_art/sports/help.gif&quot; border=&quot;0&quot; alt=&quot;help&quot; border=&quot;0&quot;></A>  </div>

<div id=&quot;branding&quot;><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
specific_channel_art/sports/movies_anim.gif&quot; width=&quot;217&quot; height=&quot;64&quot; alt=&quot;&quot; border=&quot;0&quot;></div>

<div id=&quot;promoLinkOneBgV&quot;>
	<div id=&quot;head1inePos&quot;><font class=&quot;headlines&quot;><script>document.write(promoHeadline)</script></font><br><br><font class=&quot;subheads&quot;><script>document.write(promoByline)</script></font></div>
</div>

<div id=&quot;highspeed&quot;><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/highspeed.gif&quot; alt=&quot;&quot; border=&quot;0&quot;>
</div>

<div id=&quot;RealPlayer&quot;>

<script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;>

function getRandom(){
return Math.round(Math.random() * 1000);
}

randNum  = getRandom();

function ns_startPlay(VID){

	var theSource = eval('rpurl');

	document.write('<EMBED name=RealPlayer id=RealPlayerObject ');
	document.write('src='+theSource+' ');
	document.write('nologo=&quot;true&quot; autostart=&quot;true&quot; controls=&quot;ImageWindow&quot; console=&quot;aol_con_'+randNum*randNum+'&quot;></EMBED>');

}

// conditional to write correct player...

	if(navigator.appName.indexOf(&quot;Netscape&quot;) != -1 && document.getElementById)
	{

	ns_startPlay();

	} else {

	document.write('<OBJECT name=&quot;RealPlayer&quot; id=&quot;RealPlayerObject&quot; CLASSID=&quot;clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA&quot;>');
	document.write('<param name=&quot;SRC&quot; value=&quot;'+rpurl+'&quot;>');
	document.write('<PARAM NAME=&quot;CONTROLS&quot; VALUE=&quot;Imagewindow&quot;><PARAM NAME=&quot;AUTOSTART&quot; VALUE=&quot;true&quot;><PARAM NAME=&quot;NOLABELS&quot; VALUE=&quot;TRUE&quot;><PARAM NAME=&quot;RESET&quot; VALUE=&quot;FALSE&quot;>');
	document.write('<PARAM NAME=&quot;CONSOLE&quot; VALUE=&quot;aol_con_'+randNum*randNum+'&quot;>');
	document.write('</OBJECT>');

	}

</script>

</div>

<div id=&quot;volumeThumbDiv&quot; style=&quot;z-index: 31; position: absolute; left: 475px; top: 291px; width: 10px; height: 20px; cursor:hand;&quot;> 
 <img src=[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/tab.gif>
</div>

<div class=&quot;sliderBG&quot;>
 <div class=&quot;sliderBar&quot;>
  <img src=[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/stripe.gif>
 </div>
</div>

<div id=&quot;RPpauseOff&quot;>
	<a href=&quot;javascript:toggleButton('RPpauseOn'); hide('highspeed');&quot; onclick=&quot;document.RealPlayer.DoPause(); this.blur();&quot;><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/rp_pause_off.gif&quot; width=&quot;28&quot; height=&quot;28&quot; alt=&quot;&quot; border=&quot;0&quot; name=&quot;pause_off&quot;></a>
</div>
<div id=&quot;RPplayOff&quot;>
	<a href=&quot;javascript:toggleButton('RPplayOn'); show('highspeed');&quot; onclick=&quot;document.RealPlayer.DoPlay(); this.blur();&quot;><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/rp_play_off.gif&quot; width=&quot;30&quot; height=&quot;30&quot; alt=&quot;&quot; border=&quot;0&quot; name=&quot;play_off&quot;></a>
</div>
<div id=&quot;RPstopOff&quot;>
	<a href=&quot;javascript:toggleButton('RPstopOn'); hide('highspeed');&quot; onclick=&quot;document.RealPlayer.DoStop(); this.blur();&quot;><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/rp_stop_off.gif&quot; width=&quot;28&quot; height=&quot;28&quot; alt=&quot;&quot; border=&quot;0&quot; name=&quot;stop_off&quot;></a>
</div>
<div id=&quot;RPpauseOn&quot;>
	<img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/rp_pause_on.gif&quot; width=&quot;28&quot; height=&quot;28&quot; alt=&quot;&quot; border=&quot;0&quot; name=&quot;pause_on&quot; >
</div>
<div id=&quot;RPplayOn&quot;>
	<img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/rp_play_on.gif&quot; width=&quot;30&quot; height=&quot;30&quot; alt=&quot;&quot; border=&quot;0&quot; name=&quot;play_on&quot;>
</div>
<div id=&quot;RPstopOn&quot;>
	<img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
universal_player_art/rp_stop_on.gif&quot; width=&quot;28&quot; height=&quot;28&quot; alt=&quot;&quot; border=&quot;0&quot; name=&quot;stop_on&quot;>
</div>

<div id=&quot;dropDown&quot;>
	<form name=&quot;form&quot;>
    		<select name=&quot;video&quot; size=&quot;1&quot; onChange=&quot;javascript:PlayDropdown(this.form);&quot;>
    		<option selected><script>document.write(ddTitle)</script></option>
		<SCRIPT language=javascript>
		for(i=0;i<array_ddURLs.length;i++) {
		document.write('<option value=&quot;' + array_ddURLs[i] + '&quot;>' + array_ddOptions[i] + '</option>');    	
		}
		</SCRIPT>
    		</select>
	</form>
</div>

<div id=&quot;AOLlinks&quot;>
<script>document.write('<a class=&quot;wings&quot; href=&quot;'+wingdingUrl_1+'&quot; '+wingdingTarget_1+'><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
specific_channel_art/computing/wingding_sel.gif&quot; width=&quot;6&quot; height=&quot;6&quot; hspace=&quot;6&quot; vspace=&quot;1&quot; alt=&quot;&quot; border=&quot;0&quot;>'+wingdingText_1+'</a><br><a class=&quot;wings&quot; href=&quot;'+wingdingUrl_2+'&quot; '+wingdingTarget_2+'><img src=&quot;[URL unfurl="true"]http://dsl02.web.aol.com/aolplus/templates_2001/[/URL]
specific_channel_art/computing/wingding_sel.gif&quot; width=&quot;6&quot; height=&quot;6&quot; hspace=&quot;6&quot; vspace=&quot;1&quot; alt=&quot;&quot; border=&quot;0&quot;>'+wingdingText_2+'</a>')</script>
</div>
<div id=&quot;adSpace&quot;>
	<script language=&quot;JavaScript1.1&quot;><!--
		htmlAdWH('7009327', '234', '60');
		adsTar='_newadwindow';
	//--></script>
	<noscript>
		<a href=&quot;[URL unfurl="true"]http://ads.web.aol.com/link/7009327/aol&quot;>[/URL]
		<img src=&quot;[URL unfurl="true"]http://ads.web.aol.com/image/7009327/aol&quot;[/URL] alt=&quot;Click here to visit our advertiser.&quot; width=234 height=60 border=0></a>
	</noscript>
</div>
<script language=&quot;JavaScript1.1&quot; src=&quot;[URL unfurl="true"]http://ads.web.aol.com/file/adsEnd.js&quot;></script>[/URL]
</body>

<script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;>

var volumeSlider;

function initVolumeControl(volumeControlRect, volumeThumbSize, volumeThumbDiv, aDocument, aWindow) 
{
	var temp = new CUVolumeSlider();
	temp.init(volumeControlRect.left, volumeControlRect.top, volumeControlRect.width, volumeControlRect.height, volumeThumbSize.width, volumeThumbSize.height, volumeThumbDiv, aDocument);	
	temp.initPlayer(getElementById('RealPlayerObject',aDocument));
	CUEventList.init(aWindow);	
	CUEventList.addEventListener('mousedown',temp, 'isInside', 'onVMouseDown');
	CUEventList.addEventListener('mouseup'  ,temp, 'isInside', 'onVMouseUp');
	CUEventList.addEventListener('mousemove',temp, 'isInside', 'onVMouseMove');
	return temp;
}

function polledSetVolume()
{
	var player = getElementById('RealPlayerObject',document);
	if (volumeSlider && player) volumeSlider.setPercent(player.GetVolume());
	if (volumeSlider.getPercent() == 0) setTimeout(polledSetVolume,50);
}

function setData()
{	       
	volumeSlider = initVolumeControl({left:475,top:291,width:65,height:30}, {width:10,height:20}, 'volumeThumbDiv', document, window);		
	if (volumeSlider.getPercent() == 0) setTimeout(polledSetVolume,0);
}					
</script>

</html>[code] [img]http://www.orlandomediasolutions.com/logo.gif[/img]

carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top