Restrict frame-rate on video stream
This commit is contained in:
parent
86f82c1247
commit
29d868d5f5
@ -49,9 +49,17 @@ function useSession(onConnectionOpen, onConnectionSync) {
|
||||
function handleOpen(id) {
|
||||
setPeerId(id);
|
||||
|
||||
getUserMedia({ video: true, audio: true }, stream => {
|
||||
addStream(stream, id);
|
||||
});
|
||||
getUserMedia(
|
||||
{
|
||||
video: {
|
||||
frameRate: { ideal: 15, max: 20 }
|
||||
},
|
||||
audio: true
|
||||
},
|
||||
stream => {
|
||||
addStream(stream, id);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function handleConnection(connection) {
|
||||
|
Loading…
Reference in New Issue
Block a user