clappr-rtmp-plugin icon indicating copy to clipboard operation
clappr-rtmp-plugin copied to clipboard

Can not play Wowza RTMP Stream

Open MinChanSike opened this issue 8 years ago • 0 comments

What is wrong in my code? I already install flash player.

`

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/clappr/clappr@latest/dist/clappr.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/video-dev/clappr-rtmp-plugin@latest/dist/rtmp.min.js"></script>
<script>       
    var player = new Clappr.Player({
        source: 'rtmp://127.0.0.1:1935/live/testStream',
        parentId: "#player",
        plugins: {
            'playback': [RTMP]
        },
        rtmpConfig: {
            swfPath: 'addin/RTMP.swf',
            scaling: 'stretch',
            playbackType: 'live',
            bufferTime: 1,
            startLevel: 0,
            switchRules: {
                "SufficientBandwidthRule": {
                    "bandwidthSafetyMultiple": 1.15,
                    "minDroppedFps": 2
                },
                "InsufficientBufferRule": {
                    "minBufferLength": 2
                },
                "DroppedFramesRule": {
                    "downSwitchByOne": 10,
                    "downSwitchByTwo": 20,
                    "downSwitchToZero": 24
                },
                "InsufficientBandwidthRule": {
                    "bitrateMultiplier": 1.15
                }
            }
        },
    });
</script>

MinChanSike avatar Oct 02 '17 10:10 MinChanSike