Partajați prin


LiveEventInput Class

  • java.lang.Object
    • com.azure.resourcemanager.mediaservices.models.LiveEventInput

Implements

public final class LiveEventInput
implements JsonSerializable<LiveEventInput>

The live event input.

Constructor Summary

Constructor Description
LiveEventInput()

Creates an instance of LiveEventInput class.

Method Summary

Modifier and Type Method and Description
LiveEventInputAccessControl accessControl()

Get the accessControl property: Access control for live event input.

String accessToken()

Get the accessToken property: A UUID in string form to uniquely identify the stream.

List<LiveEventEndpoint> endpoints()

Get the endpoints property: The input endpoints for the live event.

static LiveEventInput fromJson(JsonReader jsonReader)

Reads an instance of LiveEventInput from the JsonReader.

String keyFrameIntervalDuration()

Get the keyFrameIntervalDuration property: ISO 8601 time duration of the key frame interval duration of the input.

LiveEventInputProtocol streamingProtocol()

Get the streamingProtocol property: The input protocol for the live event.

List<LiveEventTimedMetadataEndpoint> timedMetadataEndpoints()

Get the timedMetadataEndpoints property: The metadata endpoints for the live event.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LiveEventInput withAccessControl(LiveEventInputAccessControl accessControl)

Set the accessControl property: Access control for live event input.

LiveEventInput withAccessToken(String accessToken)

Set the accessToken property: A UUID in string form to uniquely identify the stream.

LiveEventInput withEndpoints(List<LiveEventEndpoint> endpoints)

Set the endpoints property: The input endpoints for the live event.

LiveEventInput withKeyFrameIntervalDuration(String keyFrameIntervalDuration)

Set the keyFrameIntervalDuration property: ISO 8601 time duration of the key frame interval duration of the input.

LiveEventInput withStreamingProtocol(LiveEventInputProtocol streamingProtocol)

Set the streamingProtocol property: The input protocol for the live event.

LiveEventInput withTimedMetadataEndpoints(List<LiveEventTimedMetadataEndpoint> timedMetadataEndpoints)

Set the timedMetadataEndpoints property: The metadata endpoints for the live event.

Methods inherited from java.lang.Object

Constructor Details

LiveEventInput

public LiveEventInput()

Creates an instance of LiveEventInput class.

Method Details

accessControl

public LiveEventInputAccessControl accessControl()

Get the accessControl property: Access control for live event input.

Returns:

the accessControl value.

accessToken

public String accessToken()

Get the accessToken property: A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value.

Returns:

the accessToken value.

endpoints

public List<LiveEventEndpoint> endpoints()

Get the endpoints property: The input endpoints for the live event.

Returns:

the endpoints value.

fromJson

public static LiveEventInput fromJson(JsonReader jsonReader)

Reads an instance of LiveEventInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LiveEventInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

keyFrameIntervalDuration

public String keyFrameIntervalDuration()

Get the keyFrameIntervalDuration property: ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events.

Returns:

the keyFrameIntervalDuration value.

streamingProtocol

public LiveEventInputProtocol streamingProtocol()

Get the streamingProtocol property: The input protocol for the live event. This is specified at creation time and cannot be updated.

Returns:

the streamingProtocol value.

timedMetadataEndpoints

public List<LiveEventTimedMetadataEndpoint> timedMetadataEndpoints()

Get the timedMetadataEndpoints property: The metadata endpoints for the live event.

Returns:

the timedMetadataEndpoints value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccessControl

public LiveEventInput withAccessControl(LiveEventInputAccessControl accessControl)

Set the accessControl property: Access control for live event input.

Parameters:

accessControl - the accessControl value to set.

Returns:

the LiveEventInput object itself.

withAccessToken

public LiveEventInput withAccessToken(String accessToken)

Set the accessToken property: A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value.

Parameters:

accessToken - the accessToken value to set.

Returns:

the LiveEventInput object itself.

withEndpoints

public LiveEventInput withEndpoints(List<LiveEventEndpoint> endpoints)

Set the endpoints property: The input endpoints for the live event.

Parameters:

endpoints - the endpoints value to set.

Returns:

the LiveEventInput object itself.

withKeyFrameIntervalDuration

public LiveEventInput withKeyFrameIntervalDuration(String keyFrameIntervalDuration)

Set the keyFrameIntervalDuration property: ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events.

Parameters:

keyFrameIntervalDuration - the keyFrameIntervalDuration value to set.

Returns:

the LiveEventInput object itself.

withStreamingProtocol

public LiveEventInput withStreamingProtocol(LiveEventInputProtocol streamingProtocol)

Set the streamingProtocol property: The input protocol for the live event. This is specified at creation time and cannot be updated.

Parameters:

streamingProtocol - the streamingProtocol value to set.

Returns:

the LiveEventInput object itself.

withTimedMetadataEndpoints

public LiveEventInput withTimedMetadataEndpoints(List<LiveEventTimedMetadataEndpoint> timedMetadataEndpoints)

Set the timedMetadataEndpoints property: The metadata endpoints for the live event.

Parameters:

timedMetadataEndpoints - the timedMetadataEndpoints value to set.

Returns:

the LiveEventInput object itself.

Applies to