/// <summary> /// 查看指定域名下(或者指定域名下某个应用)的所有正在推的流的信息 /// </summary> /// <param name="userID"></param> /// <returns></returns> public List <DescribeLiveStreamsOnlineListResponse.LiveStreamOnlineInfo> GetOnlineList() { DescribeLiveStreamsOnlineListRequest request = new DescribeLiveStreamsOnlineListRequest(); request.AppName = ConfigSetting.AppName; request.Product = _ProductName; request.DomainName = ConfigSetting.DomainName; request.AcceptFormat = Aliyun.Acs.Core.Http.FormatType.JSON; DescribeLiveStreamsOnlineListResponse response = _AcsClient.GetAcsResponse(request); return(response.OnlineInfo); }
/// <summary> /// 查看指定域名下(或者指定域名下某个应用)的所有正在推的流的信息 /// </summary> /// <param name="userID"></param> /// <returns></returns> public string GetOnlineList() { Aliyun.Acs.Live.Model.V20161101.DescribeLiveStreamsOnlineListResponse.LiveStreamOnlineInfo[] list; DescribeLiveStreamsOnlineListRequest request = new DescribeLiveStreamsOnlineListRequest(); request.AppName = ConfigSetting.AppName; request.Product = _ProductName; request.DomainName = ConfigSetting.DomainName; request.AcceptFormat = Aliyun.Acs.Core.Http.FormatType.JSON; DescribeLiveStreamsOnlineListResponse response = _AcsClient.GetAcsResponse(request); return(GetString(response)); }