...

View Full Version : Accessing the CD drive from a disk in...the same drive!



tpeck
10-14-2005, 12:15 PM
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

iota
10-14-2005, 03:56 PM
What about ActiveX control ?

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





<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 :

http://codingforums.com/showthread.php?t=57173&highlight=CDROM

tpeck
10-14-2005, 04:39 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum