如何播放非文件非rtsp源的媒体播放器?

发布于 2024-08-21 01:48:17 字数 126 浏览 5 评论 0原文

我们有一个 mpeg4 源,我们想在媒体播放器中播放。我们的源代码不在文件中或 rtsp 服务器上。它是手工编码的,可以动态生成 mpeg4 源代码。想象一下数据来自 unix 管道流而不是 rtsp 或文件。如何在媒体播放器中使用该流?

We've a mpeg4 source that we would like to play in the media player. Our source is not in a file or on an rtsp server. It is hand coded to generate mpeg4 source on the fly. Imagine the data is coming from an unix pipe stream instead of rtsp or a file. How can I use that stream in media player?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

萌吟 2024-08-28 01:48:17

抱歉,Android 目前不支持除 HTTP 和 RTSP 之外的流媒体视频。

Android does not presently support streaming video other than through HTTP and RTSP, sorry.

内心荒芜 2024-08-28 01:48:17

我认为您可以将 MediaPlayer.setDataSource( FileDescriptor fd ) 与管道一起使用。
或者结合使用 LocalSocketLocalServerSocket

I think you can use MediaPlayer.setDataSource( FileDescriptor fd ) with the pipe.
Or with the combination of both LocalSocket and LocalServerSocket.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文