Streaming video & audio in Windows Phone 7

最后都变了- 提交于 2019-12-25 08:28:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!