爱东东

VS.NET,IT,个人,个人网站 爱东东 http://www.idongdong.net

 

WMS授权插件AuthorizeEvent中部分事件参数说明

public object GetAuthorizedEvents()
{
    // TODO:  添加 CWMSAuthorizePlugin.GetAuthorizedEvents 实现
    try
    {
        CWMSAuthorizePlugin.WriteLog("Enter GetAuthorizedEvents");
        // Identify the events the plug-in can authorize.
        WMS_EVENT_TYPE[] wmsEvents = {WMS_EVENT_TYPE.WMS_EVENT_CONNECT,WMS_EVENT_TYPE.WMS_EVENT_BEGIN_USER_SESSION,WMS_EVENT_TYPE.WMS_EVENT_LOGICAL_URL_TRANSFORM,WMS_EVENT_TYPE.WMS_EVENT_PHYSICAL_URL_TRANSFORM,WMS_EVENT_TYPE.WMS_EVENT_DESCRIBE, WMS_EVENT_TYPE.WMS_EVENT_OPEN,WMS_EVENT_TYPE.WMS_EVENT_SELECT_STREAMS,WMS_EVENT_TYPE.WMS_EVENT_INITIALIZE_PLAYLIST,WMS_EVENT_TYPE.WMS_EVENT_PLAY,WMS_EVENT_TYPE.WMS_EVENT_VALIDATE_PUSH_DISTRIBUTION};
        return (object)wmsEvents;
    }
    catch(Exception ex)
    {
        // Throw E_FAIL to the server.
        throw new COMException();
    }
}

在AuthorizeEvent中对pCommandCtx.GetCommandRequest(out cmdreq);中cmdreq中内容进行捕获
发现如下:
_________________2007-10-20 16:07:10___________________
Enter AuthorizeEvent WMS_EVENT_CONNECT
------------------------------------
_________________2007-10-20 16:07:10___________________

------------------------------------
_________________2007-10-20 16:07:10___________________
Enter AuthorizeEvent WMS_EVENT_BEGIN_USER_SESSION
------------------------------------
_________________2007-10-20 16:07:10___________________

------------------------------------
_________________2007-10-20 16:07:10___________________
Enter AuthorizeEvent WMS_EVENT_LOGICAL_URL_TRANSFORM
------------------------------------
_________________2007-10-20 16:07:10___________________
name=@ STREAM EVENT;hint=15;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROXY PROTOCOLS;hint=161;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROTOCOLS;hint=45;ovalue=System.__ComObject;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PORT;hint=5;ovalue=554;option=1;
name=@ PROTO VERS;hint=9;ovalue=1.0;option=1;
name=@ PROTO;hint=8;ovalue=RTSP;option=1;
name=@WMS_COMMAND_CONTEXT_URL;hint=2;ovalue=rtsp://CS/test/a.wmv?uid=10
&vcode=123456;option=1;
name=@WMS_COMMAND_CONTEXT_URL_HOSTNAME;hint=4;ovalue=CS;option=1;
name=@WMS_COMMAND_CONTEXT_URL_EXTRAINFO;hint=7;ovalue=?uid=10
&vcode=123456;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PATH;hint=6;ovalue=test/a.wmv;option=1;
name=@WMS_COMMAND_CONTEXT_URL_SCHEME;hint=3;ovalue=rtsp;option=1;
name=@ WMS_COMMAND_NAME;hint=153;ovalue=DESCRIBE;option=1;
name=Supported;hint=1070;ovalue=System.__ComObject;option=257;
name=CSeq;hint=1060;ovalue=System.__ComObject;option=257;
name=Accept-Language;hint=1003;ovalue=System.__ComObject;option=257;
name=X-Accept-Authentication;hint=1074;ovalue=System.__ComObject;option=257;
name=Accept-Charset;hint=1001;ovalue=System.__ComObject;option=257;
name=Accept;hint=1000;ovalue=System.__ComObject;option=257;
name=User-Agent;hint=1025;ovalue=System.__ComObject;option=257;

