com.baidubce.services.lss
Class LssClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.lss.LssClient

public class LssClient
extends AbstractBceClient

Client for accessing Live Streaming Service. All service calls made using this client are blocking, and will not return until the service call completes.


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
LssClient()
          Constructs a new Lss client.
LssClient(BceClientConfiguration clientConfiguration)
          Constructs a new client using the client configuration.
 
Method Summary
 CreatePresetResponse createForwardOnlyPreset(String name, String description, Hls hls, Rtmp rtmp, LiveThumbnail thumbnail, Watermarks watermarks)
          Create a live preset which contains parameters needed in the live stream service, and in forward only mode, in which the input stream's resolution ratio and code rate will be kept unchanged.
 CreateNotificationResponse createNotification(CreateNotificationRequest request)
          Create a live notification in the live stream service.
 CreateNotificationResponse createNotification(String name, String endpoint)
          Create a live notification in the live stream service.
 CreatePresetResponse createPreset(CreatePresetRequest request)
          Create a live preset which contains parameters needed in the live stream service.
 CreatePresetResponse createPreset(String name, String description, Audio audio, Video video, Hls hls, Rtmp rtmp, LiveThumbnail thumbnail, Watermarks watermarks)
          Create a live preset which contains parameters needed in the live stream service, and not in forward only mode, so that the input stream will be transcoded according to audio and video parameters.
 CreateSessionResponse createSession(CreateSessionRequest request)
          Create a live session in the live stream service.
 CreateSessionResponse createSession(String description, List<String> presets, String notification, String securityPolicy, String recording, LivePublishInfo publish)
          Create a live session in the live stream service.
 CreateSessionResponse createSession(String description, List<String> presets, String notification, String securityPolicy, String recording, LivePublishInfo publish, String thumbnail, Watermarks watermarks)
          Create a live session in the live stream service.
 CreateSessionResponse createSession(String description, String preset, String notification, String securityPolicy, String recording, LivePublishInfo publish)
          Create a live session in the live stream service.
 CreateStreamResponse createStream(CreateStreamRequest request)
          Create a domain stream in the live stream service.
 CreateStreamResponse createStream(String playDomain, String app, String pushStream)
          Create a domain stream in the live stream service.
 DeleteNotificationResponse deleteNotification(DeleteNotificationRequest request)
          Delete your live notification by live notification name.
 DeleteNotificationResponse deleteNotification(String name)
          Delete your live notification by live notification name.
 DeletePresetResponse deletePreset(DeletePresetRequest request)
          Delete your live presets by live preset name.
 DeletePresetResponse deletePreset(String name)
          Delete your live presets by live preset name.
 DeleteSessionResponse deleteSession(DeleteSessionRequest request)
          Delete your live session by live session id.
 DeleteSessionResponse deleteSession(String sessionId)
          Delete your live session by live session id.
 void deleteStream(DeleteStreamRequest request)
          Delete stream in live stream service
 void deleteStream(String domain, String app, String stream)
          Delete stream in live stream service
 GetAllDomainsBandwidthResponse getAllDomainsBandwidth(GetAllDomainsStatisticsRequest request)
          get all domains' bandwidth statistics in the live stream service.
 GetAllDomainsPlayCountResponse getAllDomainsPlayCount(GetAllDomainsStatisticsRequest request)
          get all domains' total play count statistics in the live stream service.
 GetAllDomainsTrafficResponse getAllDomainsTraffic(GetAllDomainsStatisticsRequest request)
          get all domains' traffic statistics in the live stream service.
 GetDomainStatisticsResponse getDomainStatistics(GetDomainStatisticsRequest request)
          get domain's statistics in the live stream service.
 GetDomainStatisticsResponse getDomainStatistics(String domain)
          Get domain's statistics in the live stream service.
 GetDomainSummaryStatisticsResponse getDomainSummaryStatistics(GetDomainSummaryStatisticsRequest request)
          get all domains' summary statistics in the live stream service.
 GetDomainSummaryStatisticsResponse getDomainSummaryStatistics(String startTime, String endTime)
          get all domains' summary statistics in the live stream service.
 GetNotificationResponse getNotification(GetNotificationRequest request)
          Get your live notification by live notification name.
 GetNotificationResponse getNotification(String name)
          Get your live notification by live notification name.
 GetOneDomainBandwidthResponse getOneDomainBandwidth(GetOneDomainStatisticsRequest request)
          get one domain's bandwidth statistics in the live stream service.
 GetOneDomainPlayCountResponse getOneDomainPlayCount(GetOneDomainStatisticsRequest request)
          get one domain's play count statistics in the live stream service.
 GetOneDomainTrafficResponse getOneDomainTraffic(GetOneDomainStatisticsRequest request)
          get one domain's traffic statistics in the live stream service.
 GetPresetResponse getPreset(GetPresetRequest request)
          Get your live preset by live preset name.
 GetPresetResponse getPreset(String name)
          Get your live preset by live preset name.
 GetRecordingResponse getRecording(String recording)
          Get your live recording preset by live recording preset name.
 GetSecurityPolicyResponse getSecurityPolicy(GetSecurityPolicyRequest request)
          Get your live security policy by live security policy name.
 GetSecurityPolicyResponse getSecurityPolicy(String name)
          Get your live security policy by live security policy name.
 GetSessionResponse getSession(GetSessionRequest request)
          Get your live session by live session id.
 GetSessionResponse getSession(String sessionId)
          Get your live session by live session id.
 GetSessionSourceInfoResponse getSessionSourceInfo(String sessionId)
          Get your live session source info by live session id.
 GetSessionStatisticsResponse getSessionStatistics(GetSessionStatisticsRequest request)
          Returns the session statistics.
 GetSessionStatisticsResponse getSessionStatistics(String sessionId, String startDate, String endDate, Boolean aggregate)
          Returns the session statistics.
 GetSessionResponse getSessionWithToken(String sessionId, Integer timeoutInMinute)
          Get your live session with token by live session id.
 GetStreamResponse getStream(GetStreamRequest request)
          Get detail of stream in the live stream service.
 GetStreamResponse getStream(String domain, String app, String stream)
          Get detail of stream in the live stream service.
 GetStreamSourceInfoResponse getStreamSourceInfo(String domain, String app, String stream)
          Get your live stream source info by live stream tuple (domain, app, stream).
 GetStreamStatisticsResponse getStreamStatistics(GetStreamStatisticsRequest request)
          get a domain's all streams statistics in the live stream service.
 InsertCuePointResponse insertCuePoint(InsertCuePointRequest request)
          Insert a cue point into your live session by live session id.
 InsertCuePointResponse insertCuePoint(String sessionId, String callback, Map<String,String> arguments)
          Insert a cue point into your live session by live session id.
 ListAppResponse listApp()
          list all your apps
 ListAppResponse listApp(ListAppRequest request)
          list all your apps
 ListAppStreamsResponse listAppStreams(ListAppStreamsRequest request)
          list your streams by app name and stream status
 ListAppStreamsResponse listAppStreams(String app)
          list your streams by app name
 ListAppStreamsResponse listAppStreams(String app, String status)
          list your streams by app name and stream status
 ListDomainAppResponse listDomainApp(ListDomainAppRequest request)
          List a domain's app in the live stream service.
 ListDomainAppResponse listDomainApp(String playDomain)
          List a domain's streams in the live stream service.
 ListDomainStatisticsResponse listDomainStatistics(ListDomainStatisticsRequest request)
          list domain's statistics in the live stream service.
 ListNotificationsResponse listNotifications()
          List all your live notifications.
 ListPresetsResponse listPresets()
          List all your live presets.
 ListRealtimeStreamStatisticsResponse listRealTimeStreamStatistics(ListRealtimeStreamStatisticsRequest request)
           
 ListRealtimeStreamStatisticsResponse listRealTimeStreamStatistics(String playDomain, String app)
           
 ListRecordingsResponse listRecordings()
          List all your live recording presets.
 ListSecurityPoliciesResponse listSecurityPolicies()
          List all your live security policys.
 ListSessionsResponse listSessions()
          List all your live sessions.
 ListSessionsResponse listSessions(ListSessionsRequest request)
          List all your live sessions.
 ListSessionsResponse listSessions(String status)
          List all your live sessions with given status.
 ListStreamResponse listStream(ListStreamRequest request)
          List a domain's streams in the live stream service.
 ListStreamResponse listStream(String playDomain)
          List a domain's streams in the live stream service.
 ListStreamStatisticsResponse listStreamStatistics(ListStreamStatisticsRequest request)
          list domain's all streams statistics in the live stream service.
 PauseAppStreamResponse pauseAppStream(PauseAppStreamRequest request)
          Pause your app stream by app name and stream name
 PauseAppStreamResponse pauseAppStream(String app, String stream)
          Pause your app stream by app name and stream name
 PauseDomainStreamResponse pauseDomainStream(PauseDomainStreamRequest request)
          pause domain's stream in the live stream service.
 PauseDomainStreamResponse pauseDomainStream(String domain, String app, String stream)
          Get detail of stream in the live stream service.
 PauseSessionResponse pauseSession(PauseSessionRequest request)
          Pause your live session by live session id.
 PauseSessionResponse pauseSession(String sessionId)
          Pause your live session by live session id.
 GetAppResponse queryApp(GetAppRequest request)
          get detail of your app by name
 GetAppResponse queryApp(String app)
          get detail of your app by name
 GetAppStreamResponse queryAppStream(GetAppStreamRequest request)
          get detail of your stream by app name and stream name
 GetAppStreamResponse queryAppStream(String app, String stream)
          get detail of your stream by app name and stream name
 RefreshSessionResponse refreshSession(RefreshSessionRequest request)
          Refresh your live session by live session id.
 RefreshSessionResponse refreshSession(String sessionId)
          Refresh your live session by live session id.
 ResumeAppStreamResponse resumeAppStream(ResumeAppStreamRequest request)
          Resume your app stream by app name and stream name
 ResumeAppStreamResponse resumeAppStream(String app, String stream)
          Resume your app stream by app name and stream name
 ResumeDomainStreamResponse resumeDomainStream(ResumeDomainStreamRequest request)
          pause domain's stream in the live stream service.
 ResumeDomainStreamResponse resumeDomainStream(String domain, String app, String stream)
          Get detail of stream in the live stream service.
 ResumeSessionResponse resumeSession(ResumeSessionRequest request)
          Resume your live session by live session id.
 ResumeSessionResponse resumeSession(String sessionId)
          Resume your live session by live session id.
 StartPullSessionResponse startPullSession(StartPullSessionRequest request)
          Start your pulling live session by live session id.
 StartPullSessionResponse startPullSession(String sessionId)
          Start your pulling live session by live session id.
 StartRecordingResponse startRecording(String sessionId, String recording)
          Start live session recording.
 StopRecordingResponse stopRecording(String sessionId)
          Stop live session recording.
 UpdateSecurityPolicyResponse updateSecurityPolicy(String name, Auth auth, AntiLeech antiLeech, Encryption encryption)
          Update your live security policy by live security policy name.
 UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request)
          Update your live security policy by live security policy name.
 void updateStreamDestinationPushUrl(String domain, String app, String stream, String destinationPushUrl)
           
 void updateStreamDestinationPushUrl(UpdateStreamDestinationPushUrlRequest request)
          Update stream destination push url in live stream service
 void updateStreamPresets(String domain, String app, String stream, Map<String,String> presets)
          Update stream's presets
 void updateStreamPresets(UpdateStreamPresetsRequest request)
          Update stream's presets in the live stream service
 void updateStreamPullUrl(String domain, String app, String stream, String pullUrl)
          Update stream's destination push url
 void updateStreamPullUrl(UpdateStreamPullUrlRequest request)
          Update stream pullUrl in live stream service
 void updateStreamRecording(String domain, String app, String stream, String recording)
          Update stream recording in live stream service
 void updateStreamRecording(UpdateStreamRecordingRequest request)
          Update stream recording in the live stream service
 void updateStreamWatermark(String domain, String app, String stream, Watermarks watermarks)
          Update stream watermark in live stream service
 void updateStreamWatermark(UpdateStreamWatermarkRequest request)
          Update stream watermarks in live stream service
 
