Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Streaming 来自Kit Digital的Roku流媒体频道_Streaming_Live_Roku - Fatal编程技术网

Streaming 来自Kit Digital的Roku流媒体频道

Streaming 来自Kit Digital的Roku流媒体频道,streaming,live,roku,Streaming,Live,Roku,我一直在开发一个roku频道,主要是从网站上的教程中找到的,而且它很好地结合在一起。现在我的问题是,我正在尝试将频道连接到Kit数字直播流(一个.m3u8流),我不知道如何将频道连接到该流,而不是常规的视频流 有人知道我在哪里可以找到关于如何做这件事的说明或有帮助的文档吗?(我已经浏览了开发者指南和论坛,但找不到任何线索)查看中的演示代码:向您展示如何使用HLS和其他一些很酷的播放功能 this.player.SetMessagePort(this.port) this.player.SetLo

我一直在开发一个roku频道,主要是从网站上的教程中找到的,而且它很好地结合在一起。现在我的问题是,我正在尝试将频道连接到Kit数字直播流(一个.m3u8流),我不知道如何将频道连接到该流,而不是常规的视频流

有人知道我在哪里可以找到关于如何做这件事的说明或有帮助的文档吗?(我已经浏览了开发者指南和论坛,但找不到任何线索)

查看中的演示代码:向您展示如何使用HLS和其他一些很酷的播放功能

this.player.SetMessagePort(this.port)
this.player.SetLoop(true)
this.player.SetPositionNotificationPeriod(1)
this.player.SetDestinationRect(this.layout.left)
this.player.SetContentList([{
    Stream: { url: "http://ec2-184-72-239-149.compute-1.amazonaws.com:1935/demos/smil:bigbuckbunnyiphone.smil/playlist.m3u8" }
    StreamFormat: "hls"
    SwitchingStrategy: "full-adaptation"
}])
this.player.Play()
查看中的演示代码:演示如何使用HLS和其他一些很酷的播放功能

this.player.SetMessagePort(this.port)
this.player.SetLoop(true)
this.player.SetPositionNotificationPeriod(1)
this.player.SetDestinationRect(this.layout.left)
this.player.SetContentList([{
    Stream: { url: "http://ec2-184-72-239-149.compute-1.amazonaws.com:1935/demos/smil:bigbuckbunnyiphone.smil/playlist.m3u8" }
    StreamFormat: "hls"
    SwitchingStrategy: "full-adaptation"
}])
this.player.Play()

测试HLS流的最简单示例可能是sourceforge或下载的SDK中的simplevideoplayer示例。只需找到“Big Buck Bunny”部分,用你的.m3u8 url替换引号中的url,添加srt=“”,然后注释掉其他示例

' Big Buck Bunny test stream from Wowza
urls = ["http://myserver.com/mystream.m3u8"]
streamformat = "hls"
title = "Big Buck Bunny"
srt=""

测试HLS流的最简单示例可能是sourceforge或下载的SDK中的simplevideoplayer示例。只需找到“Big Buck Bunny”部分,用你的.m3u8 url替换引号中的url,添加srt=“”,然后注释掉其他示例

' Big Buck Bunny test stream from Wowza
urls = ["http://myserver.com/mystream.m3u8"]
streamformat = "hls"
title = "Big Buck Bunny"
srt=""

它确实起作用了。到目前为止,我真的很喜欢我的Roku,但现在我很喜欢它!它确实起作用了。到目前为止,我真的很喜欢我的Roku,但现在我很喜欢它!