gpt4 book ai didi

android - Android 中的直播扩展

转载 作者:行者123 更新时间:2023-11-29 17:58:04 24 4
gpt4 key购买 nike

有没有没有m3u8的直播扩展?因为android MediaPlayer 不支持这种格式。无论如何你必须使用 Vitamio。那么有什么方法可以在 android 中使用 MediaPlayer 流式传输 m3u8。任何代码都无法在此站点中运行。

最佳答案

检查这个答案:Video Streaming over wifi?

然后如果你想在 android 手机上看到实时流然后在你的应用程序中包含 vlc 插件并通过实时流协议(protocol) (RTSP) 连接

Intent i = new Intent("org.videolan.vlc.VLCApplication.gui.video.VideoPlayerActivity");
i.setAction(Intent.ACTION_VIEW);
i.setData(Uri.parse("rtsp://10.0.0.179:8086/"));
startActivity(i);

如果你在安卓手机上安装了 vlc,那么你可以使用 intent 进行流式传输并传递 ip 地址和端口号。如图

关于android - Android 中的直播扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17878676/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com