import { Injectable } from '@angular/core' ; import { Session , PublisherProperties , OpenVidu , Publisher , Connection } from 'openvidu-browser' ; import { Signal } from '../../types/singal-type' ; @ Injectable ( { providedIn : 'root' } ) export class OpenViduWebrtcServiceMock { private OV : OpenVidu = null ; private OVScreen : OpenVidu = null ; private webcamSession : Session = null ; private screenSession : Session = null ; private videoSource = undefined ; private audioSource = undefined ; private screenMediaStream : MediaStream = null ; private webcamMediaStream : MediaStream = null ; constructor ( ) { } initialize ( ) { } initSessions ( ) { } getWebcamSession ( ) { return null ; } initializeWebcamSession ( ) { } initializeScreenSession ( ) { } getScreenSession ( ) { return null ; } async connectWebcamSession ( token ) { } disconnectWebcamSession ( ) { } async connectScreenSession ( token ) { } disconnectScreenSession ( ) { } disconnect ( ) { } initPublisher ( targetElement , properties ) { return null ; } initPublisherAsync ( targetElement , properties ) { return null ; } destroyWebcamPublisher ( ) { } destroyScreenPublisher ( ) { } async publishWebcamPublisher ( ) { } unpublishWebcamPublisher ( ) { } async publishScreenPublisher ( ) { } unpublishScreenPublisher ( ) { } publishWebcamVideo ( active ) { } publishWebcamAudio ( active ) { } publishScreenAudio ( active ) { } replaceTrack ( videoSource , audioSource , mirror = true ) { return new Promise ( ( resolve , reject ) => { } ) ; } sendSignal ( type , connection ? , data ? ) { } sendNicknameSignal ( connection ? ) { } createPublisherProperties ( videoSource , audioSource , publishVideo , publishAudio , mirror ) { return { } ; } async replaceScreenTrack ( ) { } stopAudioTracks ( mediaStream ) { } stopVideoTracks ( mediaStream ) { } needSendNicknameSignal ( ) { return false ; } isMyOwnConnection ( connectionId ) { return false ; } getSessionOfUserConnected ( ) { return null ; } private stopScreenTracks ( ) { } }