Results 1 to 3 of 3

Thread: playing movies from a link

  1. #1
    Join Date
    Nov 2006
    Posts
    236
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default playing movies from a link

    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


    Code:
    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);}}

  2. #2
    Join Date
    Nov 2006
    Posts
    236
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    um this is kinda like embeding movies with WMP.

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

  3. #3
    Join Date
    Nov 2006
    Posts
    236
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •