示例#1
0
 public Task SetRemoteDescription(RTCSessionDescriptionInit sessionDescription) =>
 JsRuntime.CallJsMethodVoidAsync(NativeObject, "setRemoteDescription", sessionDescription)
 .AsTask();
示例#2
0
 public Task ReplaceTrack(IMediaStreamTrack newTrack = null) =>
 JsRuntime.CallJsMethodVoidAsync(NativeObject, "replaceTrack", newTrack?.NativeObject).AsTask();
示例#3
0
 public Task AddIceCandidate(RTCIceCandidateInit candidate) =>
 JsRuntime.CallJsMethodVoidAsync(NativeObject, "addIceCandidate", candidate /*.NativeObject*/).AsTask();
示例#4
0
 public Task SetParameters(RTCRtpSendParameters parameters) =>
 JsRuntime.CallJsMethodVoidAsync(NativeObject, "setParameters", parameters).AsTask();