【问题标题】:Cannot stream video from cloudfront with jwplayer无法使用 jwplayer 从云端流式传输视频
【发布时间】:2012-11-17 07:37:17
【问题描述】:

我无法使用 jwplayer 从云端传输文件。这是我的代码:

jwplayer("container").setup({
    file: "mp4:mediaTest.mp4",
    height: "480",
    provider: "rtmp",
    streamer: "rtmp://s1cp0j2rq4xbq.cloudfront.net:1935/cfx/st",
    width: "853"
});

您可以在http://stritfun.com/找到代码

但是当我改变时

file: "mp4:mediaTest.mp4",

与:

file: "http://s3.amazonaws.com/idastreaming/mediaTest.mp4",

流式传输成功。

文件有什么问题:mp4:mediaTest.mp4

【问题讨论】:

    标签: amazon jwplayer amazon-cloudfront


    【解决方案1】:

    您使用的“流媒体/文件”设置由旧版本的 JW Player (JW5) 使用,但不是由最新版本 (JW6) 使用。我们仍在与 Cloudfront 来回更新他们的文档...

    无论如何,仅使用单个“文件”设置 RTMP 流将适用于 JW6:

    文件:“rtmp://s1cp0j2rq4xbq.cloudfront.net/cfx/st/mp4:mediaTest.mp4”

    【讨论】:

      猜你喜欢
      • 2016-05-16
      • 2012-04-14
      • 2013-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-21
      • 2016-02-26
      • 1970-01-01
      相关资源
      最近更新 更多