问题
I have an ASX stream that I would like to play on my Windows Phone 7. It appears that WP7 cannot handle client-side playlists, like an ASX file. So what do I do now?
When I break into the ASX file, I see it's actually a mms://
stream with no file extension, so I can't even point to the raw file.
How do I proceed from here? Is there a better option than the MediaElement
control that will handle ASX files?
More Info:
My stream in question is audio/video, with WMA2/WVC1 encoding, respectively, running at 640x360. So according to the supported filetypes, the MediaElement
control should be able to handle it no problem.
回答1:
You don't actually have to point to the raw file. Even with the stream URL you can receive the data bits (given that the stream can be reached via a HTTP request). I recently wrote about receiving continuous streams here.
Once you have the bits, pass them through MediaStreamSource to get the encoded stream and pass it to MediaElement.
来源:https://stackoverflow.com/questions/4151349/streaming-video-audio-in-windows-phone-7