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

What i do wrong?

Open JohnMorra opened this issue 8 years ago • 4 comments

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>

JohnMorra avatar Nov 08 '17 22:11 JohnMorra

try to add before

vdalex25 avatar Nov 16 '17 17:11 vdalex25

unfortunately not working : (

JohnMorra avatar Nov 16 '17 18:11 JohnMorra

your parentId: "#player-wrapper" is wrong, set parentId: "#player"

vdalex25 avatar Nov 17 '17 06:11 vdalex25

damnnn i didnt see this whole time... thank you very much its finally working !!!!!! 🍺🍺🍺🍺

JohnMorra avatar Nov 17 '17 18:11 JohnMorra