Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stream MP3

Status
Not open for further replies.

JohnStep

Programmer
Apr 19, 2000
190
US
Anyone know of a good active X or control to stream a mp3 file over the internet? I have been looking for awhile. There seems to be a few that claim to but they just dont work BASS.

Thanks in Advance,
J Stephens
 
Thats kind of what I want to do. Stream a mp3 from a VB app through the internet so a person can listen to it using Media Player.
 
If you goto the project menu ->Components.. -> and select Windows Media Player then you can add it directly to your vb app.
 
Right, But you cannot Stream it though the Internet via the Multi-Media control? I beleive it will only allow you to play media on your computer. I would like to stream it throuh a network in real time.
 
Im Trying to Stream Live. Not from a Set Url.
 
Erm...are you wanting to stream it from a dynamically created web page Response? If so, have you considered using the ADODB Stream object?

Something like (and this is by no means complete code, and nor is it mine but I sadly cannot remember who/where to credit it):

Response.ContentType = sContentType

Response.AddHeader "Content-Disposition", "attachment;filename=" & NameFile

Const adTypeBinary = 1
Dim strFilePath
strFilePath = filename

Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath

Response.BinaryWrite objStream.Read

objStream.Close
Set objStream = Nothing


 
Not sure that would work StongM but nice idea. What I am trying to do is have a server set up (non-http) and have anyone using media player connect on to it and listen to a live broadcast of MP3. Streaming MP3's over a network is where i am having questions. Many out there claim to do it, ie BASS, but in actuality they dont work well at all.
 
Downloads available here:
Select "Windows Media Services" as the download, and "All versions" as the version. You should then be able to find the Windows Media Services 4.1 stuff

(I suspect, however, that all this might be a lsight overkill for what you want to achieve...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top