------------------------------------
_________________2007-10-20 16:07:10___________________
Enter AuthorizeEvent WMS_EVENT_PHYSICAL_URL_TRANSFORM
------------------------------------
_________________2007-10-20 16:07:10___________________
name=@ STREAM EVENT;hint=15;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROXY PROTOCOLS;hint=161;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROTOCOLS;hint=45;ovalue=System.__ComObject;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PORT;hint=5;ovalue=554;option=1;
name=@ PROTO VERS;hint=9;ovalue=1.0;option=1;
name=@ PROTO;hint=8;ovalue=RTSP;option=1;
name=@WMS_COMMAND_CONTEXT_URL;hint=2;ovalue=rtsp://CS/test/a.wmv?uid=10
&vcode=123456;option=1;
name=@WMS_COMMAND_CONTEXT_URL_HOSTNAME;hint=4;ovalue=CS;option=1;
name=@WMS_COMMAND_CONTEXT_URL_EXTRAINFO;hint=7;ovalue=?uid=10
&vcode=123456;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PATH;hint=6;ovalue=test/a.wmv;option=1;
name=@WMS_COMMAND_CONTEXT_URL_SCHEME;hint=3;ovalue=rtsp;option=1;
name=@ WMS_COMMAND_NAME;hint=153;ovalue=DESCRIBE;option=1;
name=Supported;hint=1070;ovalue=System.__ComObject;option=257;
name=CSeq;hint=1060;ovalue=System.__ComObject;option=257;
name=Accept-Language;hint=1003;ovalue=System.__ComObject;option=257;
name=X-Accept-Authentication;hint=1074;ovalue=System.__ComObject;option=257;
name=Accept-Charset;hint=1001;ovalue=System.__ComObject;option=257;
name=Accept;hint=1000;ovalue=System.__ComObject;option=257;
name=User-Agent;hint=1025;ovalue=System.__ComObject;option=257;

------------------------------------
_________________2007-10-20 16:07:10___________________
Enter AuthorizeEvent WMS_EVENT_DESCRIBE
------------------------------------
_________________2007-10-20 16:07:10___________________
name=@ STREAM EVENT;hint=15;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROXY PROTOCOLS;hint=161;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROTOCOLS;hint=45;ovalue=System.__ComObject;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PORT;hint=5;ovalue=554;option=1;
name=@ PROTO VERS;hint=9;ovalue=1.0;option=1;
name=@ PROTO;hint=8;ovalue=RTSP;option=1;
name=@WMS_COMMAND_CONTEXT_URL;hint=2;ovalue=rtsp://CS/test/a.wmv?uid=10
&vcode=123456;option=1;
name=@WMS_COMMAND_CONTEXT_URL_HOSTNAME;hint=4;ovalue=CS;option=1;
name=@WMS_COMMAND_CONTEXT_URL_EXTRAINFO;hint=7;ovalue=?uid=10
&vcode=123456;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PATH;hint=6;ovalue=test/a.wmv;option=1;
name=@WMS_COMMAND_CONTEXT_URL_SCHEME;hint=3;ovalue=rtsp;option=1;
name=@ WMS_COMMAND_NAME;hint=153;ovalue=DESCRIBE;option=1;
name=Supported;hint=1070;ovalue=System.__ComObject;option=257;
name=CSeq;hint=1060;ovalue=System.__ComObject;option=257;
name=Accept-Language;hint=1003;ovalue=System.__ComObject;option=257;
name=X-Accept-Authentication;hint=1074;ovalue=System.__ComObject;option=257;
name=Accept-Charset;hint=1001;ovalue=System.__ComObject;option=257;
name=Accept;hint=1000;ovalue=System.__ComObject;option=257;
name=User-Agent;hint=1025;ovalue=System.__ComObject;option=257;

