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

Your browser does not support the playback of this video #105

Open
ctaity opened this issue Jun 26, 2019 · 2 comments
Open

Your browser does not support the playback of this video #105

ctaity opened this issue Jun 26, 2019 · 2 comments

Comments

@ctaity
Copy link

ctaity commented Jun 26, 2019

hi, i getting error on osx crome with flash installed:

Your browser does not support the playback of this video . Please try using a different browser.

And i checked "" with VLC and open okay.

This is my code:

`

<style> body, html { overflow: hidden; margin: 0; padding: 0 }
</style>
<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 defer type="text/javascript"
    src="https://cdn-vod.tvpublica.com.ar/player-assets-c/dist/libs-dev-min.js?v=1.0.3"></script>-->

<script>
    var data = <%- JSON.stringify(data) %>;
    window.onload = function () {
        var player = new Clappr.Player({
            source: "",
            parentId: "#player",
            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>
`
@ctaity
Copy link
Author

ctaity commented Jun 26, 2019

Building the plugin, works.

@egorsmkv
Copy link

egorsmkv commented Feb 6, 2020

Did you build SWF file?

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