MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IAudioVideoCaptureDeviceNative::SetVideoSampleSink method for Windows Phone 8

July 21, 2014

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

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

HRESULT SetVideoSampleSink(
   [in]    ICameraCaptureSampleSink* pSink
);

pSink [in]

Type: ICameraCaptureSampleSink*

A pointer to the sink that will be used to receive video samples.

Type: HRESULT

Returns S_OK if successful, or an error value otherwise.

To access the IAudioVideoCaptureDeviceNative interface, 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.

This sink only receives samples while the AudioVideoCaptureDevice is recording. Recording starts when the StartRecordingToSinkAsync method is called and ends after StopRecordingAsync is called. Specify the audio and video encoding formats with the AudioEncodingFormat and VideoEncodingFormat properties, respectively.

Whether the AudioVideoCaptureDevice captures audio or video is determined by which open method is used to create the capture device. Use the OpenAsync method 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

Show:
© 2016 Microsoft