1
kurento tutorials java 샘플을 사용합니다. 나는 webrtcpeer 객체에서 onend와 같은 스트림 이벤트를 처리하고 싶다. 다음은 스트림 객체를 가져올 곳의 샘플 코드입니다.kurento java 튜토리얼 샘플을 사용할 때 kurento 유틸리티에서 스트림 객체를 얻는 방법
var options = {
localVideo: video,
mediaConstraints: constraints,
onicecandidate: participant.onIceCandidate.bind(participant)
};
var peer = new kurentoUtils.WebRtcPeer.WebRtcPeerSendonly(options, function(error) {
if (error) {
return console.error(error);
}
this.generateOffer(participant.offerToReceiveVideo.bind(participant));
});
나는이 question
에서 언급으로 유사한 방식으로 내가 어떻게 진행해야에게 이벤트를 처리하는 경우는?
답장을 보내 주셔서 감사합니다. 첫 번째 옵션은 매력처럼 나를 위해 일했습니다. –
onStreamEnded 이벤트는 더 이상 사용되지 않으며 Chrome에서는 10 월까지 제거 될 것이라고 말합니다. 동일한 행사에 사용할 수있는 것이 있습니까? –