Methods inherited from class com.baidubce.AbstractBceClient
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LssClient

public LssClient()
Constructs a new Lss client.


LssClient

public LssClient(BceClientConfiguration clientConfiguration)
Constructs a new client using the client configuration.

Parameters:
clientConfiguration - The client configuration options controlling how this client connects to Lss services (e.g. proxy settings, retry counts, etc).
Method Detail

createPreset

public CreatePresetResponse createPreset(CreatePresetRequest request)
Create a live preset which contains parameters needed in the live stream service.

Parameters:
request - The request object containing all options for creating presets.
Returns:
the response

createPreset

public CreatePresetResponse createPreset(String name,
                                         String description,
                                         Audio audio,
                                         Video video,
                                         Hls hls,
                                         Rtmp rtmp,
                                         LiveThumbnail thumbnail,
                                         Watermarks watermarks)
Create a live preset which contains parameters needed in the live stream service, and not in forward only mode, so that the input stream will be transcoded according to audio and video parameters.

Parameters:
name - The name of the new live preset.
description - The description of the new live preset
audio - Specify the audio parameters of live stream.
video - Specify the video parameters of live stream.
hls - Specify the hls parameters of live stream.
rtmp - Specify the rtmp parameters of live stream.
thumbnail - Specify the thumbnail parameters of live stream.
watermarks - Specify the watermarks parameters of live stream.
Returns:
the response

