From f92869cff597b1f8d7457ddae28aa8ce12a87659 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Thu, 25 Mar 2021 14:21:59 +0100 Subject: [PATCH] openvidu-browser: better Publisher.replaceTrack docs --- openvidu-browser/src/OpenVidu/Publisher.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openvidu-browser/src/OpenVidu/Publisher.ts b/openvidu-browser/src/OpenVidu/Publisher.ts index 76c5a134..db728939 100644 --- a/openvidu-browser/src/OpenVidu/Publisher.ts +++ b/openvidu-browser/src/OpenVidu/Publisher.ts @@ -295,10 +295,12 @@ export class Publisher extends StreamManager { * * You can get this new MediaStreamTrack by using the native Web API or simply with [[OpenVidu.getUserMedia]] method. * - * **WARNING: this method has been proven to work, but there may be some combinations of published/replaced tracks that may be incompatible between them and break the connection in OpenVidu Server. A complete renegotiation may be the only solution in this case** + * **WARNING: this method has been proven to work in the majority of cases, but there may be some combinations of published/replaced tracks that may be incompatible + * between them and break the connection in OpenVidu Server. A complete renegotiation may be the only solution in this case. + * Visit [RTCRtpSender.replaceTrack](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/replaceTrack) documentation for further details.** * - * @param track The [MediaStreamTrack](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack) object to replace the current one. If it is an audio track, the current audio track will be the replaced one. If it - * is a video track, the current video track will be the replaced one. + * @param track The [MediaStreamTrack](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack) object to replace the current one. + * If it is an audio track, the current audio track will be the replaced one. If it is a video track, the current video track will be the replaced one. * * @returns A Promise (to which you can optionally subscribe to) that is resolved if the track was successfully replaced and rejected with an Error object in other case */