Computer Science Canada streamMP3 from the internet |
Author: | ecliptical [ Thu Dec 22, 2005 2:19 am ] | ||
Post subject: | streamMP3 from the internet | ||
I might spend a little more time with this and make a little media player. Ya I know nothing to special as far as the progress bar is concerned...but i haven't figured that part out yet...and there is also some distortion in the mp3 like with the images..so I suspect Tony was right in that i should do this using binary i'll give it a shoot later..
|
Author: | iker [ Thu Dec 22, 2005 6:35 pm ] |
Post subject: | |
I think I know what the problem is. Its like changing the song or picture to a text file, then back to .mp3 or .jpg. Try this, get a music file, copy it, change it to a .txt, and then back to the original file, and you will hear some distortion. |
Author: | Taur [ Sun Dec 25, 2005 4:09 pm ] |
Post subject: | |
so you can use this to DL anything right? but it will be messed up to some degree thanks for this, 10 bits |
Author: | md [ Sun Dec 25, 2005 11:32 pm ] |
Post subject: | |
The problem is that you're downloading from a webserver and you're not at all taking into acount things like the http protocol; there is more to getting a file then trying to connect using the url like that (much more). Binary vs. text here shouldn't make that much of a difference since your just reading one byte(char) at a time. Note that you're not actually "streaming" here, as you're downloading the entire file before playing it. |