createForwardOnlyPreset

public CreatePresetResponse createForwardOnlyPreset(String name,
                                                    String description,
                                                    Hls hls,
                                                    Rtmp rtmp,
                                                    LiveThumbnail thumbnail,
                                                    Watermarks watermarks)
Create a live preset which contains parameters needed in the live stream service, and in forward only mode, in which the input stream's resolution ratio and code rate will be kept unchanged.

Parameters:
name - The name of the new live preset.
description - The description of the new live preset
hls - Specify the hls parameters of live stream.
rtmp - Specify the rtmp parameters of live stream.
thumbnail - Specify the thumbnail parameters of live stream.
watermarks - Specify the watermarks parameters of live stream.
Returns:
the response

listPresets

public ListPresetsResponse listPresets()
List all your live presets.

Returns:
The list of all your live presets

getPreset

public GetPresetResponse getPreset(String name)
Get your live preset by live preset name.

Parameters:
name - Live preset name.
Returns:
Your live preset

getPreset

public GetPresetResponse getPreset(GetPresetRequest request)
Get your live preset by live preset name.

Parameters:
request - The request object containing all parameters for getting live preset.
Returns:
Your live preset

deletePreset

public DeletePresetResponse deletePreset(String name)
Delete your live presets by live preset name.

Parameters:
name - Live preset name.
Returns:
the response

