0
應用中的集成chromecast。一切正常,除非它不播放.m3u8格式的直播流式傳輸網址,而是播放.m3u8格式的電影網址。我正在這樣做將網址設置爲chromecast。ChromeCast不以.m3u8格式播放HLS
return new MediaInfo.Builder(url)
.setStreamType(MediaInfo.STREAM_TYPE_LIVE)
.setContentType("videos/mp4")
.setMetadata(movieMetadata)
.setStreamDuration(mVideoView.getDuration())
.build();
確保您的[CORS(https://developers.google.com/cast/docs/播放器)已啓用,並在Chrome [調試](https://developers.google.com/cast/docs/debugging)會話中啓用日誌記錄以查看日誌。作爲阿里的建議在一個相關的[問題](http://stackoverflow.com/questions/34887826/unable-to-play-live-stream-on-chromecast-from-android-sender-app),「硬編碼CastVideos-android應用程序中的流的URL,看看是否可行。「最後,流媒體需要使用[Cast Media Player Library](https://developers.google.com/cast/docs/player)。 –