Package video.api.client.api.clients
Class LiveApi
java.lang.Object
video.api.client.api.clients.LiveApi
public class LiveApi
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLiveApi.APIlistRequest -
Constructor Summary
-
Method Summary
Modifier and Type Method Description LiveStreamcreate(LiveStreamCreatePayload liveStreamCreatePayload)Create live stream A live stream will give you the 'connection point' to RTMP your video stream to api.video.ApiResponse<LiveStream>createWithHttpInfo(LiveStreamCreatePayload liveStreamCreatePayload)Create live stream A live stream will give you the 'connection point' to RTMP your video stream to api.video.voiddelete(java.lang.String liveStreamId)Delete a live streamLiveStreamdeleteThumbnail(java.lang.String liveStreamId)Delete a thumbnail Send the unique identifier for a live stream to delete it from the system.ApiResponse<LiveStream>deleteThumbnailWithHttpInfo(java.lang.String liveStreamId)Delete a thumbnail Send the unique identifier for a live stream to delete it from the system.ApiResponse<java.lang.Void>deleteWithHttpInfo(java.lang.String liveStreamId)Delete a live streamLiveStreamget(java.lang.String liveStreamId)Show live stream Supply a LivestreamId, and you'll get all the details for streaming into, and watching the livestream.ApiClientgetApiClient()ApiResponse<LiveStream>getWithHttpInfo(java.lang.String liveStreamId)Show live stream Supply a LivestreamId, and you'll get all the details for streaming into, and watching the livestream.LiveApi.APIlistRequestlist()List all live streams With no parameters added to the url, this will return all livestreams.voidsetApiClient(ApiClient apiClient)LiveStreamupdate(java.lang.String liveStreamId, LiveStreamUpdatePayload liveStreamUpdatePayload)Update a live stream Use this endpoint to update the player, or to turn recording on/off (saving a copy of the livestream).ApiResponse<LiveStream>updateWithHttpInfo(java.lang.String liveStreamId, LiveStreamUpdatePayload liveStreamUpdatePayload)Update a live stream Use this endpoint to update the player, or to turn recording on/off (saving a copy of the livestream).LiveStreamuploadThumbnail(java.lang.String liveStreamId, java.io.File file)Upload a thumbnail Upload an image to use as a backdrop for your livestream.ApiResponse<LiveStream>uploadThumbnailWithHttpInfo(java.lang.String liveStreamId, java.io.File file)Upload a thumbnail Upload an image to use as a backdrop for your livestream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LiveApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
delete
Delete a live stream- Parameters:
liveStreamId- The unique ID for the live stream that you want to remove. (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 No Content -
-
deleteWithHttpInfo
public ApiResponse<java.lang.Void> deleteWithHttpInfo(java.lang.String liveStreamId) throws ApiExceptionDelete a live stream- Parameters:
liveStreamId- The unique ID for the live stream that you want to remove. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 No Content -
-
deleteThumbnail
Delete a thumbnail Send the unique identifier for a live stream to delete it from the system.- Parameters:
liveStreamId- The unique identifier for the live stream you want to delete. (required)- Returns:
- LiveStream
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 404 Not Found -
-
deleteThumbnailWithHttpInfo
public ApiResponse<LiveStream> deleteThumbnailWithHttpInfo(java.lang.String liveStreamId) throws ApiExceptionDelete a thumbnail Send the unique identifier for a live stream to delete it from the system.- Parameters:
liveStreamId- The unique identifier for the live stream you want to delete. (required)- Returns:
- ApiResponse<LiveStream>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 404 Not Found -
-
list
List all live streams With no parameters added to the url, this will return all livestreams. Query by name or key to limit the list.- Returns:
- APIlistRequest
- Http Response Details:
Status Code Description Response Headers 200 Success -
-
get
Show live stream Supply a LivestreamId, and you'll get all the details for streaming into, and watching the livestream.- Parameters:
liveStreamId- The unique ID for the live stream you want to watch. (required)- Returns:
- LiveStream
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success -
-
getWithHttpInfo
Show live stream Supply a LivestreamId, and you'll get all the details for streaming into, and watching the livestream.- Parameters:
liveStreamId- The unique ID for the live stream you want to watch. (required)- Returns:
- ApiResponse<LiveStream>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success -
-
update
public LiveStream update(java.lang.String liveStreamId, LiveStreamUpdatePayload liveStreamUpdatePayload) throws ApiExceptionUpdate a live stream Use this endpoint to update the player, or to turn recording on/off (saving a copy of the livestream). NOTE: If the livestream is actively streaming, changing the recording status will only affect the NEXT stream. The public=false 'private livestream' is available as a BETA feature, and should be limited to livestreams of 3,000 viewers or fewer.- Parameters:
liveStreamId- The unique ID for the live stream that you want to update information for such as player details, or whether you want the recording on or off. (required)liveStreamUpdatePayload- (optional)- Returns:
- LiveStream
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request -
-
updateWithHttpInfo
public ApiResponse<LiveStream> updateWithHttpInfo(java.lang.String liveStreamId, LiveStreamUpdatePayload liveStreamUpdatePayload) throws ApiExceptionUpdate a live stream Use this endpoint to update the player, or to turn recording on/off (saving a copy of the livestream). NOTE: If the livestream is actively streaming, changing the recording status will only affect the NEXT stream. The public=false 'private livestream' is available as a BETA feature, and should be limited to livestreams of 3,000 viewers or fewer.- Parameters:
liveStreamId- The unique ID for the live stream that you want to update information for such as player details, or whether you want the recording on or off. (required)liveStreamUpdatePayload- (optional)- Returns:
- ApiResponse<LiveStream>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request -
-
create
Create live stream A live stream will give you the 'connection point' to RTMP your video stream to api.video. It will also give you the details for viewers to watch the same livestream. The public=false 'private livestream' is available as a BETA feature, and should be limited to livestreams of 3,000 viewers or fewer. See our [Live Stream Tutorial](https://api.video/blog/tutorials/live-stream-tutorial) for a walkthrough of this API with OBS. Your RTMP endpoint for the livestream is rtmp://broadcast.api.video/s/{streamKey}- Parameters:
liveStreamCreatePayload- (optional)- Returns:
- LiveStream
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request -
-
createWithHttpInfo
public ApiResponse<LiveStream> createWithHttpInfo(LiveStreamCreatePayload liveStreamCreatePayload) throws ApiExceptionCreate live stream A live stream will give you the 'connection point' to RTMP your video stream to api.video. It will also give you the details for viewers to watch the same livestream. The public=false 'private livestream' is available as a BETA feature, and should be limited to livestreams of 3,000 viewers or fewer. See our [Live Stream Tutorial](https://api.video/blog/tutorials/live-stream-tutorial) for a walkthrough of this API with OBS. Your RTMP endpoint for the livestream is rtmp://broadcast.api.video/s/{streamKey}- Parameters:
liveStreamCreatePayload- (optional)- Returns:
- ApiResponse<LiveStream>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request -
-
uploadThumbnail
public LiveStream uploadThumbnail(java.lang.String liveStreamId, java.io.File file) throws ApiExceptionUpload a thumbnail Upload an image to use as a backdrop for your livestream.- Parameters:
liveStreamId- The unique ID for the live stream you want to upload. (required)file- The image to be added as a thumbnail. (required)- Returns:
- LiveStream
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 201 Created - 400 Bad Request - 404 Not Found -
-
uploadThumbnailWithHttpInfo
public ApiResponse<LiveStream> uploadThumbnailWithHttpInfo(java.lang.String liveStreamId, java.io.File file) throws ApiExceptionUpload a thumbnail Upload an image to use as a backdrop for your livestream.- Parameters:
liveStreamId- The unique ID for the live stream you want to upload. (required)file- The image to be added as a thumbnail. (required)- Returns:
- ApiResponse<LiveStream>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 201 Created - 400 Bad Request - 404 Not Found -
-