deletePreset

public DeletePresetResponse deletePreset(DeletePresetRequest request)
Delete your live presets by live preset name.

Parameters:
request - The request object containing all parameters for deleting live preset.
Returns:
the response

createSession

public CreateSessionResponse createSession(String description,
                                           String preset,
                                           String notification,
                                           String securityPolicy,
                                           String recording,
                                           LivePublishInfo publish)
Create a live session in the live stream service.

Parameters:
description - The description of the new live session.
preset - The name of the new live session.
notification - The notification of the new live session.
securityPolicy - The security policy of the new live session.
recording - The recording preset of the new live session.
publish - Specify the LivePublishInfo of live session.
Returns:
the response

createSession

public CreateSessionResponse createSession(String description,
                                           List<String> presets,
                                           String notification,
                                           String securityPolicy,
                                           String recording,
                                           LivePublishInfo publish)
Create a live session in the live stream service.

Parameters:
description - The description of the new live session.
presets - The name of the new live session.
notification - The notification of the new live session.
securityPolicy - The security policy of the new live session.
recording - The recording preset of the new live session.
publish - Specify the LivePublishInfo of live session.
Returns:
the response

createSession

public CreateSessionResponse createSession(String description,
                                           List<String> presets,
                                           String notification,
                                           String securityPolicy,
                                           String recording,
                                           LivePublishInfo publish,
                                           String thumbnail,
                                           Watermarks watermarks)
Create a live session in the live stream service.

Parameters:
description - The description of the new live session.
presets - The name of the new live session.
notification - The notification of the new live session.
securityPolicy - The security policy of the new live session.
recording - The recording preset of the new live session.
publish - Specify the LivePublishInfo of live session.
thumbnail - The thumbnail of new live session
watermarks - The watermarks of new live session
Returns:
the response

createSession

public CreateSessionResponse createSession(CreateSessionRequest request)
Create a live session in the live stream service.

Parameters:
request - The request object containing all options for creating live session.
Returns:
the response

listSessions

public ListSessionsResponse listSessions()
List all your live sessions.

Returns:
The list of all your live sessions.

listSessions

public ListSessionsResponse listSessions(String status)
List all your live sessions with given status.

Parameters:
status - Live session status.
Returns:
The list of all your live sessions.

listSessions

public ListSessionsResponse listSessions(ListSessionsRequest request)
List all your live sessions.

Parameters:
request - The request object containing all parameters for listing live sessions.
Returns:
The list of all your live sessions.

getSession

public GetSessionResponse getSession(String sessionId)
Get your live session by live session id.

Parameters:
sessionId - Live session id.
Returns:
Your live session.

getSessionWithToken

public GetSessionResponse getSessionWithToken(String sessionId,
                                              Integer timeoutInMinute)
Get your live session with token by live session id.

Parameters:
sessionId - Live session id.
timeoutInMinute - Timeout of token.
Returns:
Your live session with token.

getSession

public GetSessionResponse getSession(GetSessionRequest request)
Get your live session by live session id.

Parameters:
request - The request object containing all parameters for getting live session.
Returns:
Your live session.

deleteSession

public DeleteSessionResponse deleteSession(String sessionId)
Delete your live session by live session id.

Parameters:
sessionId - Live session id.
Returns:
the response

deleteSession

public DeleteSessionResponse deleteSession(DeleteSessionRequest request)
Delete your live session by live session id.

Parameters:
request - The request object containing all parameters for deleting live session.
Returns:
the response

