net.polyv.live.v1.service.channel.impl
类 LiveChannelStateServiceImpl

java.lang.Object
  继承者 net.polyv.live.v1.service.LiveBaseService
      继承者 net.polyv.live.v1.service.channel.impl.LiveChannelStateServiceImpl
所有已实现的接口:
ILiveChannelStateService

public class LiveChannelStateServiceImpl
extends LiveBaseService
implements ILiveChannelStateService

直播直播状态实现类


字段摘要
 
从类 net.polyv.live.v1.service.LiveBaseService 继承的字段
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/
 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/
 
从类 net.polyv.live.v1.service.LiveBaseService 继承的方法
baseGet, baseGetReturnArray, baseGetReturnArray, basePost, basePostJson, basePostJson, basePostJsonReturnArray, basePostReturnArray, baseUploadFile, baseUploadFileList, baseUploadFileListReturnArray
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

LiveChannelStateServiceImpl

public LiveChannelStateServiceImpl()
方法详细信息

resumeChannelStream

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

指定者:
接口 ILiveChannelStateService 中的 resumeChannelStream
参数:
liveResumeChannelStreamRequest - 恢复直播频道推流请求体
返回:
恢复直播频道推流返回体,success为成功
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

cutoffChannelStream

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

指定者:
接口 ILiveChannelStateService 中的 cutoffChannelStream
参数:
liveCutoffChannelStreamRequest - 禁止直播频道推流请求实体
返回:
禁止直播频道推流返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

listChannelLiveStream

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

指定者:
接口 ILiveChannelStateService 中的 listChannelLiveStream
参数:
liveListChannelStreamStatusRequest - 批量查询频道直播流状态请求实体
返回:
批量查询频道直播流状态返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

getChannelStreamInfo

public LiveChannelStreamInfoResponse getChannelStreamInfo(LiveChannelStreamInfoRequest liveChannelStreamInfoRequest)
                                                   throws IOException,
                                                          NoSuchAlgorithmException
查询频道实时推流信息(讲师未进入直播间或未开启上课等情况,将抛出"channel status not live"异常), API地址:https://dev.polyv.net/2019/liveproduct/l-api/zbglgn/hqzbxx/get-stream-info/

指定者:
接口 ILiveChannelStateService 中的 getChannelStreamInfo
参数:
liveChannelStreamInfoRequest - 查询频道实时推流信息请求实体
返回:
查询频道实时推流信息返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

setChannelStreamLive

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

指定者:
接口 ILiveChannelStateService 中的 setChannelStreamLive
参数:
liveChannelStreamLiveRequest - 设置频道流状态为直播中请求实体
返回:
设置频道流状态为直播中返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常

setChannelStreamEnd

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

指定者:
接口 ILiveChannelStateService 中的 setChannelStreamEnd
参数:
liveChannelStreamEndRequest - 设置频道为无直播状态设置频道为无直播状态请求实体
返回:
设置频道为无直播状态返回实体
抛出:
IOException - 异常
NoSuchAlgorithmException - 异常


Copyright © 2020. All Rights Reserved.