Class VideoStreamFormat
- Object
-
- VideoStreamFormat
-
public final class VideoStreamFormat extends ObjectDescribes details of the video frame content that the application is capable of generating. ACS Calling SDK will dynamically select the VideoStreamFormat best matching with network conditions at runtime.
-
-
Constructor Summary
Constructors Constructor Description VideoStreamFormat()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.floatgetFramesPerSecond()Informs how many frames per second the virtual video device will be sending to remote participants.intgetHeight()Total height-wise count of pixels of the video frame.VideoStreamPixelFormatgetPixelFormat()Informs how the content of the video frame is encoded.VideoStreamResolutiongetResolution()Width and height to be used from a known video resolution standardintgetStride1()Informs the stride in bytes for the first plane of the video frame content when RawVideoFrameType is VideoSoftware.intgetStride2()For VideoFormats with more than one plane, informs the stride in bytes for the second plane of the video frame content when RawVideoFrameType is VideoSoftware.intgetStride3()For VideoFormats with more than two planes, informs the stride in bytes for the third plane of the video frame content when RawVideoFrameType is VideoSoftware.intgetWidth()Total width-wise count of pixels of the video frame.VideoStreamFormatsetFramesPerSecond(float value)Informs how many frames per second the virtual video device will be sending to remote participants.VideoStreamFormatsetHeight(int value)Total height-wise count of pixels of the video frame.VideoStreamFormatsetPixelFormat(VideoStreamPixelFormat value)Informs how the content of the video frame is encoded.VideoStreamFormatsetResolution(VideoStreamResolution value)Width and height to be used from a known video resolution standardVideoStreamFormatsetStride1(int value)Informs the stride in bytes for the first plane of the video frame content when RawVideoFrameType is VideoSoftware.VideoStreamFormatsetStride2(int value)For VideoFormats with more than one plane, informs the stride in bytes for the second plane of the video frame content when RawVideoFrameType is VideoSoftware.VideoStreamFormatsetStride3(int value)For VideoFormats with more than two planes, informs the stride in bytes for the third plane of the video frame content when RawVideoFrameType is VideoSoftware.VideoStreamFormatsetWidth(int value)Total width-wise count of pixels of the video frame.
-
-
-
Method Detail
-
finalize
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.- Overrides:
finalizein classObject
-
getWidth
public int getWidth()
Total width-wise count of pixels of the video frame. It must be greater or equal to 240 and less or equal to 1920. Values greater than 1280 and aspect ratios other than 16:9 or 4:3 might be adjusted by the SDK consuming extra resources.
-
setWidth
public VideoStreamFormat setWidth(int value)
Total width-wise count of pixels of the video frame. It must be greater or equal to 240 and less or equal to 1920. Values greater than 1280 and aspect ratios other than 16:9 or 4:3 might be adjusted by the SDK consuming extra resources.- Parameters:
value- The new value.
-
getHeight
public int getHeight()
Total height-wise count of pixels of the video frame. It must be greater or equal to 180 and less or equal to 1080. Values greater than 720 and aspect ratios other than 16:9 or 4:3 might be adjusted by the SDK consuming extra resources.
-
setHeight
public VideoStreamFormat setHeight(int value)
Total height-wise count of pixels of the video frame. It must be greater or equal to 180 and less or equal to 1080. Values greater than 720 and aspect ratios other than 16:9 or 4:3 might be adjusted by the SDK consuming extra resources.- Parameters:
value- The new value.
-
getResolution
public VideoStreamResolution getResolution()
Width and height to be used from a known video resolution standard
-
setResolution
public VideoStreamFormat setResolution(VideoStreamResolution value)
Width and height to be used from a known video resolution standard- Parameters:
value- The new value.
-
getPixelFormat
public VideoStreamPixelFormat getPixelFormat()
Informs how the content of the video frame is encoded.
-
setPixelFormat
public VideoStreamFormat setPixelFormat(VideoStreamPixelFormat value)
Informs how the content of the video frame is encoded.- Parameters:
value- The new value.
-
getFramesPerSecond
public float getFramesPerSecond()
Informs how many frames per second the virtual video device will be sending to remote participants. It must be greater or equal to 1 and lower or equal to 30. The following values are preferable 7.5, 15 or 30.
-
setFramesPerSecond
public VideoStreamFormat setFramesPerSecond(float value)
Informs how many frames per second the virtual video device will be sending to remote participants. It must be greater or equal to 1 and lower or equal to 30. The following values are preferable 7.5, 15 or 30.- Parameters:
value- The new value.
-
getStride1
public int getStride1()
Informs the stride in bytes for the first plane of the video frame content when RawVideoFrameType is VideoSoftware. It must be greater or equal to the count of bytes required for the first plane of the selected VideoStreamPixelFormat.
-
setStride1
public VideoStreamFormat setStride1(int value)
Informs the stride in bytes for the first plane of the video frame content when RawVideoFrameType is VideoSoftware. It must be greater or equal to the count of bytes required for the first plane of the selected VideoStreamPixelFormat.- Parameters:
value- The new value.
-
getStride2
public int getStride2()
For VideoFormats with more than one plane, informs the stride in bytes for the second plane of the video frame content when RawVideoFrameType is VideoSoftware. It must be greater or equal to the count of bytes required for the second plane of the selected VideoStreamPixelFormat.
-
setStride2
public VideoStreamFormat setStride2(int value)
For VideoFormats with more than one plane, informs the stride in bytes for the second plane of the video frame content when RawVideoFrameType is VideoSoftware. It must be greater or equal to the count of bytes required for the second plane of the selected VideoStreamPixelFormat.- Parameters:
value- The new value.
-
getStride3
public int getStride3()
For VideoFormats with more than two planes, informs the stride in bytes for the third plane of the video frame content when RawVideoFrameType is VideoSoftware. It must be greater or equal to the count of bytes required for the third plane of the selected VideoStreamPixelFormat.
-
setStride3
public VideoStreamFormat setStride3(int value)
For VideoFormats with more than two planes, informs the stride in bytes for the third plane of the video frame content when RawVideoFrameType is VideoSoftware. It must be greater or equal to the count of bytes required for the third plane of the selected VideoStreamPixelFormat.- Parameters:
value- The new value.
-
-