------------------------------------
_________________2007-10-20 16:07:10___________________
Enter AuthorizeEvent WMS_EVENT_OPEN
------------------------------------
_________________2007-10-20 16:07:10___________________
name=@ STREAM EVENT;hint=15;ovalue=System.__ComObject;option=1;
name=@ TRANSPORT PROPERTIES;hint=13;ovalue=System.__ComObject;option=1;
name=@ STREAM SWITCH;hint=25;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROXY PROTOCOLS;hint=161;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROTOCOLS;hint=45;ovalue=System.__ComObject;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PORT;hint=5;ovalue=554;option=1;
name=@ PROTO VERS;hint=9;ovalue=1.0;option=1;
name=@ PROTO;hint=8;ovalue=RTSP;option=1;
name=@WMS_COMMAND_CONTEXT_URL;hint=2;ovalue=rtsp://CS/test/a.wmv/rtx;option=1;
name=@WMS_COMMAND_CONTEXT_URL_HOSTNAME;hint=4;ovalue=CS;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PATH;hint=6;ovalue=test/a.wmv/rtx;option=1;
name=@WMS_COMMAND_CONTEXT_URL_SCHEME;hint=3;ovalue=rtsp;option=1;
name=@ WMS_COMMAND_NAME;hint=153;ovalue=SETUP;option=1;
name=Transport;hint=1068;ovalue=System.__ComObject;option=257;
name=X-Playlist-Gen-Id;hint=1080;ovalue=System.__ComObject;option=257;
name=CSeq;hint=1060;ovalue=System.__ComObject;option=257;
name=Accept-Language;hint=1003;ovalue=System.__ComObject;option=257;
name=X-Accept-Authentication;hint=1074;ovalue=System.__ComObject;option=257;
name=Accept-Charset;hint=1001;ovalue=System.__ComObject;option=257;
name=User-Agent;hint=1025;ovalue=System.__ComObject;option=257;

------------------------------------
_________________2007-10-20 16:07:10___________________
Enter AuthorizeEvent WMS_EVENT_SELECT_STREAMS
------------------------------------
_________________2007-10-20 16:07:10___________________
name=@ STREAM EVENT;hint=15;ovalue=System.__ComObject;option=1;
name=@ TRANSPORT PROPERTIES;hint=13;ovalue=System.__ComObject;option=1;
name=@ STREAM SWITCH;hint=25;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROXY PROTOCOLS;hint=161;ovalue=System.__ComObject;option=1;
name=@ ACCEPTED PROTOCOLS;hint=45;ovalue=System.__ComObject;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PORT;hint=5;ovalue=554;option=1;
name=@ PROTO VERS;hint=9;ovalue=1.0;option=1;
name=@ PROTO;hint=8;ovalue=RTSP;option=1;
name=@WMS_COMMAND_CONTEXT_URL;hint=2;ovalue=rtsp://CS/test/a.wmv/rtx;option=1;
name=@WMS_COMMAND_CONTEXT_URL_HOSTNAME;hint=4;ovalue=CS;option=1;
name=@WMS_COMMAND_CONTEXT_URL_PATH;hint=6;ovalue=test/a.wmv/rtx;option=1;
name=@WMS_COMMAND_CONTEXT_URL_SCHEME;hint=3;ovalue=rtsp;option=1;
name=@ WMS_COMMAND_NAME;hint=153;ovalue=SETUP;option=1;
name=Transport;hint=1068;ovalue=System.__ComObject;option=257;
name=X-Playlist-Gen-Id;hint=1080;ovalue=System.__ComObject;option=257;
name=CSeq;hint=1060;ovalue=System.__ComObject;option=257;
name=Accept-Language;hint=1003;ovalue=System.__ComObject;option=257;
name=X-Accept-Authentication;hint=1074;ovalue=System.__ComObject;option=257;
name=Accept-Charset;hint=1001;ovalue=System.__ComObject;option=257;
name=User-Agent;hint=1025;ovalue=System.__ComObject;option=257;

------------------------------------

posted on 2007-10-20 16:18  爱东东  阅读(695)  评论(0编辑  收藏  举报

导航