类 LssClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- 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.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 LssClient()Constructs a new Lss client.LssClient(BceClientConfiguration clientConfiguration)Constructs a new client using the client configuration.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CreatePresetResponsecreateForwardOnlyPreset(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.CreateNotificationResponsecreateNotification(CreateNotificationRequest request)Create a live notification in the live stream service.CreateNotificationResponsecreateNotification(String name, String endpoint)Create a live notification in the live stream service.CreatePresetResponsecreatePreset(CreatePresetRequest request)Create a live preset which contains parameters needed in the live stream service.CreatePresetResponsecreatePreset(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.CreateSessionResponsecreateSession(CreateSessionRequest request)Create a live session in the live stream service.CreateSessionResponsecreateSession(String description, String preset, String notification, String securityPolicy, String recording, LivePublishInfo publish)Create a live session in the live stream service.CreateSessionResponsecreateSession(String description, List<String> presets, String notification, String securityPolicy, String recording, LivePublishInfo publish)Create a live session in the live stream service.CreateSessionResponsecreateSession(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.CreateStreamResponsecreateStream(CreateStreamRequest request)Create a domain stream in the live stream service.CreateStreamResponsecreateStream(String playDomain, String app, String pushStream)Create a domain stream in the live stream service.DeleteNotificationResponsedeleteNotification(DeleteNotificationRequest request)Delete your live notification by live notification name.DeleteNotificationResponsedeleteNotification(String name)Delete your live notification by live notification name.DeletePresetResponsedeletePreset(DeletePresetRequest request)Delete your live presets by live preset name.DeletePresetResponsedeletePreset(String name)Delete your live presets by live preset name.DeleteSessionResponsedeleteSession(DeleteSessionRequest request)Delete your live session by live session id.DeleteSessionResponsedeleteSession(String sessionId)Delete your live session by live session id.voiddeleteStream(DeleteStreamRequest request)Delete stream in live stream servicevoiddeleteStream(String domain, String app, String stream)Delete stream in live stream serviceGetAllDomainsBandwidthResponsegetAllDomainsBandwidth(GetAllDomainsStatisticsRequest request)get all domains' bandwidth statistics in the live stream service.GetAllDomainsBandwidthResponseV2getAllDomainsBandwidthV2(GetAllDomainsStatisticsRequestV2 request)get all domains' traffic statistics in the live stream service.GetAllDomainsPlayCountResponsegetAllDomainsPlayCount(GetAllDomainsStatisticsRequest request)get all domains' total play count statistics in the live stream service.GetAllDomainsTrafficResponsegetAllDomainsTraffic(GetAllDomainsStatisticsRequest request)get all domains' traffic statistics in the live stream service.GetDomainStatisticsResponsegetDomainStatistics(GetDomainStatisticsRequest request)get domain's statistics in the live stream service.GetDomainStatisticsResponsegetDomainStatistics(String domain)Get domain's statistics in the live stream service.GetDomainSummaryStatisticsResponsegetDomainSummaryStatistics(GetDomainSummaryStatisticsRequest request)get all domains' summary statistics in the live stream service.GetDomainSummaryStatisticsResponsegetDomainSummaryStatistics(String startTime, String endTime)get all domains' summary statistics in the live stream service.GetNotificationResponsegetNotification(GetNotificationRequest request)Get your live notification by live notification name.GetNotificationResponsegetNotification(String name)Get your live notification by live notification name.GetOneDomainBandwidthResponsegetOneDomainBandwidth(GetOneDomainStatisticsRequest request)get one domain's bandwidth statistics in the live stream service.GetOneDomainBandwidthResponseV2getOneDomainBandwidthV2(GetOneDomainStatisticsRequestV2 request)get one domain's traffic statistics in the live stream service.GetOneDomainPlayCountResponsegetOneDomainPlayCount(GetOneDomainStatisticsRequest request)get one domain's play count statistics in the live stream service.GetOneDomainTrafficResponsegetOneDomainTraffic(GetOneDomainStatisticsRequest request)get one domain's traffic statistics in the live stream service.GetPresetResponsegetPreset(GetPresetRequest request)Get your live preset by live preset name.GetPresetResponsegetPreset(String name)Get your live preset by live preset name.GetRecordingResponsegetRecording(String recording)Get your live recording preset by live recording preset name.GetSecurityPolicyResponsegetSecurityPolicy(GetSecurityPolicyRequest request)Get your live security policy by live security policy name.GetSecurityPolicyResponsegetSecurityPolicy(String name)Get your live security policy by live security policy name.GetSessionResponsegetSession(GetSessionRequest request)Get your live session by live session id.GetSessionResponsegetSession(String sessionId)Get your live session by live session id.GetSessionSourceInfoResponsegetSessionSourceInfo(String sessionId)Get your live session source info by live session id.GetSessionStatisticsResponsegetSessionStatistics(GetSessionStatisticsRequest request)Returns the session statistics.GetSessionStatisticsResponsegetSessionStatistics(String sessionId, String startDate, String endDate, Boolean aggregate)Returns the session statistics.GetSessionResponsegetSessionWithToken(String sessionId, Integer timeoutInMinute)Get your live session with token by live session id.GetStreamResponsegetStream(GetStreamRequest request)Get detail of stream in the live stream service.GetStreamResponsegetStream(String domain, String app, String stream)Get detail of stream in the live stream service.GetStreamSourceInfoResponsegetStreamSourceInfo(String domain, String app, String stream)Get your live stream source info by live stream tuple (domain, app, stream).GetStreamStatisticsResponsegetStreamStatistics(GetStreamStatisticsRequest request)get a domain's all streams statistics in the live stream service.InsertCuePointResponseinsertCuePoint(InsertCuePointRequest request)Insert a cue point into your live session by live session id.InsertCuePointResponseinsertCuePoint(String sessionId, String callback, Map<String,String> arguments)Insert a cue point into your live session by live session id.ListAppResponselistApp()list all your appsListAppResponselistApp(ListAppRequest request)list all your appsListAppStreamsResponselistAppStreams(ListAppStreamsRequest request)list your streams by app name and stream statusListAppStreamsResponselistAppStreams(String app)list your streams by app nameListAppStreamsResponselistAppStreams(String app, String status)list your streams by app name and stream statusListDomainAppResponselistDomainApp(ListDomainAppRequest request)List a domain's app in the live stream service.ListDomainAppResponselistDomainApp(String playDomain)List a domain's streams in the live stream service.ListDomainStatisticsResponselistDomainStatistics(ListDomainStatisticsRequest request)list domain's statistics in the live stream service.ListNotificationsResponselistNotifications()List all your live notifications.StreamingStreamResponselistOngiongStream(String playDomain)List streaming streams for requested domain.ListPresetsResponselistPresets()List all your live presets.ListRealtimeStreamStatisticsResponselistRealTimeStreamStatistics(ListRealtimeStreamStatisticsRequest request)ListRealtimeStreamStatisticsResponselistRealTimeStreamStatistics(String playDomain, String app)ListRecordingsResponselistRecordings()List all your live recording presets.ListSecurityPoliciesResponselistSecurityPolicies()List all your live security policys.ListSessionsResponselistSessions()List all your live sessions.ListSessionsResponselistSessions(ListSessionsRequest request)List all your live sessions.ListSessionsResponselistSessions(String status)List all your live sessions with given status.ListStreamResponselistStream(ListStreamRequest request)List a domain's streams in the live stream service.ListStreamResponselistStream(String playDomain)List a domain's streams in the live stream service.ListStreamStatisticsResponselistStreamStatistics(ListStreamStatisticsRequest request)list domain's all streams statistics in the live stream service.PauseAppStreamResponsepauseAppStream(PauseAppStreamRequest request)Pause your app stream by app name and stream namePauseAppStreamResponsepauseAppStream(String app, String stream)Pause your app stream by app name and stream namePauseDomainStreamResponsepauseDomainStream(PauseDomainStreamRequest request)pause domain's stream in the live stream service.PauseDomainStreamResponsepauseDomainStream(String domain, String app, String stream)Get detail of stream in the live stream service.PauseSessionResponsepauseSession(PauseSessionRequest request)Pause your live session by live session id.PauseSessionResponsepauseSession(String sessionId)Pause your live session by live session id.GetAppResponsequeryApp(GetAppRequest request)get detail of your app by nameGetAppResponsequeryApp(String app)get detail of your app by nameGetAppStreamResponsequeryAppStream(GetAppStreamRequest request)get detail of your stream by app name and stream nameGetAppStreamResponsequeryAppStream(String app, String stream)get detail of your stream by app name and stream nameRecordingClipResponserecordingClip(RecordingClipRequest request)Clip your recording file.RefreshSessionResponserefreshSession(RefreshSessionRequest request)Refresh your live session by live session id.RefreshSessionResponserefreshSession(String sessionId)Refresh your live session by live session id.ResetDomainStreamResponseresetDomainStream(ResetDomainStreamRequest request)reset domain's stream in the live stream service.ResetDomainStreamResponseresetDomainStream(String domain, String app, String stream)reset domain's stream in the live stream service.ResetDomainStreamResponseresetDomainStream(String domain, String app, String stream, Long resumeTimeInSecond)reset domain's stream in the live stream service with resume timestamp.ResumeAppStreamResponseresumeAppStream(ResumeAppStreamRequest request)Resume your app stream by app name and stream nameResumeAppStreamResponseresumeAppStream(String app, String stream)Resume your app stream by app name and stream nameResumeDomainStreamResponseresumeDomainStream(ResumeDomainStreamRequest request)pause domain's stream in the live stream service.ResumeDomainStreamResponseresumeDomainStream(String domain, String app, String stream)Get detail of stream in the live stream service.ResumeSessionResponseresumeSession(ResumeSessionRequest request)Resume your live session by live session id.ResumeSessionResponseresumeSession(String sessionId)Resume your live session by live session id.StartPullSessionResponsestartPullSession(StartPullSessionRequest request)Start your pulling live session by live session id.StartPullSessionResponsestartPullSession(String sessionId)Start your pulling live session by live session id.StartRecordingResponsestartRecording(String sessionId, String recording)Start live session recording.StopRecordingResponsestopRecording(String sessionId)Stop live session recording.UpdateSecurityPolicyResponseupdateSecurityPolicy(UpdateSecurityPolicyRequest request)Update your live security policy by live security policy name.UpdateSecurityPolicyResponseupdateSecurityPolicy(String name, Auth auth, AntiLeech antiLeech, Encryption encryption)Update your live security policy by live security policy name.voidupdateStreamDestinationPushUrl(UpdateStreamDestinationPushUrlRequest request)Update stream destination push url in live stream servicevoidupdateStreamDestinationPushUrl(String domain, String app, String stream, String destinationPushUrl)voidupdateStreamPresets(UpdateStreamPresetsRequest request)Update stream's presets in the live stream servicevoidupdateStreamPresets(String domain, String app, String stream, Map<String,String> presets)Update stream's presetsvoidupdateStreamPullUrl(UpdateStreamPullUrlRequest request)Update stream pullUrl in live stream servicevoidupdateStreamPullUrl(String domain, String app, String stream, String pullUrl)Update stream's destination push urlvoidupdateStreamRecording(UpdateStreamRecordingRequest request)Update stream recording in the live stream servicevoidupdateStreamRecording(String domain, String app, String stream, String recording)Update stream recording in live stream servicevoidupdateStreamWatermark(UpdateStreamWatermarkRequest request)Update stream watermarks in live stream servicevoidupdateStreamWatermark(String domain, String app, String stream, Watermarks watermarks)Update stream watermark in live stream service-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
LssClient
public LssClient()
Constructs a new Lss client.
-
LssClient
public LssClient(BceClientConfiguration clientConfiguration)
Constructs a new client using the client configuration.- 参数:
clientConfiguration- The client configuration options controlling how this client connects to Lss services (e.g. proxy settings, retry counts, etc).
-
-
方法详细资料
-
createPreset
public CreatePresetResponse createPreset(CreatePresetRequest request)
Create a live preset which contains parameters needed in the live stream service.- 参数:
request- The request object containing all options for creating presets.- 返回:
- 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.- 参数:
name- The name of the new live preset.description- The description of the new live presetaudio- 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.- 返回:
- 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.- 参数:
name- The name of the new live preset.description- The description of the new live presethls- 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.- 返回:
- the response
-
listPresets
public ListPresetsResponse listPresets()
List all your live presets.- 返回:
- The list of all your live presets
-
getPreset
public GetPresetResponse getPreset(String name)
Get your live preset by live preset name.- 参数:
name- Live preset name.- 返回:
- Your live preset
-
getPreset
public GetPresetResponse getPreset(GetPresetRequest request)
Get your live preset by live preset name.- 参数:
request- The request object containing all parameters for getting live preset.- 返回:
- Your live preset
-
deletePreset
public DeletePresetResponse deletePreset(String name)
Delete your live presets by live preset name.- 参数:
name- Live preset name.- 返回:
- the response
-
deletePreset
public DeletePresetResponse deletePreset(DeletePresetRequest request)
Delete your live presets by live preset name.- 参数:
request- The request object containing all parameters for deleting live preset.- 返回:
- 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.- 参数:
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.- 返回:
- 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.- 参数:
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.- 返回:
- 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.- 参数:
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 sessionwatermarks- The watermarks of new live session- 返回:
- the response
-
createSession
public CreateSessionResponse createSession(CreateSessionRequest request)
Create a live session in the live stream service.- 参数:
request- The request object containing all options for creating live session.- 返回:
- the response
-
listSessions
public ListSessionsResponse listSessions()
List all your live sessions.- 返回:
- The list of all your live sessions.
-
listSessions
public ListSessionsResponse listSessions(String status)
List all your live sessions with given status.- 参数:
status- Live session status.- 返回:
- The list of all your live sessions.
-
listSessions
public ListSessionsResponse listSessions(ListSessionsRequest request)
List all your live sessions.- 参数:
request- The request object containing all parameters for listing live sessions.- 返回:
- The list of all your live sessions.
-
getSession
public GetSessionResponse getSession(String sessionId)
Get your live session by live session id.- 参数:
sessionId- Live session id.- 返回:
- Your live session.
-
getSessionWithToken
public GetSessionResponse getSessionWithToken(String sessionId, Integer timeoutInMinute)
Get your live session with token by live session id.- 参数:
sessionId- Live session id.timeoutInMinute- Timeout of token.- 返回:
- Your live session with token.
-
getSession
public GetSessionResponse getSession(GetSessionRequest request)
Get your live session by live session id.- 参数:
request- The request object containing all parameters for getting live session.- 返回:
- Your live session.
-
deleteSession
public DeleteSessionResponse deleteSession(String sessionId)
Delete your live session by live session id.- 参数:
sessionId- Live session id.- 返回:
- the response
-
deleteSession
public DeleteSessionResponse deleteSession(DeleteSessionRequest request)
Delete your live session by live session id.- 参数:
request- The request object containing all parameters for deleting live session.- 返回:
- the response
-
pauseSession
public PauseSessionResponse pauseSession(String sessionId)
Pause your live session by live session id.- 参数:
sessionId- Live session id.- 返回:
- the response
-
pauseSession
public PauseSessionResponse pauseSession(PauseSessionRequest request)
Pause your live session by live session id.- 参数:
request- The request object containing all parameters for pausing live session.- 返回:
- the response
-
queryApp
public GetAppResponse queryApp(String app)
get detail of your app by name- 参数:
app- app name- 返回:
- the response
-
queryApp
public GetAppResponse queryApp(GetAppRequest request)
get detail of your app by name- 参数:
request- The request object containing all parameters for querying app.- 返回:
- the response
-
listApp
public ListAppResponse listApp()
list all your apps- 返回:
- this object
-
listApp
public ListAppResponse listApp(ListAppRequest request)
list all your apps- 参数:
request- The request object containing all parameters for list all apps.- 返回:
- the response
-
queryAppStream
public GetAppStreamResponse queryAppStream(String app, String stream)
get detail of your stream by app name and stream name- 参数:
app- app namestream- stream name- 返回:
- the response
-
queryAppStream
public GetAppStreamResponse queryAppStream(GetAppStreamRequest request)
get detail of your stream by app name and stream name- 参数:
request- The request object containing all parameters for query app stream.- 返回:
- the response
-
listAppStreams
public ListAppStreamsResponse listAppStreams(String app, String status)
list your streams by app name and stream status- 参数:
app- app namestatus- stream status- 返回:
- the response
-
listAppStreams
public ListAppStreamsResponse listAppStreams(String app)
list your streams by app name- 参数:
app- app name- 返回:
- the response
-
listAppStreams
public ListAppStreamsResponse listAppStreams(ListAppStreamsRequest request)
list your streams by app name and stream status- 参数:
request- The request object containing all parameters for list app streams.- 返回:
- this object
-
pauseAppStream
public PauseAppStreamResponse pauseAppStream(String app, String stream)
Pause your app stream by app name and stream name- 参数:
app- app namestream- stream name- 返回:
- the response
-
pauseAppStream
public PauseAppStreamResponse pauseAppStream(PauseAppStreamRequest request)
Pause your app stream by app name and stream name- 参数:
request- The request object containing all parameters for pausing app session.- 返回:
- the response
-
resumeSession
public ResumeSessionResponse resumeSession(String sessionId)
Resume your live session by live session id.- 参数:
sessionId- Live session id.- 返回:
- the response
-
resumeSession
public ResumeSessionResponse resumeSession(ResumeSessionRequest request)
Resume your live session by live session id.- 参数:
request- The request object containing all parameters for resuming live session.- 返回:
- the response
-
resumeAppStream
public ResumeAppStreamResponse resumeAppStream(String app, String stream)
Resume your app stream by app name and stream name- 参数:
app- app namestream- stream name- 返回:
- the response
-
resumeAppStream
public ResumeAppStreamResponse resumeAppStream(ResumeAppStreamRequest request)
Resume your app stream by app name and stream name- 参数:
request- The request object containing all parameters for resuming app session.- 返回:
- the response
-
refreshSession
public RefreshSessionResponse refreshSession(String sessionId)
Refresh your live session by live session id.- 参数:
sessionId- Live session id.- 返回:
- the response
-
refreshSession
public RefreshSessionResponse refreshSession(RefreshSessionRequest request)
Refresh your live session by live session id.- 参数:
request- The request object containing all parameters for refreshing live session.- 返回:
- the response
-
startPullSession
public StartPullSessionResponse startPullSession(String sessionId)
Start your pulling live session by live session id.- 参数:
sessionId- Live session id.- 返回:
- the response
-
startPullSession
public StartPullSessionResponse startPullSession(StartPullSessionRequest request)
Start your pulling live session by live session id.- 参数:
request- The request object containing all parameters for starting pulling live session.- 返回:
- the response
-
startRecording
public StartRecordingResponse startRecording(String sessionId, String recording)
Start live session recording.- 参数:
sessionId- Live session id.recording- Live recording preset name.- 返回:
- the response
-
stopRecording
public StopRecordingResponse stopRecording(String sessionId)
Stop live session recording.- 参数:
sessionId- Live session id.- 返回:
- the response
-
getSessionSourceInfo
public GetSessionSourceInfoResponse getSessionSourceInfo(String sessionId)
Get your live session source info by live session id.- 参数:
sessionId- Live session id.- 返回:
- 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).- 参数:
domain- live stream play domainapp- live stream appstream- live stream name- 返回:
- 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.- 参数:
sessionId- Live session id.callback- Call back method name.arguments- Call back method arguments.- 返回:
- the response
-
insertCuePoint
public InsertCuePointResponse insertCuePoint(InsertCuePointRequest request)
Insert a cue point into your live session by live session id.- 参数:
request- The request object containing all parameters for inserting a cue point into session.- 返回:
- the response
-
getRecording
public GetRecordingResponse getRecording(String recording)
Get your live recording preset by live recording preset name.- 参数:
recording- Live recording preset name.- 返回:
- Your live recording preset
-
listRecordings
public ListRecordingsResponse listRecordings()
List all your live recording presets.- 返回:
- The list of all your live recording preset.
-
recordingClip
public RecordingClipResponse recordingClip(RecordingClipRequest request)
Clip your recording file.- 参数:
The- request object containing all params for clipping recording file.- 返回:
- The details of your file clipping task;
-
listNotifications
public ListNotificationsResponse listNotifications()
List all your live notifications.- 返回:
- The list of all your live notifications
-
deleteNotification
public DeleteNotificationResponse deleteNotification(String name)
Delete your live notification by live notification name.- 参数:
name- Live notification name.- 返回:
- the response
-
deleteNotification
public DeleteNotificationResponse deleteNotification(DeleteNotificationRequest request)
Delete your live notification by live notification name.- 参数:
request- The request object containing all parameters for deleting live notification.- 返回:
- the response
-
getNotification
public GetNotificationResponse getNotification(String name)
Get your live notification by live notification name.- 参数:
name- Live notification name.- 返回:
- Your live notification.
-
getNotification
public GetNotificationResponse getNotification(GetNotificationRequest request)
Get your live notification by live notification name.- 参数:
request- The request object containing all parameters for getting live notification.- 返回:
- Your live notification.
-
createNotification
public CreateNotificationResponse createNotification(String name, String endpoint)
Create a live notification in the live stream service.- 参数:
name- The name of notification.endpoint- The address to receive notification message.- 返回:
- the response
-
createNotification
public CreateNotificationResponse createNotification(CreateNotificationRequest request)
Create a live notification in the live stream service.- 参数:
request- The request object containing all options for creating live notification.- 返回:
- the response
-
listSecurityPolicies
public ListSecurityPoliciesResponse listSecurityPolicies()
List all your live security policys.- 返回:
- The list of all your live security policys
-
getSecurityPolicy
public GetSecurityPolicyResponse getSecurityPolicy(String name)
Get your live security policy by live security policy name.- 参数:
name- Live security policy name.- 返回:
- Your live security policy.
-
getSecurityPolicy
public GetSecurityPolicyResponse getSecurityPolicy(GetSecurityPolicyRequest request)
Get your live security policy by live security policy name.- 参数:
request- The request object containing all parameters for getting live security policy.- 返回:
- 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.- 参数:
name- Live security policy name.auth- Configuration for authentication.antiLeech- Configuration for anti-leech.encryption- Configuration for encryption.- 返回:
- the response
-
updateSecurityPolicy
public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request)
Update your live security policy by live security policy name.- 参数:
request- The request object containing all parameters for updating live security policy.- 返回:
- the response
-
getSessionStatistics
public GetSessionStatisticsResponse getSessionStatistics(String sessionId, String startDate, String endDate, Boolean aggregate)
Returns the session statistics.- 参数:
sessionId- the session idstartDate- the start dateendDate- the end dateaggregate- true if the result should be aggregated- 返回:
- the response
-
getSessionStatistics
public GetSessionStatisticsResponse getSessionStatistics(GetSessionStatisticsRequest request)
Returns the session statistics.- 参数:
request- the request- 返回:
- the response
-
createStream
public CreateStreamResponse createStream(CreateStreamRequest request)
Create a domain stream in the live stream service.- 参数:
request- The request object containing all options for creating domain stream- 返回:
- the response
-
createStream
public CreateStreamResponse createStream(String playDomain, String app, String pushStream)
Create a domain stream in the live stream service.- 参数:
playDomain- The domain which this stream belongs toapp- The app which this stream belongs to, may not exist when create streampushStream- , name of this stream- 返回:
- the response
-
listStream
public ListStreamResponse listStream(ListStreamRequest request)
List a domain's streams in the live stream service.- 参数:
request- The request object containing all options for listing domain's streams- 返回:
- the response
-
listOngiongStream
public StreamingStreamResponse listOngiongStream(String playDomain)
List streaming streams for requested domain.- 参数:
playDomain- The requested domain- 返回:
- streaming streams
-
listStream
public ListStreamResponse listStream(String playDomain)
List a domain's streams in the live stream service.- 参数:
playDomain- The requested domain- 返回:
- the response
-
listDomainApp
public ListDomainAppResponse listDomainApp(ListDomainAppRequest request)
List a domain's app in the live stream service.- 参数:
request- The request object containing all options for listing domain's app- 返回:
- the response
-
listDomainApp
public ListDomainAppResponse listDomainApp(String playDomain)
List a domain's streams in the live stream service.- 参数:
playDomain- The requested domain name- 返回:
- the response
-
getStream
public GetStreamResponse getStream(GetStreamRequest request)
Get detail of stream in the live stream service.- 参数:
request- The request object containing all options for querying detail of stream- 返回:
- the response
-
getStream
public GetStreamResponse getStream(String domain, String app, String stream)
Get detail of stream in the live stream service.- 参数:
domain- The requested domainapp- The requested appstream- The requested stream- 返回:
- the response
-
resetDomainStream
public ResetDomainStreamResponse resetDomainStream(ResetDomainStreamRequest request)
reset domain's stream in the live stream service.- 参数:
request- The request object containing all options for reset a domain's stream- 返回:
- the response
-
resetDomainStream
public ResetDomainStreamResponse resetDomainStream(String domain, String app, String stream)
reset domain's stream in the live stream service.- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream to reset- 返回:
- the response
-
resetDomainStream
public ResetDomainStreamResponse resetDomainStream(String domain, String app, String stream, Long resumeTimeInSecond)
reset domain's stream in the live stream service with resume timestamp.- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream to resetresumeTimeInSecond- The timestamp to resume stream, timeunit : second- 返回:
- the response
-
pauseDomainStream
public PauseDomainStreamResponse pauseDomainStream(PauseDomainStreamRequest request)
pause domain's stream in the live stream service.- 参数:
request- The request object containing all options for pause a domain's stream- 返回:
- the response
-
pauseDomainStream
public PauseDomainStreamResponse pauseDomainStream(String domain, String app, String stream)
Get detail of stream in the live stream service.- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream to pause- 返回:
- the response
-
resumeDomainStream
public ResumeDomainStreamResponse resumeDomainStream(ResumeDomainStreamRequest request)
pause domain's stream in the live stream service.- 参数:
request- The request object containing all options for pause a domain's stream- 返回:
- the response
-
resumeDomainStream
public ResumeDomainStreamResponse resumeDomainStream(String domain, String app, String stream)
Get detail of stream in the live stream service.- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream to resume- 返回:
- the response
-
deleteStream
public void deleteStream(DeleteStreamRequest request)
Delete stream in live stream service- 参数:
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- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream to delete
-
updateStreamPresets
public void updateStreamPresets(UpdateStreamPresetsRequest request)
Update stream's presets in the live stream service- 参数:
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- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream which need to update the presetspresets- 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- 参数:
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- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream which need to update the recordingrecording- The new recording's name
-
updateStreamWatermark
public void updateStreamWatermark(UpdateStreamWatermarkRequest request)
Update stream watermarks in live stream service- 参数:
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- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream which need to update the watermarkwatermarks- object of the new watermark, contains image watermark and timestamp watermark
-
updateStreamPullUrl
public void updateStreamPullUrl(UpdateStreamPullUrlRequest request)
Update stream pullUrl in live stream service- 参数:
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- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream which need to update pull urlpullUrl- 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- 参数:
request- The request object containing all options for updating destination push url
-
updateStreamDestinationPushUrl
public void updateStreamDestinationPushUrl(String domain, String app, String stream, String destinationPushUrl)
- 参数:
domain- The requested domain which the specific stream belongs toapp- The requested app which the specific stream belongs tostream- The requested stream which need to update destination push urldestinationPushUrl- The new destination push url
-
getDomainStatistics
public GetDomainStatisticsResponse getDomainStatistics(GetDomainStatisticsRequest request)
get domain's statistics in the live stream service.- 参数:
request- The request object containing all options for getting domain's statistics- 返回:
- the response
-
getDomainStatistics
public GetDomainStatisticsResponse getDomainStatistics(String domain)
Get domain's statistics in the live stream service.- 参数:
domain- The requested domain- 返回:
- the response
-
getDomainSummaryStatistics
public GetDomainSummaryStatisticsResponse getDomainSummaryStatistics(GetDomainSummaryStatisticsRequest request)
get all domains' summary statistics in the live stream service.- 参数:
request- The request object containing all options for getting all domains' summary statistics- 返回:
- the response
-
getDomainSummaryStatistics
public GetDomainSummaryStatisticsResponse getDomainSummaryStatistics(String startTime, String endTime)
get all domains' summary statistics in the live stream service.- 参数:
startTime- start timeendTime- start time- 返回:
- the response
-
getAllDomainsPlayCount
public GetAllDomainsPlayCountResponse getAllDomainsPlayCount(GetAllDomainsStatisticsRequest request)
get all domains' total play count statistics in the live stream service.- 参数:
request- The request object containing all options for getting all domains' play count statistics- 返回:
- the response
-
getOneDomainPlayCount
public GetOneDomainPlayCountResponse getOneDomainPlayCount(GetOneDomainStatisticsRequest request)
get one domain's play count statistics in the live stream service.- 参数:
request- The request object containing all options for getting one domain's play count statistics- 返回:
- the response
-
getAllDomainsBandwidth
public GetAllDomainsBandwidthResponse getAllDomainsBandwidth(GetAllDomainsStatisticsRequest request)
get all domains' bandwidth statistics in the live stream service.- 参数:
request- The request object containing all options for getting all domains' total bandwidth statistics- 返回:
- the response
-
getOneDomainBandwidth
public GetOneDomainBandwidthResponse getOneDomainBandwidth(GetOneDomainStatisticsRequest request)
get one domain's bandwidth statistics in the live stream service.- 参数:
request- The request object containing all options for getting one domain's bandwidth statistics- 返回:
- the response
-
getAllDomainsTraffic
public GetAllDomainsTrafficResponse getAllDomainsTraffic(GetAllDomainsStatisticsRequest request)
get all domains' traffic statistics in the live stream service.- 参数:
request- The request object containing all options for getting all domains' total traffic statistics- 返回:
- the response
-
getOneDomainTraffic
public GetOneDomainTrafficResponse getOneDomainTraffic(GetOneDomainStatisticsRequest request)
get one domain's traffic statistics in the live stream service.- 参数:
request- The request object containing all options for getting one domain's traffic statistics- 返回:
- the response
-
getAllDomainsBandwidthV2
public GetAllDomainsBandwidthResponseV2 getAllDomainsBandwidthV2(GetAllDomainsStatisticsRequestV2 request)
get all domains' traffic statistics in the live stream service.- 参数:
request- The request object containing all options for getting all domains' total traffic statistics- 返回:
- the response
-
getOneDomainBandwidthV2
public GetOneDomainBandwidthResponseV2 getOneDomainBandwidthV2(GetOneDomainStatisticsRequestV2 request)
get one domain's traffic statistics in the live stream service.- 参数:
request- The request object containing all options for getting one domain's traffic statistics- 返回:
- the response
-
listDomainStatistics
public ListDomainStatisticsResponse listDomainStatistics(ListDomainStatisticsRequest request)
list domain's statistics in the live stream service.- 参数:
request- The request object containing all options for listing domain's traffic statistics- 返回:
- the response
-
listStreamStatistics
public ListStreamStatisticsResponse listStreamStatistics(ListStreamStatisticsRequest request)
list domain's all streams statistics in the live stream service.- 参数:
request- The request object containing all options for listing domain's all streams traffic statistics- 返回:
- the response
-
getStreamStatistics
public GetStreamStatisticsResponse getStreamStatistics(GetStreamStatisticsRequest request)
get a domain's all streams statistics in the live stream service.- 参数:
request- The request object containing all options for getting a domain's all streams- 返回:
- the response
-
listRealTimeStreamStatistics
public ListRealtimeStreamStatisticsResponse listRealTimeStreamStatistics(String playDomain, String app)
-
listRealTimeStreamStatistics
public ListRealtimeStreamStatisticsResponse listRealTimeStreamStatistics(ListRealtimeStreamStatisticsRequest request)
-
-