我无法在rtmp中播放视频

时间:2011-07-22 07:41:57

标签: streaming rtmp

播放视频时收到错误

<html>

<body>

    <div id='container'>The player will be placed here</div>

        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"> </script>

        <script type="text/javascript">
              var flashvars = {
                file:'user2.flv',
                streamer:'rtmp://localhost/myapp/',
                type : 'video'
              };

              swfobject.embedSWF('player.swf','container','480','270','9.0.115','false', flashvars,

                   {allowfullscreen:'true',allowscriptaccess:'always'},
                   {id:'jwplayer',name:'jwplayer'}
              );
            </script>
</body>

enter image description here

有谁帮我解决这个问题?

1 个答案:

答案 0 :(得分:0)

在我看来,你有一个简单的“它不在那里”的答案。要问的问题:

  • 您确定rtmp://localhost/myapp/user2.flv是有效路径吗?
  • 您是否在本地计算机上运行RTMP服务器?
  • 它有一款名为myapp的应用吗?
  • user2.flv真的存在吗?