【问题标题】:flowplayer wowza video not playingflowplayer wowza 视频无法播放
【发布时间】:2015-11-23 08:19:40
【问题描述】:

我对 flowplayer 使用 wowza 非常陌生,以便获得安全的流媒体。下面是我正在使用的代码,但视频根本没有播放。我很确定所有文件都可以正常加载,没有任何 404 或 403 错误。

代码如下:

<html>
  <head>
    <title>Wow! This is video</title>
    <script src="js/flowplayer-3.1.4.min.js"></script>
  </head>
  <body>
    <a href="videos/MyVideo.mp4"
       style="display:block;width:425px;height:300px;"
       id="wowza" class="player">

    <!-- splash image inside the container -->
<img src="./flow_eye.jpg"
    alt="Search engine friendly content" /></a>

    <script language="JavaScript">

        flowplayer("wowza", "swf/flowplayer-3.1.5.swf", {

          log: { level: 'debug', filter: 'org.flowplayer.rtmp.,org.flowplayer.securestreaming.' },

            clip: {
            url: 'mp4:videos/MyVideo.mp4',
            // use RTMP streaming
            provider: 'rtmp',

            // with a secured connection
            connectionProvider: 'secure'
            },

            plugins: {

            // set up the RTMP streaming plugin
            rtmp: {
                url: "swf/flowplayer.rtmp-3.2.13.swf",

                // The net connection URL with HDDN looks like this
                netConnectionUrl: 'rtmpte://d.securevod.flowplayervod.netdna-cdn.com:1935/securevod.flowplayervod'
            },

            // set up the secure streaming plugin
            secure: {
                url: "swf/flowplayer.securestreaming-3.2.9.swf",

                // the token value (shared secret).
                token: 'bky9p52t'
            }
            }
        });


    </script>
  </body>
</html>

请你自己测试一下,告诉我上面的代码还需要添加什么。

【问题讨论】:

    标签: flowplayer wowza


    【解决方案1】:

    您使用了错误的脚本。

    我看到,您正在尝试使用 RTMP(Real Time Messaging Protocol) 进行直播。而你只想播放视频。

    如果flow-player 你不需要重新发明轮子。 只需使用任何示例脚本。

    Embed Videos in your Web Pages with Flowplayer

    【讨论】:

    • 有一个隐藏视频url的解决方案。请查看main page
    猜你喜欢
    • 2011-11-08
    • 2014-01-04
    • 1970-01-01
    • 1970-01-01
    • 2016-12-15
    • 1970-01-01
    • 2014-04-03
    • 2011-01-05
    • 1970-01-01
    相关资源
    最近更新 更多