Class MediaCapture

Index

Properties

Methods

Properties

public audioDeviceController: AudioDeviceController

public mediaCaptureSettings: MediaCaptureSettings

public onfailed: any

public onrecordlimitationexceeded: any

public videoDeviceController: VideoDeviceController

Methods

public addEffectAsync(mediaStreamType: MediaStreamType, effectActivationID: string, effectSettings: IPropertySet): IAsyncAction

Parameters

Returns

IAsyncAction

public capturePhotoToStorageFileAsync(type: ImageEncodingProperties, file: IStorageFile): IAsyncAction

Parameters

Returns

IAsyncAction

public capturePhotoToStreamAsync(type: ImageEncodingProperties, stream: IRandomAccessStream): IAsyncAction

Parameters

Returns

IAsyncAction

public clearEffectsAsync(mediaStreamType: MediaStreamType): IAsyncAction

Parameters

Returns

IAsyncAction

public getEncoderProperty(mediaStreamType: MediaStreamType, propertyId: string): any

Parameters

Returns

any

public getPreviewMirroring(): boolean

Returns

boolean

public getPreviewRotation(): VideoRotation

Returns

VideoRotation

public getRecordRotation(): VideoRotation

Returns

VideoRotation

public initializeAsync(): IAsyncAction

Returns

IAsyncAction

public initializeAsync(mediaCaptureInitializationSettings: MediaCaptureInitializationSettings): IAsyncAction

Parameters

Returns

IAsyncAction

public setEncoderProperty(mediaStreamType: MediaStreamType, propertyId: string, propertyValue: any)

Parameters

public setPreviewMirroring(value: boolean)

Parameters

  • value: boolean

public setPreviewRotation(value: VideoRotation)

Parameters

public setRecordRotation(value: VideoRotation)

Parameters

public startPreviewAsync(): IAsyncAction

Returns

IAsyncAction

public startPreviewToCustomSinkAsync(encodingProfile: MediaEncodingProfile, customMediaSink: IMediaExtension): IAsyncAction

Parameters

Returns

IAsyncAction

public startPreviewToCustomSinkAsync(encodingProfile: MediaEncodingProfile, customSinkActivationId: string, customSinkSettings: IPropertySet): IAsyncAction

Parameters

Returns

IAsyncAction

public startRecordToCustomSinkAsync(encodingProfile: MediaEncodingProfile, customMediaSink: IMediaExtension): IAsyncAction

Parameters

Returns

IAsyncAction

public startRecordToCustomSinkAsync(encodingProfile: MediaEncodingProfile, customSinkActivationId: string, customSinkSettings: IPropertySet): IAsyncAction

Parameters

Returns

IAsyncAction

public startRecordToStorageFileAsync(encodingProfile: MediaEncodingProfile, file: IStorageFile): IAsyncAction

Parameters

Returns

IAsyncAction

public startRecordToStreamAsync(encodingProfile: MediaEncodingProfile, stream: IRandomAccessStream): IAsyncAction

Parameters

Returns

IAsyncAction

public stopPreviewAsync(): IAsyncAction

Returns

IAsyncAction

public stopRecordAsync(): IAsyncAction

Returns

IAsyncAction