How to Use the Event Notification Sample
Previous | Next |
How to Use the Event Notification Sample
- Note Be sure that you have properly enabled security for the log file before you use the sample plug-in. For more information, see How to Enable Security for the Event Notification Sample.
After you build and register the WMS SDK Sample Context plug-in, you must refresh the list of plug-ins in the details pane before your custom plug-in can be accessed in the user interface. Click the server node in the Windows Media Services snap-in, click Properties in the details pane, and click the Event notification category. Click the Refresh List button at the bottom of the details pane to refresh the list of plug-ins. The sample plug-in is appended to the plug-in list. Highlight the plug-in, and click Properties. The following property page is displayed.
Enter the full path to the log file in the Output Path text box, and choose the contexts for which the plug-in must log information. After you have applied your changes to the property page, right-click on the highlighted plug-in and click Enable.
When enabled and properly configured, the plug-in handles event notices raised by the server and writes context information about the events to the specified file. For example, when a client disconnects, the plug-in writes the following user context information to the file.
************************************************************ Disconnect Event at 2002.03.25 14.16.41 _**********************************************************_ ------------------------- User Context ------------------------- WMS_USER_AGENT(1) = NSPlayer/9.0.0.2623(VT_BSTR) WMS_USER_GUID(2) = {779A698E-BDC7-41D4-A719-CF0C920AA7C4}(VT_BSTR) WMS_USER_IP_ADDRESS(4) = 0x9d90379d(-1651492963)(VT_I4) WMS_USER_IP_ADDRESS_STRING(5) = xxx.xx.144.157(VT_BSTR) WMS_USER_CONTROL_PROTOCOL(6) = MMS(VT_BSTR) WMS_USER_PORT(12) = 0x00000594(1428)(VT_I4)
See Also
Previous | Next |