This topic has not yet been rated - Rate this topic

IAudioVideoCaptureDeviceNative interface for Windows Phone 8

April 01, 2014

Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 only

Exposes extra operations on the AudioVideoCaptureDevice object.

The IAudioVideoCaptureDeviceNative interface inherits from the IUnknown interface. IAudioVideoCaptureDeviceNative has these methods.

Method

Description

IAudioVideoCaptureDeviceNative::SetAudioSampleSink method for Windows Phone 8

Sets the sink that will receive encoded audio samples during recording.

IAudioVideoCaptureDeviceNative::SetVideoSampleSink method for Windows Phone 8

Sets the sink that will receive encoded video samples during recording.

To access IAudioVideoCaptureDeviceNative, invoke the IUnknown::QueryInterface method on the instance of the AudioVideoCaptureDevice class, using the UUID of IAudioVideoCaptureDeviceNative. These methods are not directly available from managed projections, but you can write your own Windows Runtime objects that wrap them.

These sinks only receive samples while the AudioVideoCaptureDevice object is recording. Recording starts when the StartRecordingToSinkAsync method is called and ends after StopRecordingAsync is called. Specify the audio and video encoding formats using the AudioEncodingFormat and VideoEncodingFormat properties, respectively.

Whether AudioVideoCaptureDevice captures audio or video is determined by which open method is used to create the capture device. Use OpenAsync for video samples with audio, OpenForAudioOnlyAsync for audio samples, and OpenForVideoOnlyAsync for video samples without audio.

Minimum supported phone

Windows Phone 8

Header

Windows.Phone.Media.Capture.Native.h

Namespace

Windows::Phone::Media::Capture

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.