import { Injectable } from '@angular/core' ; import { IDevice , CameraType } from '../../types/device-type' ; @ Injectable ( ) export class DevicesServiceMock { audioDevice : IDevice = { label : 'audio' , device : 'mockDevice' } ; videodevice : IDevice = { label : 'video' , device : 'mockDevice' , type : CameraType . FRONT } ; constructor ( ) { } async initDevices ( ) { } getCamSelected ( ) { return this . videodevice ; } getMicSelected ( ) { return this . audioDevice ; } setCamSelected ( deviceField ) { } setMicSelected ( deviceField ) { } needUpdateVideoTrack ( newVideoSource ) { return false ; } needUpdateAudioTrack ( newAudioSource ) { return false ; } getCameras ( ) { return [ this . videodevice ] ; } getMicrophones ( ) { return [ this . audioDevice ] ; } hasVideoDeviceAvailable ( ) { return true ; } hasAudioDeviceAvailable ( ) { return true ; } cameraNeedsMirror ( deviceField ) { return true ; } disableVideoDevices ( ) { } clear ( ) { } }