473,508 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1056
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
1255
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 have lots of g1r|s who just love to have some s....
0
1237
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 have lots of g1r|s who just love to have some s....
3
1103
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 with enterprise manager so I don't think I can...
2
1861
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 in awhile, though. How often do they update? What...
3
2268
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. Although I'm using C++ in my current job, I'm also...
182
7356
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
4
1678
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 which needs a file (AppleScript) located in the...
9
2918
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 I'd try and find out how to add borders for browers...
1
1246
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 understand these files where manually deleted sometime...
1
1256
by: jidixuelang | last post by:
aj.get = function(targetUrl, resultHandle) { aj.targetUrl = targetUrl; aj.XMLHttpRequest.onreadystatechange = aj.processHandle; aj.resultHandle = resultHandle; if(window.XMLHttpRequest) {...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.