pauseSession

public PauseSessionResponse pauseSession(String sessionId)
Pause your live session by live session id.

Parameters:
sessionId - Live session id.
Returns:
the response

pauseSession

public PauseSessionResponse pauseSession(PauseSessionRequest request)
Pause your live session by live session id.

Parameters:
request - The request object containing all parameters for pausing live session.
Returns:
the response

queryApp

public GetAppResponse queryApp(String app)
get detail of your app by name

Parameters:
app - app name
Returns:
the response

queryApp

public GetAppResponse queryApp(GetAppRequest request)
get detail of your app by name

Parameters:
request - The request object containing all parameters for querying app.
Returns:
the response

listApp

public ListAppResponse listApp()
list all your apps

Returns:
this object

listApp

public ListAppResponse listApp(ListAppRequest request)
list all your apps

Parameters:
request - The request object containing all parameters for list all apps.
Returns:
the response

queryAppStream

public GetAppStreamResponse queryAppStream(String app,
                                           String stream)
get detail of your stream by app name and stream name

Parameters:
app - app name
stream - stream name
Returns:
the response

queryAppStream

public GetAppStreamResponse queryAppStream(GetAppStreamRequest request)
get detail of your stream by app name and stream name

Parameters:
request - The request object containing all parameters for query app stream.
Returns:
the response

listAppStreams

public ListAppStreamsResponse listAppStreams(String app,
                                             String status)
list your streams by app name and stream status

Parameters:
app - app name
status - stream status
Returns:
the response

listAppStreams

public ListAppStreamsResponse listAppStreams(String app)
list your streams by app name

Parameters:
app - app name
Returns:
the response

listAppStreams

public ListAppStreamsResponse listAppStreams(ListAppStreamsRequest request)
list your streams by app name and stream status

Parameters:
request - The request object containing all parameters for list app streams.
Returns:
this object

pauseAppStream

public PauseAppStreamResponse pauseAppStream(String app,
                                             String stream)
Pause your app stream by app name and stream name

Parameters:
app - app name
stream - stream name
Returns:
the response

pauseAppStream

public PauseAppStreamResponse pauseAppStream(PauseAppStreamRequest request)
Pause your app stream by app name and stream name

Parameters:
request - The request object containing all parameters for pausing app session.
Returns:
the response

resumeSession

public ResumeSessionResponse resumeSession(String sessionId)
Resume your live session by live session id.

Parameters:
sessionId - Live session id.
Returns:
the response

resumeSession

public ResumeSessionResponse resumeSession(ResumeSessionRequest request)
Resume your live session by live session id.

Parameters:
request - The request object containing all parameters for resuming live session.
Returns:
the response

resumeAppStream

public ResumeAppStreamResponse resumeAppStream(String app,
                                               String stream)
Resume your app stream by app name and stream name

Parameters:
app - app name
stream - stream name
Returns:
the response

resumeAppStream

public ResumeAppStreamResponse resumeAppStream(ResumeAppStreamRequest request)
Resume your app stream by app name and stream name

Parameters:
request - The request object containing all parameters for resuming app session.
Returns:
the response

refreshSession

public RefreshSessionResponse refreshSession(String sessionId)
Refresh your live session by live session id.

Parameters:
sessionId - Live session id.
Returns:
the response

refreshSession

public RefreshSessionResponse refreshSession(RefreshSessionRequest request)
Refresh your live session by live session id.

Parameters:
request - The request object containing all parameters for refreshing live session.
Returns:
the response

startPullSession

public StartPullSessionResponse startPullSession(String sessionId)
Start your pulling live session by live session id.

Parameters:
sessionId - Live session id.
Returns:
the response

startPullSession

public StartPullSessionResponse startPullSession(StartPullSessionRequest request)
Start your pulling live session by live session id.

Parameters:
request - The request object containing all parameters for starting pulling live session.
Returns:
the response

startRecording

public StartRecordingResponse startRecording(String sessionId,
                                             String recording)
Start live session recording.

Parameters:
sessionId - Live session id.
recording - Live recording preset name.
Returns:
the response

stopRecording

public StopRecordingResponse stopRecording(String sessionId)
Stop live session recording.

Parameters:
sessionId - Live session id.
Returns:
the response

getSessionSourceInfo

public GetSessionSourceInfoResponse getSessionSourceInfo(String sessionId)
Get your live session source info by live session id.

Parameters:
sessionId - Live session id.
Returns:
Your live session source info

getStreamSourceInfo

public GetStreamSourceInfoResponse getStreamSourceInfo(String domain,
                                                       String app,
                                                       String stream)
