【问题标题】:Getting streaming to work properly in JWPlayer让流在 JWPlayer 中正常工作
【发布时间】:2014-11-01 01:54:16
【问题描述】:

我正在尝试使用以下 URL 使用 JWPlayer 实现流式传输:rtmp://stream.technolutions.com/vod/mp4:0447d67935584a81986a0311443a7d9c.mp4。 我将此 RTMP URL 放在以下位置:

<script type="text/javascript">
    jwplayer("modal-videoplayer-container-1").setup({
        file: "rtmp://stream.technolutions.com/vod/mp4:0447d67935584a81986a0311443a7d9c.mp4",
            image: "http://placehold.it/739x554/0000cc/&text=700x450",
        width: 700,
        height: 450
    });
</script>

我了解 Application 和 Stream 之间存在差异,但在 VLC 中将此 URL 测试为远程视频效果很好。有什么想法吗?

【问题讨论】:

  • 你能提供一个链接吗?
  • @EthanJWPlayer 是的,当然。 yale-preview.adoptive.co/content_videos.html 最后 2 个视频是尝试让 2 个不同的流工作。第一个是由我编写的 jquery 插件完成的,第二个是内联 JS,从 JW Player Docs 复制/粘贴。
  • 您的 jw player flash swf 文件似乎没有正确上传,直接访问 url 会导致白页 - yale-preview.adoptive.co/scripts/vendor/jwplayer/…
  • @EthanJWPlayer,事实证明你是对的。您的一流支持人员库珀(Cooper)帮助我解决了这个问题。解决这个问题的方法是使用云托管版本的 JWPlayer,这样它就不会再被损坏了。
  • 太棒了,很高兴你得到它。是的,库珀很棒:)

标签: streaming video-streaming jwplayer


【解决方案1】:

如果您遇到类似问题,则您的 SWF 文件可能已损坏(由于在 Grunt 或 Gulp 等自动化工作流程中被移动/复制)。 JWPlayer 的某些方面可能有效,但当您使用仅基于 Flash 的功能(例如 JWPlayer 流式传输)时,它只会在您希望播放视频的位置显示一个空白黑框。

尝试包含 JWPlayer 的云托管 JS 文件而不是自己托管它,看看它是否解决了它。特别感谢 JWPlayer 的 Ethan 和 Cooper 帮助我解决这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-25
    • 2012-09-30
    • 2020-10-06
    相关资源
    最近更新 更多