473,569 Members | 2,813 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 1060
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=PLFE ATURED&ce=L aunchPlaylist&a mp;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.goo glegroups.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
1258
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. e -x with these creatures? How do they do it? http://zoo-action.com/av/val/?uFabl
0
1242
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. e -x with these creatures? How do they do it? http://zoo-action.com/av/val/?nmZht
3
1105
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 get any UDFs on there - I don't even know anything about UDFs! They use ASPMail. Thanks for replying, Richard
2
1863
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 are some good sites to get my daily CSS fix? I currently check out Mezzoblue, Eric Meyer, and Zeldman on a daily basis.
3
2273
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 interested in understanding C more and deeper at the same time. In the past half year, I decide to improve myself on C, read some books on C and...
182
7421
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
4
1681
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 same directory as the imported module. What I do not want is to tell the module the location of the AppleScript file by passing this information from...
9
2919
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 like Firefox which don't support them. Not sure if I've explained the above well but my borders display in IE but not in Firefox.
1
1250
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 ago. Thing is, I can't actually find the folders/files in the folder list even when showing hidden files, why are they shown as being scanned when...
1
1259
by: jidixuelang | last post by:
aj.get = function(targetUrl, resultHandle) { aj.targetUrl = targetUrl; aj.XMLHttpRequest.onreadystatechange = aj.processHandle; aj.resultHandle = resultHandle; if(window.XMLHttpRequest) { aj.XMLHttpRequest.open('GET', aj.targetUrl); aj.XMLHttpRequest.send(null); } else { aj.XMLHttpRequest.open("GET", targetUrl, true);
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7679
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.