Class Fade
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Fade
Describes the properties of a Fade effect applied to the input media.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionduration()
Get the duration property: The Duration of the fade effect in the video.Get the fadeColor property: The Color for the fade In/Out.start()
Get the start property: The position in the input video from where to start fade.void
validate()
Validates the instance.withDuration
(Duration duration) Set the duration property: The Duration of the fade effect in the video.withFadeColor
(String fadeColor) Set the fadeColor property: The Color for the fade In/Out.Set the start property: The position in the input video from where to start fade.
-
Constructor Details
-
Fade
public Fade()Creates an instance of Fade class.
-
-
Method Details
-
duration
Get the duration property: The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration).- Returns:
- the duration value.
-
withDuration
Set the duration property: The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration).- Parameters:
duration
- the duration value to set.- Returns:
- the Fade object itself.
-
fadeColor
Get the fadeColor property: The Color for the fade In/Out. it can be on the CSS Level1 colors https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000.- Returns:
- the fadeColor value.
-
withFadeColor
Set the fadeColor property: The Color for the fade In/Out. it can be on the CSS Level1 colors https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000.- Parameters:
fadeColor
- the fadeColor value to set.- Returns:
- the Fade object itself.
-
start
Get the start property: The position in the input video from where to start fade. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Default is 0.- Returns:
- the start value.
-
withStart
Set the start property: The position in the input video from where to start fade. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Default is 0.- Parameters:
start
- the start value to set.- Returns:
- the Fade object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-