Share via


WMEncDataView.SetViewProperties

Windows Media Encoder SDK banner art

The SetViewProperties method specifies the properties of a specific input stream.

Syntax

WMEncDataView.SetViewProperties(lStreamCookie, hWnd)

Parameters

lStreamCookie

[in]  Long containing the stream ID.

hWnd

[in]  Long specifying a handle to a window object.

Return Values

This method does not return a value.

Example Code

' Create a WMEncoder object.
  Dim Encoder As WMEncoder
  Set Encoder = New WMEncoder

' Configure the encoding session including the input sources,
' the profile, and the output.

' Retrieve an IWMEncDataViewCollection object from the
' video source object to display a postview.
  Dim DVColl_Postview As IWMEncDataViewCollection
  Set DVColl_Postview = SrcVid.PostviewCollection

' Create a WMEncDataView object.
  Dim Postview As WMEncDataView
  Set Postview = New WMEncDataView

' Add the WMEncDataView object to the collection.
  Dim lPostviewStream As Long
  lPostviewStream = DVColl_Postview.Add(Postview)

' Start encoding.
  Encoder.Start

' Display the stream postview in a frame called PostviewFrame.
  Postview.SetViewProperties lPostviewStream, PostviewFrame.hWnd
  Postview.StartView (lPostviewStream)

Requirements

Reference: Windows Media Encoder Preview Control

Library: wmprevu.dll

See Also