如何在JWPlayer上播放Brightcove RTMP URL? [英] How to play Brightcove RTMP URLs on JWPlayer?

查看:210
本文介绍了如何在JWPlayer上播放Brightcove RTMP URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现支持的动态RTMP流. JWPplayer Brightcove .

我当前正在使用 find_video_by_id 要获取具有可用RTMP流的JSON包的方法,您可以通过选择

I'm currently using the find_video_by_id method to get a JSON package with the available RTMP streams, you can get an example by selecting the renditions field in this sample. Basically any of the URLs will look like the one bellow but won't reproduce in the player (I am testing with JWPlayer and VLC).

rtmp://brightcove.fcod.llnwd.net/a500/e1/uds/rtmp/ondemand/&mp4:1937897674001/1937897674001_2790025682001_Sea-Crab.mp4&1415984400000&ed8715a655417a4c5d8db202bc3cb926

但是,相同格式的MP4 URL可以毫无问题地播放.

The MP4 URL for the same rendition however, can be played without issues.

http://brightcove.vo.llnwd.net/e1/uds/pd/1937897674001/1937897674001_2790025641001_Sea-Crab.mp4

我已在此处

I have read here and there that this might be due to access restrictions but it doesn't make sense that Brightcove would provide the RTMP URLs if they can't be used. Also the videos are owned, uploaded and consumed by us and we are using the API keys provided by BC to fetch them.

推荐答案

只有Brightcove的播放器可以使用RTMP流.

来自Brightcove的支持团队:

From Brightcove's support team:

不幸的是,无法在播放器外部使用RTMP流.您可以使用可用的http mp4.但是,由于RTMP流附带有安全措施,因此不能在Brightcove播放器之外使用它们.

Unfortunately it just isn't possible to use the RTMP stream outside the player. You can use the http mp4 that is available to use. But with the security measures attached to the RTMP stream they can't be used outside of the Brightcove player.

来自 Brightcove的网站:

Brightcove通过为视频云播放器中交付的每个视频文件采用生存时间(TTL)令牌,增强了RTMP交付.生存时间(有时缩写为TTL)是对数据单元(例如,数据包)可以丢弃之前的计算机和计算机网络技术所经历的时间周期或迭代次数或传输次数的限制.通过Flash Media Server,Brightcove实现了一种定制的方法,该方法为CDN上的Flash Media Server(FMS)服务器基础结构提供了额外的安全性.这是通过使用哈希算法和每个流的生存时间(TTL)来实现的.

Brightcove has enhanced RTMP delivery by employing a time-to-live (TTL) token for each video file delivered in a Video Cloud player. Time to live (sometimes abbreviated TTL) is a limit on the period of time or number of iterations or transmissions in computer and computer network technology that a unit of data (for example, a packet) can experience before it should be discarded. Through Flash Media Server, Brightcove has implemented a customized approach that provides additional security into the Flash Media Server (FMS) server infrastructure on the CDN. This was accomplished using a hashing algorithm and a Time To Live (TTL) for each stream.

这篇关于如何在JWPlayer上播放Brightcove RTMP URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