ICatchIStreamPublish interface
package com.icatchtek.pancam.customer.stream;public interface ICatchIStreamPublish {...}
This interface contains methods to push stream to a specified rtmp-server, such as youtobe.
Public methods
startPublishStreaming
boolean startPublishStreaming(java.lang.String rtmpUrl)throws com.icatchtek.reliant.customer.exception.IchStreamNotRunningException,com.icatchtek.reliant.customer.exception.IchStreamNotSupportException,com.icatchtek.reliant.customer.exception.IchStreamPublishException
Start publish streaming to rtmp-server
Parameters:
- rtmpUrl - The rtmpUrl which you want to push stream to.
Returns:
Operations succeed, return true, otherwise return false.
Throws:
- com.icatchtek.reliant.customer.exception.IchStreamNotRunningException - The session is closed or not prepared.
- com.icatchtek.reliant.customer.exception.IchStreamNotSupportException - The stream video or audio format is not supported
- com.icatchtek.reliant.customer.exception.IchStreamPublishException - The streaming publish state error
stopPublishStreaming
boolean stopPublishStreaming()throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,com.icatchtek.reliant.customer.exception.IchStreamNotRunningException,com.icatchtek.reliant.customer.exception.IchStreamPublishException
Stop publish streaming to rtmp-server
Returns:
Return true if no error occurred, otherwise return false.
Throws:
- com.icatchtek.reliant.customer.exception.IchInvalidArgumentException - The streaming publish flow error.
- com.icatchtek.reliant.customer.exception.IchStreamNotRunningException - The session is closed or not prepared.
- com.icatchtek.reliant.customer.exception.IchStreamPublishException - The streaming publish state error
isStreamSupportPublish
boolean isStreamSupportPublish()throws com.icatchtek.reliant.customer.exception.IchStreamNotRunningException,com.icatchtek.reliant.customer.exception.IchStreamNotSupportException
Get streaming state whether it can supported publish
Returns:
Return true if no error occurred, otherwise return false.
Throws:
- com.icatchtek.reliant.customer.exception.IchStreamNotSupportException - The streaming is not support to publish.
- com.icatchtek.reliant.customer.exception.IchStreamNotRunningException - The session is closed or not prepared.
createChannel
java.lang.String createChannel(ICatchGLCredential credential,java.lang.String resolution,java.lang.String broadCastTitle,boolean vrProjection)
Create Channel on youtube Live website.
Parameters:
- credential - credential which is defined in ICatchGLCredential
- resolution - resolution of streaming
- broadCastTitle - Title of broadcast
- vrProjection - is vr streaming
Returns:
The URL of push streaming
Throws:
- com.icatchtek.reliant.customer.exception.IchStreamNotSupportException - The streaming is not support to publish.
- com.icatchtek.reliant.customer.exception.IchStreamNotRunningException - The session is closed or not prepared.
deleteChannel
void deleteChannel()
Delete channel on youtube Live website
startLive
java.lang.String startLive()
Start Live
Returns:
the URL of shared
stopLive
void stopLive()
Stop Live
