Are you using kurento-utils-js? In that wrapper for RTCPeerConnection, we have default constraints. Just create your own, and pass that to the webrtcPeer object during construction
mediaConstraints = {
audio : true,
video : {
mandatory : {
maxWidth : 320,
maxFrameRate : 15,
minFrameRate : 15
}
}
};
The issue with firefox has also been fixed in KMS 5 & 6, but you’ll have to use the nightly builds PPA.
--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Anyone find a solution for this problem? I don't find anything about bitrate :(We suffered a high change to low resolution in 5 secs.
Hello Ivan,
Hello,We cleaned sdp_pattern now:v=0o=- 0 0 IN IP4 127.0.0.1s=Kurento Media Serverc=IN IP4 127.0.0.1
t=0 0m=audio 0 RTP/AVP 98 99 0a=rtpmap:98 OPUS/48000/2a=rtpmap:99 AMR/8000/1a=rtpmap:0 PCMU/8000
m=video 0 RTP/SAVPF 120a=rtpmap:120 VP8/90000Our kurento.conf.json is default, and here is our javascript code (in AngularJs):'use strict';
var constraints = {audio : true,video : {mandatory : {
maxWidth : 1980,maxHeight: 1080 ,minWidth : 1980,minHeight: 1080 ,maxFrameRate : 60,minFrameRate : 60}},};angular.module('clinicaonlineApp').controller('VideoconferenceController', function ($scope, $translate) {$scope.ws_uri = "ws://x.x.x.x:8888/kurento";$scope.file_uri = "rtsp://aaaa:bb...@x.x.x.x/media.amp";$scope.videoOuput = document.getElementById('videoOutput');$scope.onError = function (error) {console.error(error);}$scope.loadAxis = function(){console.log('holaaa');console.info($scope.videoOuput);};$scope.loadAxis();$scope.webRtcPeer = kurentoUtils.WebRtcPeer.startRecvOnly($scope.videoOuput,function(sdpOffer){kurentoClient($scope.ws_uri, function(error, kurentoClient) {if(error) return $scope.onError(error);kurentoClient.create("MediaPipeline", function(error, pipeline) {if(error) return $scope.onError(error);pipeline.create('PlayerEndpoint', {uri: $scope.file_uri, useEncodedMedia: true}, function(error, player) {if(error) return $scope.onError(error);player.on('EndOfStream', function(event) {pipeline.release();videoInput.src = '';if ($scope.webRtcPeer) {$scope.webRtcPeer.dispose();}});pipeline.create("WebRtcEndpoint", function(error, webRtc){if(error) return $scope.onError(error);webRtc.processOffer(sdpOffer, function(error, sdpAnswer){if(error) return $scope.onError(error);$scope.webRtcPeer.processSdpAnswer(sdpAnswer);console.log("Processed SDP: " + sdpOffer);});player.connect(webRtc, function(error){if(error) return $scope.onError(error);console.log("webRtc connects to player");});});player.play(function(error){if(error) return $scope.onError(error);console.log("Playing");});});});});}, $scope.onError, constraints);});
v=0 o=mozilla...THIS_IS_SDPARTA-38.0.5 4294967295 0 IN IP4 0.0.0.0 s=- t=0 0 a=sendrecv a=fingerprint:sha-256 B0:55:15:E4:F5:73:F2:97:1F:FC:F2:45:54:9D:93:DC:8E:37:69:02:6D:D4:66:93:9F:7A:86:D6:69:ED:CC:87 a=group:BUNDLE sdparta_0 sdparta_1 a=ice-options:trickle a=msid-semantic:WMS * m=audio 57827 RTP/SAVPF 109 9 0 8 c=IN IP4 10.8.72.38 a=candidate:0 1 UDP 2128609535 10.8.72.38 57827 typ host a=candidate:0 2 UDP 2128609534 10.8.72.38 57828 typ host a=recvonly a=end-of-candidates a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=ice-pwd:13f01b2a7542bd0a581000d82f244131 a=ice-ufrag:24869769 a=mid:sdparta_0 a=rtcp-mux a=rtpmap:109 opus/48000/2 a=rtpmap:9 G722/8000/1 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=setup:actpass m=video 57685 RTP/SAVPF 120 126 97 c=IN IP4 10.8.72.38 a=candidate:0 1 UDP 2128609535 10.8.72.38 57685 typ host a=candidate:0 2 UDP 2128609534 10.8.72.38 57686 typ host a=recvonly a=end-of-candidates a=fmtp:120 max-fs=12288;max-fr=60 a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1 a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1 a=ice-pwd:13f01b2a7542bd0a581000d82f244131 a=ice-ufrag:24869769 a=mid:sdparta_1 a=rtcp-fb:120 nack a=rtcp-fb:120 nack pli a=rtcp-fb:120 ccm fir a=rtcp-fb:126 nack a=rtcp-fb:126 nack pli a=rtcp-fb:126 ccm fir a=rtcp-fb:97 nack a=rtcp-fb:97 nack pli a=rtcp-fb:97 ccm fir a=rtcp-mux a=rtpmap:120 VP8/90000 a=rtpmap:126 H264/90000 a=rtpmap:97 H264/90000
But we can't solve this issue, can anyone help me please? In 5 secs, video scaled down resolution dramaticaly... :(We are using KMS 5.