Android SDK : Playing video using mms protocol

前端 未结 1 1678
后悔当初
后悔当初 2020-12-17 03:13

Using the Android SDK, is it possible to play a video stream using the MMS protocol

I am streaming video from a PC using windows media.

I can use Windows Med

相关标签:
1条回答
  • 2020-12-17 03:54

    Either you are using old technology, or there are more efficient alternatives.

    MMS as a protocol has been deprecated for seven years. Android supports HTTP and RTSP streaming, and since Microsoft headed in that direction as well, it is unlikely that Android will ever support MMS-the-protocol.

    Windows Media Player uses MMS URLs (mms://) to represent a whole family of possible protocols, including RTSP, MMS, and HTTP. Android appears to treat mms:// as the equivalent of http:// and may not attempt to connect via RTSP. The best answer is for you to figure out the correct URL for the desired protocol (e.g., http:// or rtsp://). You could, if you wish, create some Android utility library that probes a server identified via an mms:// URL, determines what the real protocol is, and then returns a properly-formatted URL for the desired protocol.

    0 讨论(0)
提交回复
热议问题