video-dev / clappr-rtmp-plugin

📺 RTMP support for Clappr player.
http://clappr.io
Apache License 2.0
105 stars 46 forks source link

What i do wrong? #92

Open JohnMorra opened 6 years ago

JohnMorra commented 6 years ago

Hello!

Im trying to set up rtmp player on my website but unfortunately i fed up... Im using script below but my page is blank and player is not showing. Any ideas ?

<html>
<head>

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/video-dev/clappr-rtmp-

plugin@latest/dist/rtmp.min.js">
</script>

</head>
<body>
<div id="player"></div>
<script>

var player = new Clappr.Player({
    source: "test.mp4",
    parentId: "#player-wrapper",
    plugins: {'playback': [RTMP]},
    rtmpConfig: {
        swfPath: 'dist/assets/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>
</body>
</html>
vdalex25 commented 6 years ago

try to add before Githubissues.

  • Githubissues is a development platform for aggregating issues.