kurento V6.10.0
继承关系
WebRtcEndpoint→BaseRtpEndpoint→SdpEndpoint→SessionEndpoint→Endpoint→MediaElement→MediaObject
MediaPipeline→MediaObject
WebRtcEndpoint
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "gatherCandidates",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 16
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getStunServerAddress",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 26
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getStunServerPort",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 27
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getTurnUrl",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 28
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getICECandidatePairs",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 23
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getIceConnectionState",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 24
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "addIceCandidate",
"operationParams": {
"candidate": {
"candidate": "candidate:3575467457 1 udp 2122260223 10.15.83.23 54406 typ host generation 0 ufrag Alha network-id 1",
"sdpMid": "0",
"sdpMLineIndex": 0,
"__module__": "kurento",
"__type__": "IceCandidate"
}
},
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 6
}
createDataChannel(label, ordered, maxPacketLifeTime, maxRetransmits, protocol);
closeDataChannel(channelId);
setStunServerAddress(stunServerAddress);
setStunServerPort(stunServerPort);
setTurnUrl(turnUrl);
BaseRtpEndpoint
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMinVideoRecvBandwidth",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 32
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMinVideoSendBandwidth",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 33
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMaxVideoSendBandwidth",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 30
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMediaState",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 31
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getConnectionState",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 29
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getRembParams",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 35
}
setMinVideoRecvBandwidth(minVideoRecvBandwidth);
setMinVideoSendBandwidth(minVideoSendBandwidth);
setMaxVideoSendBandwidth(maxVideoSendBandwidth);
setRembParams(rembParams);
SdpEndpoint
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "generateOffer",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 36
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getLocalSessionDescriptor",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 37
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getRemoteSessionDescriptor",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 40
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMaxVideoRecvBandwidth",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 39
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMaxAudioRecvBandwidth",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 38
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "8067b108-c036-4cdf-82dd-1714fb946712_kurento.MediaPipeline/f5934450-d064-4e17-90fb-611bfa1de7fa_kurento.WebRtcEndpoint",
"operation": "processOffer",
"operationParams": {
"offer": "v=0\r\no=- 3795908939 3795908939 IN IP4 192.168.74.80\r\ns=Kurento Media Server\r\nc=IN IP4 192.168.74.80\r\nt=0 0\r\nm=audio 11596 RTP\/AVPF 96 0 97\r\na=setup:actpass\r\na=extmap:3 http:\/\/www.webrtc.org\/experiments\/rtp-hdrext\/abs-send-time\r\na=rtpmap:96 opus\/48000\/2\r\na=rtpmap:97 AMR\/8000\r\na=sendrecv\r\na=mid:audio0\r\na=ssrc:3532662463 cname:user2731653506@host-400c3260\r\nm=video 59874 RTP\/AVPF 102 103\r\na=setup:actpass\r\na=extmap:3 http:\/\/www.webrtc.org\/experiments\/rtp-hdrext\/abs-send-time\r\na=rtpmap:102 VP8\/90000\r\na=rtpmap:103 H264\/90000\r\na=sendrecv\r\na=mid:video0\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=rtcp-fb:102 goog-remb\r\na=rtcp-fb:102 ccm fir\r\na=rtcp-fb:103 nack\r\na=rtcp-fb:103 nack pli\r\na=rtcp-fb:103 ccm fir\r\na=ssrc:1784530171 cname:user2731653506@host-400c3260\r\n"
},
"sessionId": "c5ac767a-65ad-41d7-ae6b-c886603fe376"
},
"id": 15
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "4c8579c9-5790-4d2a-b8f7-413cf9a3d4da_kurento.MediaPipeline\/c596037a-7c2b-4641-b0a8-78f50ebd17cb_kurento.RtpEndpoint",
"operation": "processAnswer",
"operationParams": {
"answer": "v=0\r\no=- 3795908966 3795908966 IN IP4 192.168.74.80\r\ns=Kurento Media Server\r\nc=IN IP4 192.168.74.80\r\nt=0 0\r\nm=audio 38680 RTP\/AVPF 96 0 97\r\na=extmap:3 http:\/\/www.webrtc.org\/experiments\/rtp-hdrext\/abs-send-time\r\na=sendrecv\r\na=mid:audio0\r\na=rtpmap:96 opus\/48000\/2\r\na=rtpmap:97 AMR\/8000\r\na=setup:active\r\na=ssrc:1489651569 cname:user1709681950@host-dacdb32f\r\nm=video 23472 RTP\/AVPF 102 103\r\na=extmap:3 http:\/\/www.webrtc.org\/experiments\/rtp-hdrext\/abs-send-time\r\na=sendrecv\r\na=mid:video0\r\na=rtpmap:102 VP8\/90000\r\na=rtpmap:103 H264\/90000\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=rtcp-fb:102 goog-remb\r\na=rtcp-fb:102 ccm fir\r\na=rtcp-fb:103 nack\r\na=rtcp-fb:103 nack pli\r\na=rtcp-fb:103 ccm fir\r\na=setup:active\r\na=ssrc:306740185 cname:user1709681950@host-dacdb32f\r\n"
},
"sessionId": "c69b93ee-2cd6-499f-a76d-73b0b974713a"
},
"id": 15
}
setMaxVideoRecvBandwidth(maxVideoRecvBandwidth);
setMaxAudioRecvBandwidth(maxAudioRecvBandwidth);
SessionEndpoint
Endpoint
MediaElement
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getSourceConnections",
"operationParams": {},
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 45
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getStats",
"operationParams": {
"mediaType": "VIDEO"
},
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 46
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMinOuputBitrate",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 43
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMinOutputBitrate",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 44
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMaxOuputBitrate",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 41
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMaxOutputBitrate",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 42
}
getSinkConnections(mediaType, description);
connect(sink, mediaType, sourceMediaDescription, sinkMediaDescription);
disconnect(sink, mediaType, sourceMediaDescription, sinkMediaDescription);
setAudioFormat(caps);
setVideoFormat(caps);
getGstreamerDot(details);
setOutputBitrate(bitrate);
isMediaFlowingIn(mediaType, sinkMediaDescription);
isMediaFlowingOut(mediaType, sourceMediaDescription);
isMediaTranscoding(mediaType, binName);
setMinOuputBitrate(minOuputBitrate);
setMinOutputBitrate(minOutputBitrate);
setMaxOuputBitrate(maxOuputBitrate);
setMaxOutputBitrate(maxOutputBitrate);
MediaPipeline
getGstreamerDot(details);
getLatencyStats();
setLatencyStats(latencyStats);
MediaObject
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getTags",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 54
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getMediaPipeline",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 50
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getParent",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 52
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getChilds",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 48
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getChildren",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 47
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getName",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 51
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getSendTagsInEvents",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 53
}
{
"jsonrpc": "2.0",
"method": "invoke",
"params": {
"object": "d244bd28-0a75-465b-8dd8-0c72cae54336_kurento.MediaPipeline/f0f45c66-1ad5-4546-acfe-fae08794d224_kurento.WebRtcEndpoint",
"operation": "getCreationTime",
"sessionId": "03d76c86-f6ad-43de-93bb-e9073bcbe7e3"
},
"id": 49
}
addTag(key, value);
removeTag(key);
getTag(key);
setName(name);
setSendTagsInEvents(sendTagsInEvents);