Type alias MicrophoneAPI<TrackMetadata>
MicrophoneAPI<TrackMetadata>: { addTrack: ((trackMetadata?,
maxBandwidth?) => Promise<string>); broadcast: Track<TrackMetadata> | null; deviceInfo: MediaDeviceInfo | null; devices: MediaDeviceInfo[] | null; enabled: boolean; error: DeviceError | null; mediaStatus: MediaStatus | null; muteTrack: ((newTrackMetadata?) => Promise<void>); removeTrack: (() => Promise<void>); replaceTrack: ((newTrackMetadata?) => Promise<void>); setEnable: ((value) => void); start: ((deviceId?) => void); status: DevicesStatus | null; stop: (() => void); stream: MediaStream | null; track: MediaStreamTrack | null; unmuteTrack: ((newTrackMetadata?) => Promise<void>); updateTrackMetadata: ((newTrackMetadata) => void); } Type declaration
addTrack: ((trackMetadata?, maxBandwidth?) => Promise<string>)
- (trackMetadata?, maxBandwidth?): Promise<string>
Returns Promise<string>
enabled: boolean
error: DeviceError | null
mediaStatus: MediaStatus | null
muteTrack: ((newTrackMetadata?) => Promise<void>)
removeTrack: (() => Promise<void>)
replaceTrack: ((newTrackMetadata?) => Promise<void>)
setEnable: ((value) => void)
- (value): void
Returns void
start: ((deviceId?) => void)
- (deviceId?): void
Parameters
Optional
deviceId: string
Returns void
status: DevicesStatus | null
stop: (() => void)
unmuteTrack: ((newTrackMetadata?) => Promise<void>)
updateTrackMetadata: ((newTrackMetadata) => void)
- (newTrackMetadata): void
Returns void