无法在 android 中投射 HLS 直播
Unable to cast HLS Live streaming in android
我想使用 Cast Companion Library Android 将 HLS Live 流投射到 Cast Device。我尝试 url 但无法在 Cast Device 上播放。使用 VOD HLS URL 时,视频可以在投射设备上播放。
我已经更改了流类型:MediaInfo.Builder(url).setStreamType(MediaInfo.STREAM_TYPE_LIVE)
或者我必须更改的任何其他内容?
这是直播URL我要投:http://live.streamingfast.net/livech1.m3u8
如何使用 Cast Companion Library 投射 HLS 直播流 Android?请帮忙...???
谢谢
当您 运行 遇到此类问题时,您需要在控制台中打开调试以查看可能是什么问题。如果这样做,您会注意到您的流缺少所需的 CORS headers:
XMLHttpRequest cannot load http://live.streamingfast.net/hls-live/livepkgr/_definst_/liveevent/live-ch1-3.m3u8. No 'Access-Control-Allow-Origin' header is present on the requested resource.
我想使用 Cast Companion Library Android 将 HLS Live 流投射到 Cast Device。我尝试 url 但无法在 Cast Device 上播放。使用 VOD HLS URL 时,视频可以在投射设备上播放。
我已经更改了流类型:MediaInfo.Builder(url).setStreamType(MediaInfo.STREAM_TYPE_LIVE)
或者我必须更改的任何其他内容?
这是直播URL我要投:http://live.streamingfast.net/livech1.m3u8
如何使用 Cast Companion Library 投射 HLS 直播流 Android?请帮忙...???
谢谢
当您 运行 遇到此类问题时,您需要在控制台中打开调试以查看可能是什么问题。如果这样做,您会注意到您的流缺少所需的 CORS headers:
XMLHttpRequest cannot load http://live.streamingfast.net/hls-live/livepkgr/_definst_/liveevent/live-ch1-3.m3u8. No 'Access-Control-Allow-Origin' header is present on the requested resource.