Interface: PreviewStreamController
Properties
audioInput
• audioInput: PreviewInput
audioInputChanged
• audioInputChanged: boolean
cleanup
• cleanup: () => Promise
<void
>
Type declaration
▸ (): Promise
<void
>
Returns
Promise
<void
>
inputChanged
• inputChanged: boolean
media
• media: Media
updatingMain
• updatingMain: boolean
updatingPreview
• updatingPreview: boolean
videoInput
• videoInput: PreviewInput
videoInputChanged
• videoInputChanged: boolean
Methods
applyChanges
▸ applyChanges(force?
): Promise
<void
>
Parameters
Name | Type |
---|---|
force? | boolean |
Returns
Promise
<void
>
onApplyChangesError
▸ onApplyChangesError(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventErrorCallback |
Returns
onAudioInputChanged
▸ onAudioInputChanged(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventCallback <PreviewInput > |
Returns
onAudioInputError
▸ onAudioInputError(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventErrorCallback |
Returns
onMediaChanged
▸ onMediaChanged(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventCallback <Media > |
Returns
onRevertChangesError
▸ onRevertChangesError(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventErrorCallback |
Returns
onUpdatingMain
▸ onUpdatingMain(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventCallback <boolean > |
Returns
onUpdatingPreview
▸ onUpdatingPreview(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventCallback <boolean > |
Returns
onVideoInputChanged
▸ onVideoInputChanged(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventCallback <PreviewInput > |
Returns
onVideoInputError
▸ onVideoInputError(callback
): Unsubscribe
Parameters
Name | Type |
---|---|
callback | EventErrorCallback |
Returns
revertChanges
▸ revertChanges(): Promise
<void
>
Returns
Promise
<void
>
updateAudioInput
▸ updateAudioInput(input
): void
Parameters
Name | Type |
---|---|
input | PreviewInput |
Returns
void
updateVideoInput
▸ updateVideoInput(input
): void
Parameters
Name | Type |
---|---|
input | PreviewInput |
Returns
void