Get your live stream source info by live stream tuple (domain, app, stream).

Parameters:
domain - live stream play domain
app - live stream app
stream - live stream name
Returns:
Live stream source info response

insertCuePoint

public InsertCuePointResponse insertCuePoint(String sessionId,
                                             String callback,
                                             Map<String,String> arguments)
Insert a cue point into your live session by live session id.

Parameters:
sessionId - Live session id.
callback - Call back method name.
arguments - Call back method arguments.
Returns:
the response

insertCuePoint

public InsertCuePointResponse insertCuePoint(InsertCuePointRequest request)
Insert a cue point into your live session by live session id.

Parameters:
request - The request object containing all parameters for inserting a cue point into session.
Returns:
the response

getRecording

public GetRecordingResponse getRecording(String recording)
Get your live recording preset by live recording preset name.

Parameters:
recording - Live recording preset name.
Returns:
Your live recording preset

listRecordings

public ListRecordingsResponse listRecordings()
List all your live recording presets.

Returns:
The list of all your live recording preset.

listNotifications

public ListNotificationsResponse listNotifications()
List all your live notifications.

Returns:
The list of all your live notifications

deleteNotification

public DeleteNotificationResponse deleteNotification(String name)
Delete your live notification by live notification name.

Parameters:
name - Live notification name.
Returns:
the response

deleteNotification

public DeleteNotificationResponse deleteNotification(DeleteNotificationRequest request)
Delete your live notification by live notification name.

Parameters:
request - The request object containing all parameters for deleting live notification.
Returns:
the response

getNotification

public GetNotificationResponse getNotification(String name)
Get your live notification by live notification name.

Parameters:
name - Live notification name.
Returns:
Your live notification.

getNotification

public GetNotificationResponse getNotification(GetNotificationRequest request)
Get your live notification by live notification name.

Parameters:
request - The request object containing all parameters for getting live notification.
Returns:
Your live notification.

createNotification

public CreateNotificationResponse createNotification(String name,
                                                     String endpoint)
Create a live notification in the live stream service.

Parameters:
name - The name of notification.
endpoint - The address to receive notification message.
Returns:
the response

createNotification

public CreateNotificationResponse createNotification(CreateNotificationRequest request)
Create a live notification in the live stream service.

Parameters:
request - The request object containing all options for creating live notification.
Returns:
the response

listSecurityPolicies

public ListSecurityPoliciesResponse listSecurityPolicies()
List all your live security policys.

Returns:
The list of all your live security policys

getSecurityPolicy

public GetSecurityPolicyResponse getSecurityPolicy(String name)
Get your live security policy by live security policy name.

Parameters:
name - Live security policy name.
Returns:
Your live security policy.

getSecurityPolicy

public GetSecurityPolicyResponse getSecurityPolicy(GetSecurityPolicyRequest request)
Get your live security policy by live security policy name.

Parameters:
request - The request object containing all parameters for getting live security policy.
Returns:
Your live security policy.

updateSecurityPolicy

public UpdateSecurityPolicyResponse updateSecurityPolicy(String name,
                                                         Auth auth,
                                                         AntiLeech antiLeech,
                                                         Encryption encryption)
Update your live security policy by live security policy name.

Parameters:
name - Live security policy name.
auth - Configuration for authentication.
antiLeech - Configuration for anti-leech.
encryption - Configuration for encryption.
Returns:
the response

updateSecurityPolicy

public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request)
Update your live security policy by live security policy name.

Parameters:
request - The request object containing all parameters for updating live security policy.
Returns:
the response

getSessionStatistics

public GetSessionStatisticsResponse getSessionStatistics(String sessionId,
                                                         String startDate,
                                                         String endDate,
                                                         Boolean aggregate)
Returns the session statistics.

Parameters:
sessionId - the session id
startDate - the start date
endDate - the end date
aggregate - true if the result should be aggregated
Returns:
the response

getSessionStatistics

public GetSessionStatisticsResponse getSessionStatistics(GetSessionStatisticsRequest request)
Returns the session statistics.

Parameters:
request - the request
Returns:
the response

createStream

public CreateStreamResponse createStream(CreateStreamRequest request)
Create a domain stream in the live stream service.

Parameters:
request - The request object containing all options for creating domain stream
Returns:
the response

createStream

public CreateStreamResponse createStream(String playDomain,
                                         String app,
                                         String pushStream)
Create a domain stream in the live stream service.

Parameters:
playDomain - The domain which this stream belongs to
app - The app which this stream belongs to, may not exist when create stream
pushStream, - name of this stream
Returns:
the response

listStream

public ListStreamResponse listStream(ListStreamRequest request)
List a domain's streams in the live stream service.

