Jump to content
  • 0

Video quality adjustment in enterprize edition


Nagendra Kumar1648581702
 Share

Question

Hello Team AntMedia,
  I am using the enterprise edition of the ant-media-server. Sometimes I see the poor quality on the video after publishing. Most of the time this issue is happening from the publishing side itself (publishing in poor quality). It seems that poor bandwidth was detected and but when I retry (publishing then bandwidths get better and video quality fixed). 

Is it possible to do this adjustment the quality adjustment at the publishing side it-self?

Thanks
Nagendra
Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

You can increase the bandwidth of webrtc in the var webrtcadaptor= new WebRTCAdaptor({

here there is a bandwith attribute which defaults at 900 but you can increase it to 2000 as an example.

But if your network is not stable during the stream, webrtc automatically adjusts the bandwidth according to that. In this case, there is nothing much to do.

Best Regards.
Link to comment
Share on other sites

  • 0
Agree. The problem I faced is that quality doesn't adjust back to normal or better when the network is good. but when I reload the page then it is good. Q. Where is the logic to adjust the bandwidth based on the network?  It seems that this adjustment is only happening when we start publishing and stays till stream is not closed. I am not able to find any network monitoring in webrtc_adapter.js

This is where a change in bandwidth configured.  Ar we doing this change during the play like after 10 mins network  is better so adjust it.
if (thiz.remotePeerConnection[streamId].iceConnectionState == "connected") {

thiz.changeBandwidth(thiz.bandwidth, streamId).then(() => {
console.log("Bandwidth is changed to " + thiz.bandwidth);
})
.catch(e => console.error(e));


Thanks
Nagendra

Link to comment
Share on other sites

  • 0

This code segment is to adjust the stream bandwidth to the after stream has started. Stream starts with a lower bandiwidth and increases after starting. This code segment for that purpose.

 I am not able to find any network monitoring in webrtc_adapter.js
As i said, this is hardcoded webrtc itself, not our implementation.
I'll check if bandwidth can be increased during streaming.
Regards.

Link to comment
Share on other sites

 Share

×
×
  • Create New...