mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: fix targetElement types on constructors
parent
215f2828dd
commit
370a426fa9
|
@ -81,7 +81,7 @@ export class Publisher extends StreamManager {
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
constructor(targEl: string | HTMLElement, properties: PublisherProperties, openvidu: OpenVidu) {
|
constructor(targEl: string | HTMLElement | undefined, properties: PublisherProperties, openvidu: OpenVidu) {
|
||||||
super(new Stream((!!openvidu.session) ? openvidu.session : new Session(openvidu), { publisherProperties: properties, mediaConstraints: {} }), targEl);
|
super(new Stream((!!openvidu.session) ? openvidu.session : new Session(openvidu), { publisherProperties: properties, mediaConstraints: {} }), targEl);
|
||||||
platform = PlatformUtils.getInstance();
|
platform = PlatformUtils.getInstance();
|
||||||
this.properties = properties;
|
this.properties = properties;
|
||||||
|
|
|
@ -40,7 +40,7 @@ export class Subscriber extends StreamManager {
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
constructor(stream: Stream, targEl: string | HTMLElement, properties: SubscriberProperties) {
|
constructor(stream: Stream, targEl: string | HTMLElement | undefined, properties: SubscriberProperties) {
|
||||||
super(stream, targEl);
|
super(stream, targEl);
|
||||||
this.element = this.targetElement;
|
this.element = this.targetElement;
|
||||||
this.stream = stream;
|
this.stream = stream;
|
||||||
|
|
Loading…
Reference in New Issue