MP3,DSL,IE5,XML,ADO,SQL,ZIP,IIS5,M3U,ASP,DLL,
Quick Search for:  in language:    
MP3,DSL,IE5,XML,ADO,SQL,ZIP,IIS5,M3U,ASP,DLL,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 132,008 lines
 Jobs: 161 postings

 
Sponsored by:

 

You are in:

 
Login


 

 


Latest Code Ticker for ASP/ VbScript.
List Records
By Edito P. Aspra Jr. on 8/26


DSN Less Connection to SQL Server Database
By alpesh shah on 8/26


Click here to see a screenshot of this code!Database Driven Select Menu w/ default select
By Jayson Starkey on 8/26

(Screen Shot)

A Simple guestbook in ASP
By Matthew Meadows on 8/25


Simple GuestBook or Feedback Page Requiring No Database Implementation
By Ken Alabi on 8/25


if i remember, this is a M. Harris code sample
By ask on 8/24


MTS Registration Script
By Igor Krupitsky on 8/23


Click here to see a screenshot of this code!Creating Windows Users with ASP and ADSI
By jamespwalters on 8/23

(Screen Shot)

News Poster (Advanced)
By Martin Kilbryde on 8/22


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

MP3Tool.web - Stream Your MP3s

Print
Email
 
winzip icon
Submitted on: 3/30/2001 12:58:57 AM
By: TheFrogPrince  
Level: Beginner
User Rating: By 6 Users
Compatibility:ASP (Active Server Pages), HTML, VbScript (browser/client side)

Users have accessed this code 11703 times.
 

(About the author)
 
     O.K. This little web comes to you from a VB developer who just very recently began the cross-over into web development. What this web does, in essence, is allow you stream your MP3 library from anywhere on earth. =) This little web has caused me to seriously consider getting a cable modem... since my DSL is capped out at 15K/sec. =( Anyways... this web is an interface to my MP3 library. It is data driven and links to the same database that is used by my desktop version MP3Tool (my own creation... beta download here: http://members.tripod.com/thefrogprince/ ). The page interface makes use of frames, a treeview, a listview (poor man's grid), and a little ADO+XML. This is most definitely an IE5 or better web, as the XML features employed were not available in previous versions of ADO. Anyways... the search frame takes the input, formats the SQL, and loads the global search results recordset. On the NodeClick of the treeview, we populate our "grid". I'm using the listview because it seemed to be the only grid-like thing I could count on being there with the IE5 install. Double click on the treeview node or file or files in the listview to being streaming the files. The streaming technique employed is similar to the one posted by Ron Light. To understand what happens, you need to know the database format. A screen shot of the diagram can be see here: http://members.tripod.com/thefrogprince/Graphics/ssMP3ToolDB.jpg A copy in Access2000 format is also in the ZIP download. Basically... every song in my database is assigned a 32 character unique key. So this is what we load as the "Key" value for the items in the listview. When we double click on a file, this key is passed up to the active server page on the server which reloads the record (or records) and copies this MP3 files into a temporary directory called \Downloads off your web. On Windows 2K, this does require messing with some directory permissions to get to work... because the \Downloads directory needs to be publicly visible and the web user will need permissions to copy files into this folder. (Restrict everything else). Haven't tried it with Windows 98... but I imagine you wouldn't have the same issue. This web should also run Personal Web Server 4. The rsGet function demonstrates 3 different ways of returning ADO recordsets over an XML stream... the default being the common method that can be run on Personal Web Server or IIS5. Anyways... once the file or files have been copied into the public downloads zone... an M3U file is built pointing to files from a public perspective... and passed back as the result of the .ASP. So far... this has only been tested with MP... but both MP 6.4 and MP 7 work. Ideally... I wanted to return the MP3 file directly as a stream from the ASP... but could not figure out how to stream back binary data. If someone knows how to stream binary data back from an ASP page... please send me an e-mail and let me know... or better yet... post it as a reply to this article. =) Share with the entire class. =) Lastly, as you will see, this web demonstrates working with client-side disconnected ADO recordsets. It's read-only right now... I'm currently working the update part. =) All "binding" of data to controls is done on this web manually, but the project I am doing at work right now, is a bit more involved and I am currently working on a scheme using an ActiveX DLL written in VB to "bind" basic html elements like TextBox and Checkbox to a disconnected ADO recordset. I've come up with a scheme that appears to be working... but I'm not sure enough of it yet to post it. If you've had to tackle the same issue (data binding disconnected ado recordsets on a web page), I would really appreciate it if you could toss a quite note my way (thefrogprince@hotmail.com) explaining how you finally solved the issue. =)

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    '**************************************
    ' for :MP3Tool.web - Stream Your MP3s
    '**************************************
    http://www.planetsourcecode.com/xq/ASP/txtCodeId.6215/lngWId.4/qx/vb/scripts/ShowCode.htm
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
4/1/2001 6:32:11 PM:navarchy
This is pretty impressive!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/23/2002 10:17:28 PM:TheFrogPrince
Just in case anyone out there might be 
interested, I did eventually get the 
Web install for MP3Tool, the desktop 
app, fixed.
Anyone interested in 
taking it for a spin can browse to 
http://www.frogspad.org/MP3Tool/.
=)
Cheers all.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.