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 presetName,
String description,
Hls hls,
Rtmp rtmp,
Recording recording,
LiveThumbnail thumbnail)
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 presetName,
String description,
Audio audio,
Video video,
Hls hls,
Rtmp rtmp,
Recording recording)
Create a live preset which contains parameters needed in the live stream service.
|
CreatePresetResponse |
createPreset(String presetName,
String description,
Audio audio,
Video video,
Hls hls,
Rtmp rtmp,
Recording recording,
LiveThumbnail thumbnail)
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 presetName,
String description,
String notification,
LivePublishInfo publish,
LiveTarget target)
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 presetName)
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 presetName)
Get your live preset by live preset 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.
|
ListNotificationsResponse |
listNotifications()
List all your live notifications.
|
ListPresetsResponse |
listPresets()
List all your live presets.
|
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.
|
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(String presetName, String description, Audio audio, Video video, Hls hls, Rtmp rtmp, Recording recording)
presetName - The name of the new live preset.description - The description of the new live presetaudio - Specify the audio format of live stream.video - Specify the video format of live stream.hls - Specify the hls format of live stream.rtmp - Specify the rtmp format of live stream.recording - Specify the recording format of live stream.public CreatePresetResponse createPreset(String presetName, String description, Audio audio, Video video, Hls hls, Rtmp rtmp, Recording recording, LiveThumbnail thumbnail)
presetName - The name of the new live preset.description - The description of the new live presetaudio - Specify the audio format of live stream.video - Specify the video format of live stream.hls - Specify the hls format of live stream.rtmp - Specify the rtmp format of live stream.recording - Specify the recording format of live stream.thumbnail - Specify the thumbnail format of live stream.public CreatePresetResponse createForwardOnlyPreset(String presetName, String description, Hls hls, Rtmp rtmp, Recording recording, LiveThumbnail thumbnail)
presetName - The name of the new live preset.hls - Specify the hls format of live stream.rtmp - Specify the rtmp format of live stream.recording - Specify the recording format of live stream.thumbnail - Specify the thumbnail format of live stream.public CreatePresetResponse createPreset(CreatePresetRequest request)
request - The request object containing all options for creating presets.public ListPresetsResponse listPresets()
public GetPresetResponse getPreset(String presetName)
presetName - Live preset name.public GetPresetResponse getPreset(GetPresetRequest request)
request - The request object containing all parameters for getting live preset.public DeletePresetResponse deletePreset(String presetName)
presetName - Live preset name.public DeletePresetResponse deletePreset(DeletePresetRequest request)
request - The request object containing all parameters for deleting live preset.public CreateSessionResponse createSession(String presetName, String description, String notification, LivePublishInfo publish, LiveTarget target)
presetName - The name of the new live session.description - The description of the new live session.notification - The notification of the new live session.publish - Specify the LivePublishInfo of live session.target - Specify the LiveTarget 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 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 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.Copyright © 2015. All rights reserved.