Comments (4)
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.
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.
@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.
@galedric #35 will fix it.
from clappr-rtmp-plugin.
Related Issues (20)
- Your browser does not support the playback of this video HOT 2
- Super expression must either be null or a function, not undefined HOT 1
- is there anyway to stream m3u8? HOT 2
- If you try to build RTMP.swf on windows you will get stuck
- error echo when webpack flash.html
- binary must be declared in `.gitattributes`
- Browser refresh cannot continue the stream
- I am going to upgrade something in new repo, and fix some bugs when using webpack HOT 3
- Help with RTMP stream status. HOT 1
- question How can i find metadata in a video/audio using OSMF player actionscript
- Play button/function does not work after pause/stopping live video (vod is fine).
- Can not play Wowza RTMP Stream
- Unable to play a 360 video with this plugin HOT 2
- dist not packaged on npm? HOT 1
- clappr alias causes issues with case sensitive OS
- What i do wrong? HOT 4
- Unable to play RTMP HOT 1
- Your browser does not support the playback of this video. HOT 10
- scaling is stretch it's not working HOT 1
- Uncaught SyntaxError: Unexpected token export" on export default require('./src/main.js'). HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clappr-rtmp-plugin.