Code Monkey home page Code Monkey logo

Comments (4)

gfronza avatar gfronza commented on May 16, 2024

Hi @kurdd. Last week we pushed a new version of the plugin. Now you can set the bufferTime on the options:

var player = new Clappr.Player({
    source: "rtmp://source_here",
    parentId: "#player-wrapper",
    plugins: {'playback': [RTMP]},
    rtmpConfig: {
        swfPath: 'dist/assets/RTMP.swf',
        scaling:'stretch',
        playbackType: 'live',
        bufferTime: 1,
        startLevel: 0
    },
});

from clappr-rtmp-plugin.

BastienClement avatar BastienClement commented on May 16, 2024

The default value is chosen if bufferTime evaluates to false (because of the || operator).
As a result, it is not possible to set bufferTime to 0, disabling buffering entirely.

https://github.com/clappr/clappr-rtmp-plugin/blob/master/src/main.js#L34

I believe === undefined would be a better check here.

This is required in the case the application focuses on no-delay streaming. Even a buffering of 0.1 secs will accumulate latency in the long run if re-buffering is required. A buffering of 0 will always be as live as possible.

from clappr-rtmp-plugin.

gfronza avatar gfronza commented on May 16, 2024

@galedric I used the || operator on purpose there, because my experience with bufferTime 0 is that it brings a lot of side effects. But I agree that this should be the programmers' responsibility, so will change this behaviour. Thanks for pointing that out.

from clappr-rtmp-plugin.

gfronza avatar gfronza commented on May 16, 2024

@galedric #35 will fix it.

from clappr-rtmp-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.