public MediaServerStreamInfo LiveVideo( [FromHeader(Name = "AccessKey")] string AccessKey, string deviceId, string channelId, ushort?rtpPort = 0) { ResponseStruct rs; var ret = SipServerService.LiveVideo(deviceId, channelId, out rs, rtpPort); if (!rs.Code.Equals(ErrorNumber.None)) { throw new AkStreamException(rs); } return(ret); }
public MediaServerStreamInfo HistroyVideo( [FromHeader(Name = "AccessKey")] string AccessKey, int taskId, string ssrcId) { ResponseStruct rs; var ret = SipServerService.LiveVideo(taskId, ssrcId, out rs); if (!rs.Code.Equals(ErrorNumber.None)) { throw new AkStreamException(rs); } return(ret); }