diff --git a/openvidu-browser/src/OpenVidu/StreamManager.ts b/openvidu-browser/src/OpenVidu/StreamManager.ts index a980ba17..c48ef890 100644 --- a/openvidu-browser/src/OpenVidu/StreamManager.ts +++ b/openvidu-browser/src/OpenVidu/StreamManager.ts @@ -329,6 +329,8 @@ export class StreamManager implements EventDispatcher { case VideoInsertMode.REPLACE: targEl.parentNode!!.replaceChild(video, targEl); break; + case VideoInsertMode.NONE: + break; default: insMode = VideoInsertMode.APPEND; targEl.appendChild(video); diff --git a/openvidu-browser/src/OpenViduInternal/Enums/VideoInsertMode.ts b/openvidu-browser/src/OpenViduInternal/Enums/VideoInsertMode.ts index 137e4d36..203d4918 100644 --- a/openvidu-browser/src/OpenViduInternal/Enums/VideoInsertMode.ts +++ b/openvidu-browser/src/OpenViduInternal/Enums/VideoInsertMode.ts @@ -39,6 +39,11 @@ export enum VideoInsertMode { /** * Video replaces target element */ - REPLACE = 'REPLACE' + REPLACE = 'REPLACE', + + /** + * Video is not inserted into the target element + */ + NONE = 'NONE' } \ No newline at end of file