Parameters:
request - The request object containing all options for listing domain's streams
Returns:
the response

listStream

public ListStreamResponse listStream(String playDomain)
List a domain's streams in the live stream service.

Parameters:
playDomain - The requested domain
Returns:
the response

listDomainApp

public ListDomainAppResponse listDomainApp(ListDomainAppRequest request)
List a domain's app in the live stream service.

Parameters:
request - The request object containing all options for listing domain's app
Returns:
the response

listDomainApp

public ListDomainAppResponse listDomainApp(String playDomain)
List a domain's streams in the live stream service.

Parameters:
playDomain - The requested domain name
Returns:
the response

getStream

public GetStreamResponse getStream(GetStreamRequest request)
Get detail of stream in the live stream service.

Parameters:
request - The request object containing all options for querying detail of stream
Returns:
the response

getStream

public GetStreamResponse getStream(String domain,
                                   String app,
                                   String stream)
Get detail of stream in the live stream service.

Parameters:
domain - The requested domain
app - The requested app
stream - The requested stream
Returns:
the response

pauseDomainStream

public PauseDomainStreamResponse pauseDomainStream(PauseDomainStreamRequest request)
pause domain's stream in the live stream service.

Parameters:
request - The request object containing all options for pause a domain's stream
Returns:
the response

pauseDomainStream

public PauseDomainStreamResponse pauseDomainStream(String domain,
                                                   String app,
                                                   String stream)
Get detail of stream in the live stream service.

Parameters:
domain - The requested domain which the specific stream belongs to
app - The requested app which the specific stream belongs to
stream - The requested stream to pause
Returns:
the response

resumeDomainStream

public ResumeDomainStreamResponse resumeDomainStream(ResumeDomainStreamRequest request)
pause domain's stream in the live stream service.

Parameters:
request - The request object containing all options for pause a domain's stream
Returns:
the response

resumeDomainStream

public ResumeDomainStreamResponse resumeDomainStream(String domain,
                                                     String app,
                                                     String stream)
Get detail of stream in the live stream service.

Parameters:
domain - The requested domain which the specific stream belongs to
app - The requested app which the specific stream belongs to
stream - The requested stream to resume
Returns:
the response

deleteStream

public void deleteStream(DeleteStreamRequest request)
Delete stream in live stream service

Parameters:
request - The request object contains all info to decide which stream to delete

deleteStream

public void deleteStream(String domain,
                         String app,
                         String stream)
Delete stream in live stream service

Parameters:
domain - The requested domain which the specific stream belongs to
app - The requested app which the specific stream belongs to
stream - The requested stream to delete

updateStreamPresets

public void updateStreamPresets(UpdateStreamPresetsRequest request)
Update stream's presets in the live stream service

Parameters:
request - THe request object containing all options for updating presets

updateStreamPresets

public void updateStreamPresets(String domain,
                                String app,
                                String stream,
                                Map<String,String> presets)
Update stream's presets

Parameters:
domain - The requested domain which the specific stream belongs to
app - The requested app which the specific stream belongs to
stream - The requested stream which need to update the presets
presets - The new presets is setting to the specific stream; it's a map, and key is line number, and value is preset name

updateStreamRecording

public void updateStreamRecording(UpdateStreamRecordingRequest request)
Update stream recording in the live stream service

Parameters:
request - The request object containing all options for updating recording

updateStreamRecording

public void updateStreamRecording(String domain,
                                  String app,
                                  String stream,
                                  String recording)
Update stream recording in live stream service

Parameters:
domain - The requested domain which the specific stream belongs to
app - The requested app which the specific stream belongs to
stream - The requested stream which need to update the recording
recording - The new recording's name

updateStreamWatermark

public void updateStreamWatermark(UpdateStreamWatermarkRequest request)
Update stream watermarks in live stream service

Parameters:
request - The request object containing all options for updating watermark

updateStreamWatermark

public void updateStreamWatermark(String domain,
                                  String app,
                                  String stream,
                                  Watermarks watermarks)
Update stream watermark in live stream service

Parameters:
domain - The requested domain which the specific stream belongs to
app - The requested app which the specific stream belongs to
stream - The requested stream which need to update the watermark
watermarks - object of the new watermark, contains image watermark and timestamp watermark

updateStreamPullUrl

public void updateStreamPullUrl(UpdateStreamPullUrlRequest request)
Update stream pullUrl in live stream service

Parameters:
request - The request object containing all options for updating pull url

updateStreamPullUrl

public void updateStreamPullUrl(String domain,
                                String app,
                                String stream,
                                String pullUrl)
Update stream's destination push url

