Implementing a Playlist Parser Plug-in
Previous | Next |
Implementing a Playlist Parser Plug-in
The following list identifies the interaction between a Windows Media server, a playlist parser plug-in, and a playlist parser object when a client requests a playlist file:
- Note You must specify the URLSuffix property for your custom playlist parser plug-in to identify the file name extension that it supports. You can also specify the URLPrefix property. For more information on setting properties, see Registering Plug-in Properties.
- The server creates a buffer for the data in the playlist file and calls the data source plug-in to copy the data from the file into the buffer.
- The server calls CreatePlaylistParser on the IWMSPlaylistParserPlugin interface.
- The plug-in creates an IWMSPlaylistParser object and calls OnCreatePlaylistParser on the IWMSPlaylistParserPluginCallback interface.
- The server creates an IXMLDOMDocument playlist object.
- The server calls ReadPlaylist on the IWMSPlaylistParser interface to parse the playlist file that is stored in the buffer created in step 1. The plug-in reads the buffer and populates the IXMLDOMDocument playlist object created in step 4 with the appropriate playlist elements and attributes in the SMIL 2.0 format required by the server.
- The plug-in calls OnReadPlaylist on the IWMSPlaylistParserCallback interface to notify the server of the results of the ReadPlaylist call.
- The server uses the IXMLDOMDocument playlist object to find the physical location of the digital content referenced in the playlist and determine the temporal behavior of the content.
- The server streams the content to the client.
- The server can also call the WritePlaylist method on the IWMSPlaylistParser interface to write the playlist to a file. Implement and call this method if you want to be able to save the playlist.
- If the server calls WritePlaylist, the plug-in calls the OnWritePlaylist method on the IWMSPlaylistParserCallback interface to notify the server of the results of the WritePlaylist method call.
Steps 1 through 7 of the preceding discussion are illustrated by the following diagram.
See Also (General)
See Also (Visual Basic .NET)
- IWMSPlaylistParser.ReadPlaylist (Visual Basic .NET)
- IWMSPlaylistParser.WritePlaylist (Visual Basic .NET)
- IWMSPlaylistParserCallback.OnReadPlaylist (Visual Basic .NET)
- IWMSPlaylistParserCallback.OnWritePlaylist (Visual Basic .NET)
- IWMSPlaylistParserPlugin.CreatePlaylistParser (Visual Basic .NET)
- IWMSPlaylistParserPluginCallback.OnCreatePlaylistParser (Visual Basic .NET)
- IXMLDOMDocument Object (Visual Basic .NET)
See Also (C#)
- IWMSPlaylistParser.ReadPlaylist (C#)
- IWMSPlaylistParser.WritePlaylist (C#)
- IWMSPlaylistParserCallback.OnReadPlaylist (C#)
- IWMSPlaylistParserCallback.OnWritePlaylist (C#)
- IWMSPlaylistParserPlugin.CreatePlaylistParser (C#)
- IWMSPlaylistParserPluginCallback.OnCreatePlaylistParser (C#)
- IXMLDOMDocument Object (C#)
See Also (C++)
- IWMSPlaylistParser::ReadPlaylist
- IWMSPlaylistParser::WritePlaylist
- IWMSPlaylistParserCallback::OnReadPlaylist
- IWMSPlaylistParserCallback::OnWritePlaylist
- IWMSPlaylistParserPlugin::CreatePlaylistParser
- IWMSPlaylistParserPluginCallback::OnCreatePlaylistParser
- IXMLDOMDocument Interface
Previous | Next |