Closed dilldilldill closed 1 year ago
+1
Hi,
RTCDegradationPreference is the standard way to set degradation preferences. It's defined in RTCRtpParameters.h.
thank you very much! i'll give it a try!
RTCDegradationPreference is the standard way to set degradation preferences. It's defined in RTCRtpParameters.h.
RTCRtpParameters
only seems to be exposed via RTCPeerConnection
-> senders RTCRtpSender
-> parameters RTCRtpParameters
.
But how do I get access to the RTCPeerConnection
? The peer connection is managed by and hidden behind the OWTConferenceClient
as far as I understand.
So how would you suggest to set RTCRtpParameters
?
Thanks for your help!
@jianjunz unfortunately, RTCPeerConnection is not reachable, just like @dilldilldill has mentioned in his or her last post...
I am facing the same issue. To add encoding parameters to the video sender, we need access to the RTCRtpSender object, which is currently unavailable. Modifying OWTConferenceClient.mm, its header, and related files might be a solution, but it requires a deep understanding of both OWT and WebRTC projects. Considering it has been about two years, a respectful suggestion to the contributors would be to update the OWT project to address compatibility and functionality concerns.
...still no solution... :cry:
Hi everyone,
we are still not able to edit the degradation preference.
@dilldilldill and @rouzbeh-abadi were you able to solve it?
@jianjunz do you have an idea?
To prevent resolution degradation rebuild OWT after you changed the file src/third_party/webrtc/video/adaption/video_stream_encoder_resource_manager.cc
and make IsResolutionScalingEnabled
return false
and IsFramerateScalingEnabled
return true
.
bool IsResolutionScalingEnabled(DegradationPreference degradation_preference) {
return false;
}
bool IsFramerateScalingEnabled(DegradationPreference degradation_preference) {
return true;
}
Hello there,
On the android implementation of the OWT client I found a option
enableCpuOveruseDetection
via a slackoverflow answer, which, when turned off, stops the stream from degrading its resolution. The iOS implementation does not seem to offer anything similar, at least I can't find it at the moment. A different answer mentions degradation preferences which I also fail to find in the OWT iOS implementation.Is there any possiblity to stop OWT degrading and keeping the resolution?