Skip to content

Where i can apply bitrate? #20

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

Open
savsofts opened this issue Apr 22, 2020 · 1 comment
Open

Where i can apply bitrate? #20

savsofts opened this issue Apr 22, 2020 · 1 comment
Labels
question Further information is requested

Comments

@savsofts
Copy link

How i can control maximum streaming bandwidth?
I tried to apply sdp.replace method in index.js file ( node-webrtc-examples/lib/client/index.js ) but no effect..

@savsofts
Copy link
Author

I also tried to add following code in webrtcconnection.js file (node-webrtc-examples/lib/server/connections/ )

` const offer = await peerConnection.createOffer();
offer.sdp=setBitrate(offer.sdp);

function setBitrate(sdp){
sdp = sdp .replace(/a=mid:audio\r\n/g, 'a=mid:audio\r\nb=AS:64\r\n');
sdp = sdp .replace(/a=mid:video\r\n/g, 'a=mid:video\r\nb=AS:256\r\n');
return sdp;
}
`

@markandrus markandrus added the question Further information is requested label Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants