public class LiveChannelStateServiceImpl extends LiveBaseService implements ILiveChannelStateService
ERROR_INFO, ERROR_PREFIX, ERROR_PREFIX1, ERROR_SUFFIX| 构造器和说明 |
|---|
LiveChannelStateServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
cutoffChannelStream(LiveCutoffChannelStreamRequest liveCutoffChannelStreamRequest)
禁止直播频道推流
API地址:https://dev.polyv.net/2019/liveproduct/l-api/zbglgn/hqzbxx/banpush/
|
LiveChannelStreamInfoResponse |
getChannelStreamInfo(LiveChannelStreamInfoRequest liveChannelStreamInfoRequest)
查询频道实时推流信息(讲师未进入直播间或未开启上课等情况,将抛出"channel status not live"异常),
API地址:https://dev.polyv.net/2019/liveproduct/l-api/zbglgn/hqzbxx/get-stream-info/
|
List<LiveGetStreamsResponse> |
getStreams(LiveGetStreamsRequest liveGetStreamsRequest)
批量查询频道直播流信息
API地址:https://help.polyv.net/#/live/api/channel/state/get_streams
|
LiveListChannelStreamStatusResponse |
listChannelLiveStream(LiveListChannelStreamStatusRequest liveListChannelStreamStatusRequest)
已过时。
|
List<LiveListChannelStreamStatusV2Response> |
listChannelLiveStreamV2(LiveListChannelStreamStatusV2Request liveListChannelStreamStatusV2Request)
批量查询频道直播状态
API地址:https://help.polyv.net/#/live/api/v4/channel/get_all_live_status_list
|
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/
|
getReturnBinary, getReturnList, getReturnOne, postEmptyFormBodyReturnOne, postFormBodyReturnList, postFormBodyReturnOne, postJsonBodyReturnList, postJsonBodyReturnOne, postJsonBodyReturnOne, postJsonBodyReturnOne, responseConversion, uploadMultipartFile, uploadOneFilepublic Boolean resumeChannelStream(LiveResumeChannelStreamRequest liveResumeChannelStreamRequest) throws IOException, NoSuchAlgorithmException
resumeChannelStream 在接口中 ILiveChannelStateServiceliveResumeChannelStreamRequest - 恢复直播频道推流请求体IOException - 异常NoSuchAlgorithmException - 异常public Boolean cutoffChannelStream(LiveCutoffChannelStreamRequest liveCutoffChannelStreamRequest) throws IOException, NoSuchAlgorithmException
cutoffChannelStream 在接口中 ILiveChannelStateServiceliveCutoffChannelStreamRequest - 禁止直播频道推流请求实体IOException - 异常NoSuchAlgorithmException - 异常@Deprecated public LiveListChannelStreamStatusResponse listChannelLiveStream(LiveListChannelStreamStatusRequest liveListChannelStreamStatusRequest) throws IOException, NoSuchAlgorithmException
ILiveChannelStateService.listChannelLiveStreamV2(LiveListChannelStreamStatusV2Request)
API地址:https://dev.polyv.net/2017/liveproduct/l-api/zbglgn/hqzbxx/live-status/listChannelLiveStream 在接口中 ILiveChannelStateServiceliveListChannelStreamStatusRequest - 批量查询频道直播流状态请求实体IOException - 异常NoSuchAlgorithmException - 异常public LiveChannelStreamInfoResponse getChannelStreamInfo(LiveChannelStreamInfoRequest liveChannelStreamInfoRequest) throws IOException, NoSuchAlgorithmException
getChannelStreamInfo 在接口中 ILiveChannelStateServiceliveChannelStreamInfoRequest - 查询频道实时推流信息请求实体IOException - 异常NoSuchAlgorithmException - 异常public Boolean setChannelStreamLive(LiveChannelStreamLiveRequest liveChannelStreamLiveRequest) throws IOException, NoSuchAlgorithmException
setChannelStreamLive 在接口中 ILiveChannelStateServiceliveChannelStreamLiveRequest - 设置频道流状态为直播中请求实体IOException - 异常NoSuchAlgorithmException - 异常public Boolean setChannelStreamEnd(LiveChannelStreamEndRequest liveChannelStreamEndRequest) throws IOException, NoSuchAlgorithmException
setChannelStreamEnd 在接口中 ILiveChannelStateServiceliveChannelStreamEndRequest - 设置频道为无直播状态设置频道为无直播状态请求实体IOException - 异常NoSuchAlgorithmException - 异常public List<LiveListChannelStreamStatusV2Response> listChannelLiveStreamV2(LiveListChannelStreamStatusV2Request liveListChannelStreamStatusV2Request) throws IOException, NoSuchAlgorithmException
listChannelLiveStreamV2 在接口中 ILiveChannelStateServiceliveListChannelStreamStatusV2Request - 批量查询频道直播状态请求实体IOException - 异常NoSuchAlgorithmException - 异常public List<LiveGetStreamsResponse> getStreams(LiveGetStreamsRequest liveGetStreamsRequest) throws IOException, NoSuchAlgorithmException
getStreams 在接口中 ILiveChannelStateServiceliveGetStreamsRequest - 批量查询频道直播流信息请求实体IOException - 异常NoSuchAlgorithmException - 异常Copyright © 2023. All rights reserved.