public class EncodingStatusChangedApi extends Object
Constructor and Description |
---|
EncodingStatusChangedApi(BitmovinApiClientFactory clientFactory) |
Modifier and Type | Method and Description |
---|---|
static BitmovinApiBuilder<EncodingStatusChangedApi> |
builder()
Fluent builder for creating an instance of EncodingStatusChangedApi
|
WebhookNotificationWithStreamConditions |
create(WebhookNotificationWithStreamConditionsRequest webhookNotificationWithStreamConditionsRequest)
Add Encoding Changed Webhook Notification (All Encodings)
|
WebhookNotificationWithStreamConditions |
createByEncodingId(String encodingId,
WebhookNotificationWithStreamConditionsRequest webhookNotificationWithStreamConditionsRequest)
Add Encoding Changed Webhook Notification (Specific Encoding)
|
BitmovinResponse |
deleteByWebhookId(String notificationId)
Delete Encoding Status Changed Webhook
|
WebhookNotificationWithStreamConditions |
update(String notificationId,
WebhookNotificationWithStreamConditionsRequest webhookNotificationWithStreamConditionsRequest)
Replace Encoding Status Changed Webhook Notification
|
public EncodingStatusChangedApi(BitmovinApiClientFactory clientFactory)
public static BitmovinApiBuilder<EncodingStatusChangedApi> builder()
public WebhookNotificationWithStreamConditions create(WebhookNotificationWithStreamConditionsRequest webhookNotificationWithStreamConditionsRequest) throws BitmovinException
webhookNotificationWithStreamConditionsRequest
- The webhook notifications object. For conditions, following attributes are possible: 'type': 'Input file download', 'Input file analysis', 'Per-Title analysis', 'Encoding', 'Progressive Muxing' 'progress': number in range of 0-100 'status': 'RUNNING', 'FINISHED', 'ERROR' Examples: To only get notified about the encoding process, create a Condition object and set attribute='type', value='Encoding', operator=EQUAL To only get notified if a workflow step is finished, create a Condition object and set attribute='status', value='FINISHED', operator=EQUAL To only get notified if a workflow step is over 50%, create a Condition object and set attribute='progress', value='50', operator=GREATER_THAN (required)BitmovinException
- if fails to make API callpublic WebhookNotificationWithStreamConditions createByEncodingId(String encodingId, WebhookNotificationWithStreamConditionsRequest webhookNotificationWithStreamConditionsRequest) throws BitmovinException
encodingId
- Id of the encoding resource (required)webhookNotificationWithStreamConditionsRequest
- The webhook notifications object. For conditions, following attributes are possible: 'type': 'Input file download', 'Input file analysis', 'Per-Title analysis', 'Encoding', 'Progressive Muxing' 'progress': number in range of 0-100 'status': 'RUNNING', 'FINISHED', 'ERROR' Examples: To only get notified about the encoding process, create a Condition object and set attribute='type', value='Encoding', operator=EQUAL To only get notified if a workflow step is finished, create a Condition object and set attribute='status', value='FINISHED', operator=EQUAL To only get notified if a workflow step is over 50%, create a Condition object and set attribute='progress', value='50', operator=GREATER_THAN (required)BitmovinException
- if fails to make API callpublic BitmovinResponse deleteByWebhookId(String notificationId) throws BitmovinException
notificationId
- Id of the webhook (required)BitmovinException
- if fails to make API callpublic WebhookNotificationWithStreamConditions update(String notificationId, WebhookNotificationWithStreamConditionsRequest webhookNotificationWithStreamConditionsRequest) throws BitmovinException
notificationId
- Id of the webhook notification (required)webhookNotificationWithStreamConditionsRequest
- The webhook notification with the updated values (required)BitmovinException
- if fails to make API callCopyright © 2021. All rights reserved.