Package com.vonage.client.video
Class RenderRequest.Builder
java.lang.Object
com.vonage.client.video.RenderRequest.Builder
- Enclosing class:
RenderRequest
Builder for defining the parameters of
RenderRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the RenderRequest with this builder's properties.maxDuration
(int maxDuration) (OPTIONAL) Maximum time allowed for the Experience Composer, in seconds.(REQUIRED) Name of the composed output stream which is published to the session.resolution
(Resolution resolution) (OPTIONAL) Resolution of the display area for the composition. 1280x720 is the default.(REQUIRED) URL of the customer service where the callbacks will be received.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
(REQUIRED) Name of the composed output stream which is published to the session.- Parameters:
name
- The stream name.- Returns:
- This builder.
-
url
(REQUIRED) URL of the customer service where the callbacks will be received. This must be between 15 and 2048 characters in length.- Parameters:
url
- The URL as a string.- Returns:
- This builder.
-
maxDuration
(OPTIONAL) Maximum time allowed for the Experience Composer, in seconds. After this time, it is stopped automatically, if it is still running. The maximum value is 36000 (10 hours), the minimum value is 60 (1 minute), and the default value is 7200 (2 hours). When the Experience Composer ends, its stream is unpublished and an event is posted to the callback URL, if configured in the Application Config.- Parameters:
maxDuration
- The maximum duration in seconds as an int.- Returns:
- This builder.
-
resolution
(OPTIONAL) Resolution of the display area for the composition. 1280x720 is the default.- Parameters:
resolution
- The resolution as an enum.- Returns:
- This builder.
-
build
Builds the RenderRequest with this builder's properties.- Returns:
- A new RenderRequest instance.
-