public class LssClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
LssClient()
Constructs a new Lss client.
|
LssClient(BceClientConfiguration clientConfiguration)
Constructs a new client using the client configuration.
|
| Modifier and Type | Method and Description |
|---|---|
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,
String preset,
String notification,
String securityPolicy,
String recording,
LivePublishInfo publish)
Create a live session 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.
|
GetNotificationResponse |
getNotification(GetNotificationRequest request)
Get your live notification by live notification name.
|
GetNotificationResponse |
getNotification(String name)
Get your live notification by live notification name.
|
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.
|
GetSessionResponse |
getSessionWithToken(String sessionId,
Integer timeoutInMinute)
Get your live session with token by live session id.
|
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.
|
ListNotificationsResponse |
listNotifications()
List all your live notifications.
|
ListPresetsResponse |
listPresets()
List all your live presets.
|
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.
|
PauseSessionResponse |
pauseSession(PauseSessionRequest request)
Pause your live session by live session id.
|
PauseSessionResponse |
pauseSession(String sessionId)
Pause your live session by live session id.
|
RefreshSessionResponse |
refreshSession(RefreshSessionRequest request)
Refresh your live session by live session id.
|
RefreshSessionResponse |
refreshSession(String sessionId)
Refresh your live session by live session id.
|
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.
|
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic LssClient()
public LssClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this client
connects to Lss services (e.g. proxy settings, retry counts, etc).public CreatePresetResponse createPreset(CreatePresetRequest request)
request - The request object containing all options for creating presets.public CreatePresetResponse createPreset(String name, String description, Audio audio, Video video, Hls hls, Rtmp rtmp, LiveThumbnail thumbnail, Watermarks watermarks)
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.public CreatePresetResponse createForwardOnlyPreset(String name, String description, Hls hls, Rtmp rtmp, LiveThumbnail thumbnail, Watermarks watermarks)
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.public ListPresetsResponse listPresets()
public GetPresetResponse getPreset(String name)
name - Live preset name.public GetPresetResponse getPreset(GetPresetRequest request)
request - The request object containing all parameters for getting live preset.public DeletePresetResponse deletePreset(String name)
name - Live preset name.public DeletePresetResponse deletePreset(DeletePresetRequest request)
request - The request object containing all parameters for deleting live preset.public CreateSessionResponse createSession(String description, String preset, String notification, String securityPolicy, String recording, LivePublishInfo publish)
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.public CreateSessionResponse createSession(CreateSessionRequest request)
request - The request object containing all options for creating live session.public ListSessionsResponse listSessions()
public ListSessionsResponse listSessions(String status)
status - Live session status.public ListSessionsResponse listSessions(ListSessionsRequest request)
request - The request object containing all parameters for listing live sessions.public GetSessionResponse getSession(String sessionId)
sessionId - Live session id.public GetSessionResponse getSessionWithToken(String sessionId, Integer timeoutInMinute)
sessionId - Live session id.timeoutInMinute - Timeout of token.public GetSessionResponse getSession(GetSessionRequest request)
request - The request object containing all parameters for getting live session.public DeleteSessionResponse deleteSession(String sessionId)
sessionId - Live session id.public DeleteSessionResponse deleteSession(DeleteSessionRequest request)
request - The request object containing all parameters for deleting live session.public PauseSessionResponse pauseSession(String sessionId)
sessionId - Live session id.public PauseSessionResponse pauseSession(PauseSessionRequest request)
request - The request object containing all parameters for pausing live session.public ResumeSessionResponse resumeSession(String sessionId)
sessionId - Live session id.public ResumeSessionResponse resumeSession(ResumeSessionRequest request)
request - The request object containing all parameters for resuming live session.public RefreshSessionResponse refreshSession(String sessionId)
sessionId - Live session id.public RefreshSessionResponse refreshSession(RefreshSessionRequest request)
request - The request object containing all parameters for refreshing live session.public StartPullSessionResponse startPullSession(String sessionId)
sessionId - Live session id.public StartPullSessionResponse startPullSession(StartPullSessionRequest request)
request - The request object containing all parameters for starting pulling live session.public StartRecordingResponse startRecording(String sessionId, String recording)
sessionId - Live session id.recording - Live recording preset name.public StopRecordingResponse stopRecording(String sessionId)
sessionId - Live session id.public GetSessionSourceInfoResponse getSessionSourceInfo(String sessionId)
sessionId - Live session id.public InsertCuePointResponse insertCuePoint(String sessionId, String callback, Map<String,String> arguments)
sessionId - Live session id.callback - Call back method name.arguments - Call back method arguments.public InsertCuePointResponse insertCuePoint(InsertCuePointRequest request)
request - The request object containing all parameters for inserting a cue point into session.public GetRecordingResponse getRecording(String recording)
recording - Live recording preset name.public ListRecordingsResponse listRecordings()
public ListNotificationsResponse listNotifications()
public DeleteNotificationResponse deleteNotification(String name)
name - Live notification name.public DeleteNotificationResponse deleteNotification(DeleteNotificationRequest request)
request - The request object containing all parameters for deleting live notification.public GetNotificationResponse getNotification(String name)
name - Live notification name.public GetNotificationResponse getNotification(GetNotificationRequest request)
request - The request object containing all parameters for getting live notification.public CreateNotificationResponse createNotification(String name, String endpoint)
name - The name of notification.endpoint - The address to receive notification message.public CreateNotificationResponse createNotification(CreateNotificationRequest request)
request - The request object containing all options for creating live notification.public ListSecurityPoliciesResponse listSecurityPolicies()
public GetSecurityPolicyResponse getSecurityPolicy(String name)
name - Live security policy name.public GetSecurityPolicyResponse getSecurityPolicy(GetSecurityPolicyRequest request)
request - The request object containing all parameters for getting live security policy.public UpdateSecurityPolicyResponse updateSecurityPolicy(String name, Auth auth, AntiLeech antiLeech, Encryption encryption)
name - Live security policy name.auth - Configuration for authentication.antiLeech - Configuration for anti-leech.encryption - Configuration for encryption.public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request)
request - The request object containing all parameters for updating live security policy.Copyright © 2016. All rights reserved.