Parameters:
domain - The requested domain which the specific stream belongs to
app - The requested app which the specific stream belongs to
stream - The requested stream which need to update pull url
pullUrl - The new pull url is setting to this specific stream

updateStreamDestinationPushUrl

public void updateStreamDestinationPushUrl(UpdateStreamDestinationPushUrlRequest request)
Update stream destination push url in live stream service

Parameters:
request - The request object containing all options for updating destination push url

updateStreamDestinationPushUrl

public void updateStreamDestinationPushUrl(String domain,
                                           String app,
                                           String stream,
                                           String destinationPushUrl)
Parameters:
domain - The requested domain which the specific stream belongs to
app - The requested app which the specific stream belongs to
stream - The requested stream which need to update destination push url
destinationPushUrl - The new destination push url

getDomainStatistics

public GetDomainStatisticsResponse getDomainStatistics(GetDomainStatisticsRequest request)
get domain's statistics in the live stream service.

Parameters:
request - The request object containing all options for getting domain's statistics
Returns:
the response

getDomainStatistics

public GetDomainStatisticsResponse getDomainStatistics(String domain)
Get domain's statistics in the live stream service.

Parameters:
domain - The requested domain
Returns:
the response

getDomainSummaryStatistics

public GetDomainSummaryStatisticsResponse getDomainSummaryStatistics(GetDomainSummaryStatisticsRequest request)
get all domains' summary statistics in the live stream service.

Parameters:
request - The request object containing all options for getting all domains' summary statistics
Returns:
the response

getDomainSummaryStatistics

public GetDomainSummaryStatisticsResponse getDomainSummaryStatistics(String startTime,
                                                                     String endTime)
get all domains' summary statistics in the live stream service.

Parameters:
startTime - start time
endTime - start time
Returns:
the response

getAllDomainsPlayCount

public GetAllDomainsPlayCountResponse getAllDomainsPlayCount(GetAllDomainsStatisticsRequest request)
get all domains' total play count statistics in the live stream service.

Parameters:
request - The request object containing all options for getting all domains' play count statistics
Returns:
the response

getOneDomainPlayCount

public GetOneDomainPlayCountResponse getOneDomainPlayCount(GetOneDomainStatisticsRequest request)
get one domain's play count statistics in the live stream service.

Parameters:
request - The request object containing all options for getting one domain's play count statistics
Returns:
the response

getAllDomainsBandwidth

public GetAllDomainsBandwidthResponse getAllDomainsBandwidth(GetAllDomainsStatisticsRequest request)
get all domains' bandwidth statistics in the live stream service.

Parameters:
request - The request object containing all options for getting all domains' total bandwidth statistics
Returns:
the response

getOneDomainBandwidth

public GetOneDomainBandwidthResponse getOneDomainBandwidth(GetOneDomainStatisticsRequest request)
get one domain's bandwidth statistics in the live stream service.

Parameters:
request - The request object containing all options for getting one domain's bandwidth statistics
Returns:
the response

getAllDomainsTraffic

public GetAllDomainsTrafficResponse getAllDomainsTraffic(GetAllDomainsStatisticsRequest request)
get all domains' traffic statistics in the live stream service.

Parameters:
request - The request object containing all options for getting all domains' total traffic statistics
Returns:
the response

getOneDomainTraffic

public GetOneDomainTrafficResponse getOneDomainTraffic(GetOneDomainStatisticsRequest request)
get one domain's traffic statistics in the live stream service.

Parameters:
request - The request object containing all options for getting one domain's traffic statistics
Returns:
the response

listDomainStatistics

public ListDomainStatisticsResponse listDomainStatistics(ListDomainStatisticsRequest request)
list domain's statistics in the live stream service.

Parameters:
request - The request object containing all options for listing domain's traffic statistics
Returns:
the response

listStreamStatistics

public ListStreamStatisticsResponse listStreamStatistics(ListStreamStatisticsRequest request)
list domain's all streams statistics in the live stream service.

Parameters:
request - The request object containing all options for listing domain's all streams traffic statistics
Returns:
the response

getStreamStatistics

public GetStreamStatisticsResponse getStreamStatistics(GetStreamStatisticsRequest request)
get a domain's all streams statistics in the live stream service.

Parameters:
request - The request object containing all options for getting a domain's all streams
Returns:
the response

listRealTimeStreamStatistics

public ListRealtimeStreamStatisticsResponse listRealTimeStreamStatistics(String playDomain,
                                                                         String app)

listRealTimeStreamStatistics

public ListRealtimeStreamStatisticsResponse listRealTimeStreamStatistics(ListRealtimeStreamStatisticsRequest request)


Copyright © 2018. All rights reserved.