472,352 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 software developers and data experts.

How do they do that?

Hello all

Im tring to make a music store like itunes (on a much lower scale mind
you :) ). Im trying to make a little player that streams 30 seconds of
a mp3 track so the user can preview it.

I've managed to do it in flash to some extent, but then i saw MSN Music
(http://music.msn.com/). They have like a play button next to each
track and when you click it, it seems to buffer and then play and i was
woundering how they do this. Having a flash player on the screen
doesn't look as cool as what MSN Music has :).

Im using Visual Studio in C# to develop my web project and was
woundering if there are any other methods of streaming an mp3 over the
internet similar to what MSN Music have accomplished.
Regards

Palvinder Singh

Nov 23 '05 #1
2 1012
The browser knows nothing about C#, so change you thinking to that of just
JavaScript and maybe ActiveX or something else that runs locally on the
client.

Since you know that all this has to happen on the browser, you can reverse
engineer their page. Looks like they call some JavaScript when you click
the button (onclick="if(SF('h')) return
h(this,'cm=PLFEATURED&ce=LaunchPlaylist&hl =CMA+Award+Winners+-+2005');").
Now, what you can do is to download their JavaScript files and see what the
function "h" does.

"Palvinder Singh" <pa************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hello all

Im tring to make a music store like itunes (on a much lower scale mind
you :) ). Im trying to make a little player that streams 30 seconds of
a mp3 track so the user can preview it.

I've managed to do it in flash to some extent, but then i saw MSN Music
(http://music.msn.com/). They have like a play button next to each
track and when you click it, it seems to buffer and then play and i was
woundering how they do this. Having a flash player on the screen
doesn't look as cool as what MSN Music has :).

Im using Visual Studio in C# to develop my web project and was
woundering if there are any other methods of streaming an mp3 over the
internet similar to what MSN Music have accomplished.
Regards

Palvinder Singh

Nov 23 '05 #2
Why don't you try embedding Windows Media Player in an <object .... > tag.
It has many configurable options including the size of the "playlet" that
you see on the page. Documentation can be found on MSDN online.
--Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Palvinder Singh" wrote:
Hello all

Im tring to make a music store like itunes (on a much lower scale mind
you :) ). Im trying to make a little player that streams 30 seconds of
a mp3 track so the user can preview it.

I've managed to do it in flash to some extent, but then i saw MSN Music
(http://music.msn.com/). They have like a play button next to each
track and when you click it, it seems to buffer and then play and i was
woundering how they do this. Having a flash player on the screen
doesn't look as cool as what MSN Music has :).

Im using Visual Studio in C# to develop my web project and was
woundering if there are any other methods of streaming an mp3 over the
internet similar to what MSN Music have accomplished.
Regards

Palvinder Singh

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: rcs | last post by:
Looks like you've come to a real Z00 here! Yeap! We have goats, we have horses, sheep, snakes, even dogs! e have lots of @n1m@ls here and we also...
0
by: jirap | last post by:
Looks like you've come to a real Z00 here! Yeap! We have goats, we have horses, sheep, snakes, even dogs! e have lots of @n1m@ls here and we also...
3
by: Richard Pain | last post by:
Having thought they'd go over to mysql, they've decided to stick with sql server. The hosting company don't allow direct connection to the database...
2
by: Trent | last post by:
I discovered "A List Apart" (http://www.alistapart.com/) about a month ago and really enjoy their articles. They haven't posted any new articles...
3
by: Xiangliang Meng | last post by:
Hi, all. In 1998, I graduated from Computer Science Dept. in a university in China. Since then, I've been using C Language for almost 6 years....
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
4
by: Martin M. | last post by:
Hi, I have the following question: How can an imported module see/find the path to itself? Background: From my main script I import a module...
9
by: Michael Redbourn | last post by:
Hi, I just switched from FP to DW and am very very happy ! So whilst I'm mastering Dreamweaver (gonna be a while yet :-) - I thought that...
1
by: =?Utf-8?B?RGF2aWRS?= | last post by:
Hi When running a Systemtec/Norton scan various jpeg/mpeg files are listed as being scanned (they do not appear as dangerous). However I...
1
by: jidixuelang | last post by:
aj.get = function(targetUrl, resultHandle) { aj.targetUrl = targetUrl; aj.XMLHttpRequest.onreadystatechange = aj.processHandle; aj.resultHandle =...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.