public static final class AliyunMixStream.Builder
extends java.lang.Object
AliyunMixStream
builder static inner class.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AliyunMixStream |
build()
Returns a
AliyunMixStream built from the parameters previously set. |
AliyunMixStream.Builder |
displayMode(VideoDisplayMode displayMode)
Sets the
mDisplayMode and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixStream.Builder |
filePath(java.lang.String filePath)
Sets the
mFilePath and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixStream.Builder |
streamEndTimeMills(long streamEndTimeMills)
Sets the
mStreamEndTimeMills and returns a reference to this Builder so that the methods can be chained together. |
AliyunMixStream.Builder |
streamStartTimeMills(long streamStartTimeMills)
Sets the
mStreamStartTimeMills and returns a reference to this Builder so that the methods can be chained together. |
public AliyunMixStream.Builder filePath(java.lang.String filePath)
mFilePath
and returns a reference to this Builder so that the methods can be chained together.
Sets the file path of this stream.filePath
- The mFilePath
.public AliyunMixStream.Builder streamStartTimeMills(long streamStartTimeMills)
mStreamStartTimeMills
and returns a reference to this Builder so that the methods can be chained together.
Sets the start time of this stream. For example, to choose the 5th to 20th seconds of a 30-second video stream, set the start time to 5,000 milliseconds.streamStartTimeMills
- The mStreamStartTimeMills
.public AliyunMixStream.Builder streamEndTimeMills(long streamEndTimeMills)
mStreamEndTimeMills
and returns a reference to this Builder so that the methods can be chained together.
Sets the end time of this stream.streamEndTimeMills
- The mStreamEndTimeMills
.public AliyunMixStream.Builder displayMode(VideoDisplayMode displayMode)
mDisplayMode
and returns a reference to this Builder so that the methods can be chained together.
Sets the display mode of this stream.displayMode
- The mDisplayMode
.public AliyunMixStream build()
AliyunMixStream
built from the parameters previously set.AliyunMixStream
built with parameters of AliyunMixStream.Builder
.