public ResToWebHookOnStreamChange OnPlay(ReqForWebHookOnPlay req)
        {
            ResponseStruct rs;
            var            ret = MediaServerCtrlApi.OnPlayNew(req, out rs);

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

            return(ret);
        }
Exemple #2
0
 public ResToWebHookOnPlay OnPlay(ReqForWebHookOnPlay req)
 {
     return(WebHookService.OnPlay(req));
 }