我正在尝试从flowplayer(下面的当前代码)转换
flowplayer("播放器"http://churchwebsite.com/flowplayer-3.1.5.swf",{
clip: {
url: 'livestream',
live: 'true',
provider: 'influxis'
},
// streaming plugins are configured under the plugins node
plugins: {
influxis: {
url: 'http://churchwebsite.com/flowplayer.rtmp-3.1.3.swf',
netConnectionUrl:
'rtmp://stream.s22.cpanelservices.com/somethinglive'
这就是我要切换到的内容
jwplayer("myElement").setup({
file: "rtmp://stream.s22.cpanelservices.com/somethinglive",
autostart: true,
controls: true,
height: 600,
width: 800,
这是我掌握的信息,不知道该把什么放在哪里。
rtmp://stream.s22.cpanelservices.com/somethinglive
rtmp://churchwebsite.com/live
我正在使用Adobe闪存媒体编码器进行流式传输,通过它可以显示
FMS网址:rtmp://stream.s22.cpanelservices.com/somethinglive
流:直播
RTMP流的一个简单示例:
在<head>
部分:
<script type="text/javascript" src="jwplayer.js"</script>
在<body>
部分:
<div id="#myElement">Loading the player...</div>
<script>
jwplayer("myElement").setup({
file: "rtmp://example.com/application/mp4:myVideo.mp4",
image: "/assets/myVideo.jpg",
height: 360,
width: 640
});
</script>
这假设三个JW Player脚本文件(jwplayer.js.jwplayer.html5.js和jwplayer.flash.swf)与index.html位于同一目录中。否则,src属性需要指向它们的实际存放位置。无论如何,这三个文件都需要放在一起。
流的file属性具体取决于您提供的内容。请参阅JW Player配置指南:http://support.jwplayer.com/customer/portal/articles/1430358-using-rtmp-streaming