PDA

View Full Version : playing movies from a link



riptide
04-18-2007, 08:40 PM
I've had this code for a wile I made it but I'm not sure if it's right.

I have some avi files. the URL or the file is the URL or the link so I thought to use
setAttribute('src',divs[mist].id.getAttribute('href')) to take the URL from the link and run it throuth this function that writes out the object and embed tags.

now I also want to know if I can send the codebase and CLASSID to a function that writes out the code and tries it to see if the user has realplayer quicktime or WMP



function playMTV()
if{ (! document.getElementById)return;
divs=document.getElementByTagName(a);
var playcode=setAttribute('src',divs[mist].id.getAttribute('href'));
var seplaycod=setAttribute('value',divs[mist].id.getAttribute('href'));
for (mist=0;mist<divs.length;mist++)
{
document.write('<div id="Mplayer"><object id=" '+' W '+ divs[mist].id + '"standby="this will take some time"<img src="misterioloder" ');
document.write('CLASSID="'+reader()+ ' " width="640" height="504" ');
document.write ('codebase=" '+quick()+ '>
<param name="autoStart" value="false" />
<param name="EnableJavaScript" value="true"/>
<param name="PlayCount" value="1"/>
<param name=showControls" value="1"/>
<param name="EnableFullScreenControls" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowStatusBar" value="1">
<param name="HREF" value=" '+seplaycod+ ' "/>');
document.write( '<embed id=" '+divs[mist].id+'"');
document.write('pluginspage="' +emplug()+ '" src=" '+playcode+
'" width="640" height="504" autostart="false" enablejavascript="true"></embed></object></div>');
MisterioProgram.toplogo.Vrip.onload=playMTV(R);}}

riptide
04-20-2007, 03:29 PM
um this is kinda like embeding movies with WMP.

I read the section here on that but what about for realplayer or quicktime?

riptide
04-21-2007, 05:26 PM
um....I 'm going to change the AVIs to another format because I know they will be to large.

but I still ask is this how you set up a self writing object embed tag. I saw this in a book and have added a lot of stuff to it.