IWMSServer::get_PlaylistParsers
.gif)
| Previous | Next |
IWMSServer::get_PlaylistParsers
The get_PlaylistParsers method retrieves an IWMSPlugins interface containing a collection of playlist parser plug-ins. You can use a playlist parser plug-in to support a playlist format.
Syntax
HRESULT get_PlaylistParsers( IWMSPlugins** pVal );
Parameters
pVal
[out] Pointer to a pointer to an IWMSPlugins interface containing a collection of playlist parser plug-ins.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
| Return code | Number | Description |
| E_POINTER | 0x80004003 | Indicates that pVal is a NULL pointer argument. |
Remarks
This method calls AddRef internally. To avoid memory leaks, you must call Release when you are finished using the interface.
The following system plug-ins can be accessed using the get_PlaylistParsers method.
| Plug-in | Description |
| WMS Directory Playlist Parser | Enables you to configure a publishing point to stream Windows Media files from a directory by setting the publishing point path to reference the directory. For a broadcast publishing point, a player will automatically receive all of the files. For an on-demand publishing point, a player can request either a single file or all of the files in the directory. |
| WMS SMIL Playlist Parser | Provides support for playlist files with a .wsx extension that contain Synchronized Multimedia Integration Language (SMIL) 2.0 syntax. By enabling this plug-in, you can deliver a single stream that consists of content from multiple sources; you can also dynamically change the content structure as it streams. |
To create custom playlist parser plug-ins, see Creating Playlist Parser Plug-ins.
Example Code
#include <windows.h>
#include "wmsserver.h"
// Declare variables and interfaces.
IWMSServer *pServer;
IWMSPlugins *pPlugins;
HRESULT hr;
// Initialize the COM library and retrieve a pointer
// to an IWMSServer interface.
hr = CoInitialize(NULL);
hr = CoCreateInstance(CLSID_WMSServer,
NULL,
CLSCTX_ALL,
IID_IWMSServer,
(void **)&pServer);
if (FAILED(hr)) goto EXIT;
// Retrieve a pointer to an IWMSPlugins interface
// containing playlist parser plug-ins.
hr = pServer->get_PlaylistParsers(&pPlugins);
if (FAILED(hr)) goto EXIT;
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 |