Record Class UiVideoRecorder.Result
java.lang.Object
java.lang.Record
com.render.testkit.UiVideoRecorder.Result
- Enclosing class:
UiVideoRecorder
public static record UiVideoRecorder.Result(boolean success, String error, String manifest, String video, String framesDirectory, int frameCount, int width, int height, int viewportWidth, int viewportHeight, int fps, double durationSeconds, List<UiVideoRecorder.Frame> frames, String codec, long pngBytes)
extends Record
Final report; success requires verified MP4 dimensions, cadence, count, duration, and a written manifest.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(boolean success, String error, String manifest, String video, String framesDirectory, int frameCount, int width, int height, int viewportWidth, int viewportHeight, int fps, double durationSeconds, List<UiVideoRecorder.Frame> frames, String codec, long pngBytes) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodec()Returns the value of thecodecrecord component.doubleReturns the value of thedurationSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.intfps()Returns the value of thefpsrecord component.intReturns the value of theframeCountrecord component.frames()Returns the value of theframesrecord component.Returns the value of theframesDirectoryrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.manifest()Returns the value of themanifestrecord component.longpngBytes()Returns the value of thepngBytesrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.video()Returns the value of thevideorecord component.intReturns the value of theviewportHeightrecord component.intReturns the value of theviewportWidthrecord component.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Result
public Result(boolean success, String error, String manifest, String video, String framesDirectory, int frameCount, int width, int height, int viewportWidth, int viewportHeight, int fps, double durationSeconds, List<UiVideoRecorder.Frame> frames, String codec, long pngBytes) Creates an instance of aResultrecord class.- Parameters:
success- the value for thesuccessrecord componenterror- the value for theerrorrecord componentmanifest- the value for themanifestrecord componentvideo- the value for thevideorecord componentframesDirectory- the value for theframesDirectoryrecord componentframeCount- the value for theframeCountrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentviewportWidth- the value for theviewportWidthrecord componentviewportHeight- the value for theviewportHeightrecord componentfps- the value for thefpsrecord componentdurationSeconds- the value for thedurationSecondsrecord componentframes- the value for theframesrecord componentcodec- the value for thecodecrecord componentpngBytes- the value for thepngBytesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
manifest
Returns the value of themanifestrecord component.- Returns:
- the value of the
manifestrecord component
-
video
Returns the value of thevideorecord component.- Returns:
- the value of the
videorecord component
-
framesDirectory
Returns the value of theframesDirectoryrecord component.- Returns:
- the value of the
framesDirectoryrecord component
-
frameCount
public int frameCount()Returns the value of theframeCountrecord component.- Returns:
- the value of the
frameCountrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
viewportWidth
public int viewportWidth()Returns the value of theviewportWidthrecord component.- Returns:
- the value of the
viewportWidthrecord component
-
viewportHeight
public int viewportHeight()Returns the value of theviewportHeightrecord component.- Returns:
- the value of the
viewportHeightrecord component
-
fps
public int fps()Returns the value of thefpsrecord component.- Returns:
- the value of the
fpsrecord component
-
durationSeconds
public double durationSeconds()Returns the value of thedurationSecondsrecord component.- Returns:
- the value of the
durationSecondsrecord component
-
frames
Returns the value of theframesrecord component.- Returns:
- the value of the
framesrecord component
-
codec
Returns the value of thecodecrecord component.- Returns:
- the value of the
codecrecord component
-
pngBytes
public long pngBytes()Returns the value of thepngBytesrecord component.- Returns:
- the value of the
pngBytesrecord component
-