mirror of https://github.com/OpenVidu/openvidu.git
Add NONE VideoInsertMode
parent
7ea92b74fd
commit
f43c891318
|
@ -329,6 +329,8 @@ export class StreamManager implements EventDispatcher {
|
||||||
case VideoInsertMode.REPLACE:
|
case VideoInsertMode.REPLACE:
|
||||||
targEl.parentNode!!.replaceChild(video, targEl);
|
targEl.parentNode!!.replaceChild(video, targEl);
|
||||||
break;
|
break;
|
||||||
|
case VideoInsertMode.NONE:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
insMode = VideoInsertMode.APPEND;
|
insMode = VideoInsertMode.APPEND;
|
||||||
targEl.appendChild(video);
|
targEl.appendChild(video);
|
||||||
|
|
|
@ -39,6 +39,11 @@ export enum VideoInsertMode {
|
||||||
/**
|
/**
|
||||||
* Video replaces target element
|
* Video replaces target element
|
||||||
*/
|
*/
|
||||||
REPLACE = 'REPLACE'
|
REPLACE = 'REPLACE',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Video is not inserted into the target element
|
||||||
|
*/
|
||||||
|
NONE = 'NONE'
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue