public List<LiveChannel> listLiveChannels(String bucketName) throws OSSException, ClientException {
  LiveChannelListing liveChannelListing=listLiveChannels(new ListLiveChannelsRequest(bucketName));
  List<LiveChannel> liveChannels=liveChannelListing.getLiveChannels();
  while (liveChannelListing.isTruncated()) {
    liveChannelListing=listLiveChannels(new ListLiveChannelsRequest(bucketName,liveChannelListing.getNextMarker(),null));
    liveChannels.addAll(liveChannelListing.getLiveChannels());
  }
  return liveChannels;
}

public List < LiveChannel > listLiveChannels ( String bucketName ) throws OSSException , ClientException { LiveChannelListing liveChannelListing = listLiveChannels ( new ListLiveChannelsRequest ( bucketName ) ) ; List < LiveChannel > liveChannels = liveChannelListing . getLiveChannels ( ) ; while ( liveChannelListing . isTruncated ( ) ) { liveChannelListing = listLiveChannels ( new ListLiveChannelsRequest ( bucketName , liveChannelListing . getNextMarker ( ) , null ) ) ; liveChannels . addAll ( liveChannelListing . getLiveChannels ( ) ) ; } return liveChannels ; }
list all live channels .
