コード例 #1
0
        public bool StopLiveVideo(
            [FromHeader(Name = "AccessKey")] string AccessKey, string deviceId, string channelId)
        {
            ResponseStruct rs;
            var            ret = SipServerService.StopLiveVideo(deviceId, channelId, out rs);

            if (!rs.Code.Equals(ErrorNumber.None))
            {
                throw new AkStreamException(rs);
            }

            return(ret);
        }
コード例 #2
0
        public bool HistroyStopVideo(
            [FromHeader(Name = "AccessKey")] string AccessKey, int taskId, string ssrcId)
        {
            ResponseStruct rs;
            var            ret = SipServerService.StopLiveVideo(taskId, ssrcId, out rs);

            if (!rs.Code.Equals(ErrorNumber.None))
            {
                throw new AkStreamException(rs);
            }

            return(ret);
        }