Android SDK中:使用MMS协议播放视频协议、视频、Android、SDK

2023-09-04 07:32:45 作者:最黑的夜才能看见最亮的星

使用Android SDK,是有可能使用MMS协议来播放视频流

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

我是从一台PC使用Windows Media流媒体视频。

I am streaming video from a PC using windows media.

我可以使用Windows Media Player,只需输入以下网址的Windows Media Player

I can use Windows Media Player to play the stream by just inputting the following URL in Windows Media Player

彩信://192.168.223.194:8081

mms://192.168.223.194:8081

是否有可能使用Android SDK起到同样的流?

Is it possible to play the same stream using the Android SDK ?

感谢

推荐答案

无论您使用的是旧的技术,或者有更有效的替代品。

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

MMS作为协议已经去precated七年。 Android支持HTTP和RTSP流,而且由于微软正朝着这个方向很好,这是不可能的,Android将永远支持彩信的协议。

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使用MMS网址(彩信:// )重新present可能的协议,包括RTSP,MMS和HTTP全家。 Android的似乎是将彩信:// 作为相当于的http:// ,不得试图通过RTSP连接。最好的答案是为你找出正确的URL的协议(例如,的http:// 的rtsp:// )。你可以,如果你愿意的话,创建一个探讨通过彩信标识的服务器的一些Android的实用程序库:// 网​​址,确定真正的协议是什么,然后返回一个适当的格式化的网址为所需的协议。

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.