Add NONE VideoInsertMode

pull/405/head
David Adeboye 2020-03-11 14:18:42 +00:00
parent 7ea92b74fd
commit f43c891318
2 changed files with 8 additions and 1 deletions

View File

@ -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);

View File

@ -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'
} }