0

我有这段代码可以从 AWS 流式传输

        $f('.rtmp', 'http://dmjae0nvian3n.cloudfront.net/flowplayer-3.2.16.swf', {
            clip: {
                provider: 'rtmp'
            },

            plugins: {
                rtmp: {
                    url: '@Url.Content("~/Content/swf/AkamaiFlowPlugin.swf")',

                    netConnectionUrl: 'rtmp://sh6xkdarh1a51.cloudfront.net/cfx/st'
                }
            }
        });

HTML

<div class="rtmp" href="mp4:Delicious_Vinyl"/>

这工作正常。现在我正在尝试从机架空间执行相同的文件。我所做的只是更改 netConnectionUrl。两者的文件名相同。

机架空间网址

8abb0c8bf43b4e6ae1d1-1bec6be0e9b91559fcee217d2d0b0f03.r99.stream.cf1.rackcdn.com

编辑

我收到 403 禁止错误

4

1 回答 1

0

这是javascript代码。我仍在 AWS 上托管 swk 文件当我尝试将其放在本地时遇到域错误

var jp = $f
        (
            "player_container",

            {
                src: "http://dmjae0nvian3n.cloudfront.net/flowplayer-3.2.16.swf",
                wmode: 'transparent'
            },
            {
                debug: true,
                log: 'warn',
                clip:
                {
                    live: false,
                    provider: 'akamai',
                    autoPlay: false,
                    stopLiveOnPause: false
                },
                playlist:
                [
                    'http://8abb0c8bf43b4e6ae1d1-1bec6be0e9b91559fcee217d2d0b0f03.r99.stream.cf1.rackcdn.com/Delicious_Vinyl.mp4'
                ],
                plugins:
                {
                    //controls: controlObject,
                    akamai:
                    {
                        url: 'http://players.edgesuite.net/flash/plugins/flow/v3.1.1/AkamaiFlowPlugin.swf'
                    }
                }
            }
        );
于 2013-09-21T01:12:44.163 回答