AudioVideoCaptureDevice class
Captures audio and video.
Syntax
public sealed class AudioVideoCaptureDevice : IDisposable,
ICameraCaptureDevice
Public NotInheritable Class AudioVideoCaptureDevice
Implements IDisposable, _
ICameraCaptureDevice
public ref class AudioVideoCaptureDevice sealed : IClosable,
ICameraCaptureDevice
Members
The AudioVideoCaptureDevice class has these types of members:
- Events
- Methods
- Properties
Events
The AudioVideoCaptureDevice class has these events.
Event | Description |
---|---|
PreviewFrameAvailable | Occurs when a preview frame is available. |
RecordingFailed | Raised when a capture fails during recording. |
VendorSpecificDataAvailable | Occurs when vendor-specific data is available. |
Methods
The AudioVideoCaptureDevice class has these methods. It also inherits methods from the Object class.
Method | Description |
---|---|
Close | Releases resources that are associated with the capture device. |
FocusAsync | Starts the autofocus, auto white balance, and auto exposure operations, as applicable. |
GetAvailableCaptureResolutions | Gets the resolutions that are available for video capture. |
GetAvailablePreviewResolutions | Gets the resolutions that are available from the camera preview. |
GetPreviewBufferArgb | Copies the current viewfinder ARGB frame into a buffer for further manipulation. |
GetPreviewBufferY | Copies the luminance data for the current viewfinder frame into a buffer for further manipulation. |
GetPreviewBufferYCbCr | Copies the current viewfinder frame into a buffer for further manipulation. |
GetProperty | Gets the value of a known camera property. |
GetSupportedPropertyRange | Gets a range of supported values for a known camera property. |
GetSupportedPropertyValues | Gets a list of supported values for a known camera property. |
OpenAsync | Creates an AudioVideoCaptureDevice object for capturing audio and video. |
OpenForAudioOnlyAsync | Creates an AudioVideoCaptureDevice object for capturing audio (without video). |
OpenForVideoOnlyAsync | Creates a new AudioVideoCaptureDevice object for capturing video (without audio). |
ResetFocusAsync | Returns the lens to the default position or allows continuous autofocus to resume. |
SetCaptureResolutionAsync | Sets the capture resolution. |
SetPreviewResolutionAsync | Sets the preview resolution. |
SetProperty | Sets the value of a known camera property. |
StartRecordingToSinkAsync | Starts capturing audio-video data and sends it to a sink (for native code). |
StartRecordingToStreamAsync | Starts capturing audio-video data and sends it to a stream. |
StopRecordingAsync | Stops capturing audio-video data. |
Properties
The AudioVideoCaptureDevice class has these properties.
Property | Access type | Description |
---|---|---|
AudioEncodingFormat |
Read/write |
Gets and sets the format of the captured audio data. |
AvailableSensorLocations |
Read-only |
Returns the camera locations that are available on the phone. |
CaptureResolution |
Read-only |
Gets the capture resolution. |
FocusRegion |
Read/write |
Gets or sets the region in the viewfinder where the camera focuses. |
PreviewResolution |
Read-only |
Gets the preview resolution. |
SensorLocation |
Read-only |
Gets the location of the camera on the phone (front or back). |
SensorRotationInDegrees |
Read-only |
Gets the number of degrees that the camera sensor is rotated relative to the screen. |
SupportedAudioEncodingFormats |
Read-only |
Gets the audio encoding formats that are supported on the phone. |
SupportedVideoEncodingFormats |
Read-only |
Gets the video encoding formats that are supported on the phone. |
VideoEncodingFormat |
Read/write |
Gets and sets the format of the captured video data. |
Requirements
Minimum supported client |
None supported |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8 |
Namespace |
Windows.Phone.Media.Capture Windows::Phone::Media::Capture [C++] |
Metadata |
Windows.WinMD |
Capabilities |
ID_CAP_ISV_CAMERA [Windows Phone] ID_CAP_MICROPHONE [Windows Phone] |
Attributes
[Deprecated()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]
[WebHostHidden()]
See also
IClosable
ICameraCaptureDevice