public ResToWebHookOnStreamChange OnStreamChange(ReqForWebHookOnStreamChange req)
        {
            ResponseStruct rs;
            var            ret = MediaServerCtrlApi.OnStreamChangeNew(req, out rs);

            if (rs.Code != ErrorNumber.None)
            {
                throw new HttpResponseException(JsonHelper.ToJson(rs));
            }

            return(ret);
        }
Exemplo n.º 2
0
 public ResToWebHookOnStreamChange OnStreamChanged(ReqForWebHookOnStreamChange req)
 {
     return(WebHookService.OnStreamChanged(req));
 }