Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What i do wrong? #92

Open
JohnMorra opened this issue Nov 8, 2017 · 4 comments
Open

What i do wrong? #92

JohnMorra opened this issue Nov 8, 2017 · 4 comments

Comments

@JohnMorra
Copy link

JohnMorra commented Nov 8, 2017

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
Copy link

try to add <script src="https://cdn.jsdelivr.net/clappr/latest/clappr.min.js"></script>
before <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/video-dev/clappr-rtmp- plugin@latest/dist/rtmp.min.js">

@JohnMorra
Copy link
Author

unfortunately not working : (

@vdalex25
Copy link

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

@JohnMorra
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants