• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 783
  • Last Modified:

Windows Media Player

Hm....

Little "Windows Media Player" problem. Have used it in a VB program.

I can set its filename to an MP3 file on my disk, but how can I make it play an MP3 file from the web? Setting the FileName to something like "http://www.blah.com/myMP3File/something.mp3" doesn't seem to work.

20 points for "It's impossible", 100 points for someone who can tell me how to do it.
0
caraf_g
Asked:
caraf_g
  • 6
  • 4
  • 3
  • +2
1 Solution
 
DennisBorgCommented:
Any points for suggesting the FSO?  ;-)

I'm just tagging along to see what comments pop up.

-Dennis Borg
0
 
modderCommented:
No prob, Dennis, tag along... :-)
0
 
Dave_GreeneCommented:
Hey Pino~  

They are touting this as a streaming solution.  May want to check it out...

-Dave

-------------------

Windows Media Format 7.1 SDK

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/wmsdk_format.asp

Improved Playback
Progressive download
Enables applications to play a media file while simultaneously performing a progressive download of the file. This is critical when the Windows Media Format content is hosted on an HTTP server.
Networked fast-forward and rewind
Enables applications to fast-forward and fast-rewind on-demand or local media content.
User-specified maximum connection bandwidth
Enables applications to specify the maximum delivery bit rate for media content delivered over the Internet. This facility is important when the playback bit rate (downstream) is different than the capture and encode bit rate (upstream).
Seek-to marker
Enables applications that support the Format SDK 7 to "seek to" specific locations on Windows Media Format files with markers, similar to how DVD works today.
Improved Content Creation and Authoring
Supports inverse telecine
Enables applications to deliver improved playback quality for film-sourced content. Video content that originates from 24 frames per second (fps) film is "padded" with extra frames for delivery at 30 fps. Applications that support the Format SDK 7 are able to intelligently extract the original 24 fps and encode this out at 24 fps, eliminating artifacts. This results in improved quality at lower bandwidth.
Supports de-interlacing
Enables applications to deliver improved playback quality on progressive scan-line displays (computer monitors) for National Television Standards Committee (NTSC) and phase alternation system-sourced content, which is interlaced. De-interlacing eliminates flicker on interlaced content, resulting in better quality playback.
Manages streaming and archiving of content separately
Enables applications to read Windows Media Format content while simultaneously archiving the content.
Previews compressed video
Enables applications to view or monitor the compressed video as it is being archived (for on-demand video) or streamed live to the Web.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
modderCommented:
Hmmm..... but have you any idea how that translates into actual code?
0
 
Dave_GreeneCommented:
I'm only going for the 20 points!  I'm not an over-achiever  :)
0
 
modderCommented:
LOL
0
 
caraf_gAuthor Commented:
PS - if the Windows Media Player control isn't suited to the task, I don't mind using something else.
As long as it allows me to play an MP3, through a VB program, from a URL, e.g. http://www.carobit.com/test.mp3 
0
 
Dave_GreeneCommented:
Oh sure, now change the whole game  :)
0
 
hesCommented:
caraf,
I added the windows media player to a form and added the following in the following to te form load and it played your link just fine

MediaPlayer1.Open "http://www.carobit.com/test.mp3 "
0
 
caraf_gAuthor Commented:
8-O

Weird. That don't woik on my machine..... !?
0
 
hesCommented:
How are you connected to the web, I am on a T1 from work, it did take a second to load before it started playing.
0
 
Dave_GreeneCommented:
It appeared to work for me...  although I have no sound at work...  Is that possible... :-)  
0
 
caraf_gAuthor Commented:
I don't think it's the web connection. It simply doesn't like me putting in a URL.

I tried

MediaPlayer1.Open

And also

MediaPlayer1.FileName = "....whatever...."
MediaPlayer1.Play

In the second case, if I type in .FileName = some url and I then check .FileName, it returns ""

!?
0
 
caraf_gAuthor Commented:
I'm investigating the RealPlayer control at the moment. It's very promising.
0
 
hesCommented:
What version of Media player are you using I have 6.01.05
0
 
caraf_gAuthor Commented:
7

Yup. The RealPlayer control works.

I think I'll load the RealPlayer control. If user has realplayer installed, it'll work. If that fails, I'll revert back to windows media player. It seems that that works on quite a few PCs as you guys have shown. And finally, if that fails too, they'll have to accept that they can only play local files.
0
 
caraf_gAuthor Commented:
Hi. It's only 20 points so instead of deleting the question I'll just award it to the first comment. Hope nobody minds.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 6
  • 4
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now