net.polyv.live.v1.service.channel
接口 ILiveChannelStateService

所有已知实现类:
LiveChannelStateServiceImpl

public interface ILiveChannelStateService

直播直播状态接口


方法摘要
 Boolean cutoffChannelStream(LiveCutoffChannelStreamRequest liveCutoffChannelStreamRequest)
          禁止直播频道推流 API地址:https://dev.polyv.net/2019/liveproduct/l-api/zbglgn/hqzbxx/banpush/
 LiveChannelStreamInfoResponse getChannelStreamInfo(LiveChannelStreamInfoRequest liveChannelStreamInfoRequest)
          查询频道实时推流信息 API地址:https://dev.polyv.net/2019/liveproduct/l-api/zbglgn/hqzbxx/get-stream-info/
 LiveListChannelStreamStatusResponse listChannelLiveStream(LiveListChannelStreamStatusRequest liveListChannelStreamStatusRequest)
          批量查询频道直播流状态 API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/live-status/
 Boolean resumeChannelStream(LiveResumeChannelStreamRequest liveResumeChannelStreamRequest)
          恢复直播频道推流 API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/resume/
 Boolean setChannelStreamEnd(LiveChannelStreamEndRequest liveChannelStreamEndRequest)
          设置频道为无直播状态 API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/set-channal-status-end/
 Boolean setChannelStreamLive(LiveChannelStreamLiveRequest liveChannelStreamLiveRequest)
          设置频道流状态为直播中 API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/live/
 

方法详细信息

resumeChannelStream

Boolean resumeChannelStream(LiveResumeChannelStreamRequest liveResumeChannelStreamRequest)
                            throws IOException,
                                   NoSuchAlgorithmException
恢复直播频道推流 API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/resume/

参数:
liveResumeChannelStreamRequest - 恢复直播频道推流请求体
返回:
恢复直播频道推流返回体,success为成功
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

cutoffChannelStream

Boolean cutoffChannelStream(LiveCutoffChannelStreamRequest liveCutoffChannelStreamRequest)
                            throws IOException,
                                   NoSuchAlgorithmException
禁止直播频道推流 API地址:https://dev.polyv.net/2019/liveproduct/l-api/zbglgn/hqzbxx/banpush/

参数:
liveCutoffChannelStreamRequest - 禁止直播频道推流请求实体
返回:
禁止直播频道推流返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

listChannelLiveStream

LiveListChannelStreamStatusResponse listChannelLiveStream(LiveListChannelStreamStatusRequest liveListChannelStreamStatusRequest)
                                                          throws IOException,
                                                                 NoSuchAlgorithmException
批量查询频道直播流状态 API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/live-status/

参数:
liveListChannelStreamStatusRequest - 批量查询频道直播流状态请求实体
返回:
批量查询频道直播流状态返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

getChannelStreamInfo

LiveChannelStreamInfoResponse getChannelStreamInfo(LiveChannelStreamInfoRequest liveChannelStreamInfoRequest)
                                                   throws IOException,
                                                          NoSuchAlgorithmException
查询频道实时推流信息 API地址:https://dev.polyv.net/2019/liveproduct/l-api/zbglgn/hqzbxx/get-stream-info/

参数:
liveChannelStreamInfoRequest - 查询频道实时推流信息请求实体
返回:
查询频道实时推流信息返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

setChannelStreamLive

Boolean setChannelStreamLive(LiveChannelStreamLiveRequest liveChannelStreamLiveRequest)
                             throws IOException,
                                    NoSuchAlgorithmException
设置频道流状态为直播中 API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/live/

参数:
liveChannelStreamLiveRequest - 设置频道流状态为直播中请求实体
返回:
设置频道流状态为直播中返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

setChannelStreamEnd

Boolean setChannelStreamEnd(LiveChannelStreamEndRequest liveChannelStreamEndRequest)
                            throws IOException,
                                   NoSuchAlgorithmException
设置频道为无直播状态 API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/set-channal-status-end/

参数:
liveChannelStreamEndRequest - 设置频道为无直播状态设置频道为无直播状态请求实体
返回:
设置频道为无直播状态返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常


Copyright © 2020. All Rights Reserved.