Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    882
    Thanks
    53
    Thanked 6 Times in 5 Posts

    Accessing the CD drive from a disk in...the same drive!

    I have a web page (offline) that accesses the user's CD drive to play an audio file on a CD. It uses this routine:

    <OBJECT id=player1 height=64 width=160 classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6>OBJECT>
    </font><script type="text/javascript">
    document.getElementById("player1").uiMode="full";
    document.getElementById("player1").settings.autoStart=false;
    document.getElementById("player1").settings.volume=50;
    player1.URL=src="file:///"+YouWrote+":/Track01.cda";
    </script>

    That variable "YouWrote" (the CD Drive letter) is set by a cookie on the page - defaults to "D", but the user can change this, refresh the page, and access the audio in the correctly referenced drive.

    Works well - if the page is resident in memory and refreshed if necessary.

    My problem is if I put this page on a CD - that is, I want the page to load up from the CD drive - and there's only one drive - it doesn't work.

    I can't seem to get the user to be able to choose the drive letter by setting the cookie (or even go with the default), then refresh the page, switch the CD with the Audio CD, and get Windows Media Player to find and play the Track01.cda file.

    It chokes because the player says it can't play files with this extension. But it is obviously still thinking about the html file it loaded.

    How do I disconnect the knowledge of the loadup CD in Windows Media Player's mind (assuming anything Windows has a mind)? Is there some obvious logical procedure I should follow and/or for the js script?

    Thanks,

    Terry
    Last edited by tpeck; 10-14-2005 at 11:21 AM.

  • #2
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post
    What about ActiveX control ?

    After downloading ActiveX from http://www.particle.net/intralaunch,
    the code can be applied.




    Code:
    <object classid="clsid:072CB141-B793-11D1-89B6-0020182C1446" width="142" height="29"
        CODEBASE="IntraLaunch.CAB#version=2,1,0,1" align="right">
          <param name="_ExtentX" value="3334">
          <param name="_ExtentY" value="1032">
    	<param name="ImageSrc" value="CDROM:song1.gif">
          <param name="Run" value="CDROM:Track1.cda">
    The above code is the Object code embedded in a webpage that enables users to directly run any files from CDROM.

    More :

    running an application with hyperlink

  • #3
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    882
    Thanks
    53
    Thanked 6 Times in 5 Posts
    OK - I'll work on it and report.

    Many thanks for your help. How can I repay?

    Truly I have just this moment finished watching what surely must be close to the greatest musical achievement ever (in my humble opinion) - "The Last Waltz" on Fox. God what talent!

    If this is payback - great. Apologies if it isn't.


  •  

    Posting Permissions

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