Share via


IWMSPublishingPoint::get_WrapperPath

banner art

Previous Next

IWMSPublishingPoint::get_WrapperPath

The get_WrapperPath method retrieves the path to a wrapper playlist file.

Syntax

  HRESULT get_WrapperPath(
  BSTR*  pVal
);

Parameters

pVal

[out] Pointer to a BSTR that contains the playlist.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Number Description
E_OUTOFMEMORY 0x8007000E Indicates that there is insufficient memory to complete the function.
E_POINTER 0x80004003 Indicates that pVal is a NULL pointer argument.
NS_E_PUBLISHING_POINT_REMOVED 0xC00D145AL Indicates that the publishing point was already removed.
NS_E_WRONG_PUBLISHING_POINT_TYPE 0xC00D1452L Indicates that the method is not supported for cache proxy publishing points.

Remarks

This method is not supported for cache proxy publishing points.

A wrapper playlist can contain references to media files that are streamed before and after the content requested by the client. Hence, the media files wrap the requested content. You can use a wrapper playlist to guarantee that every client connected to a publishing point renders specific content. In the following wrapper playlist example, media content is inserted before and after the requested content that is indicated by the "%url%" placeholder:

<seq>
     <media src = "c:\wmpub\wmroot\content1.wmv"
     <media src = "%url%"
     <media src = "c:\wmpub\wmroot\content2.wmv"
</seq>

Example Code

  EXIT:
    // TODO: Release temporary COM objects and uninitialize COM.

Requirements

Header: wmsserver.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next