ICameraCaptureDeviceNative::SetPreviewSink method for Windows Phone 8

ICameraCaptureDeviceNative::SetPreviewSink 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 frames from the camera preview.

HRESULT SetPreviewSink(
   [in]    ICameraCapturePreviewSink* pSink
);

pSink [in]

Type: ICameraCapturePreviewSink*

A pointer to the sink that will be used to receive the preview frames.

Type: HRESULT

Returns S_OK if successful, or an error value otherwise.

To access the IcameraCaptureDeviceNative interface, invoke the IUnknown::QueryInterface method on the instance of the PhotoCaptureDevice class or the AudioVideoCaptureDevice class, using the UUID of ICameraCaptureDeviceNative. This method is not directly available from a managed projection, but you can write your own Windows Runtime object that wraps it.

Minimum supported phone

Windows Phone 8

Header

Windows.Phone.Media.Capture.Native.h

Namespace

Windows::Phone::Media::Capture

Show:
© 2017 Microsoft