Partilhar via


VideoStreamFormat Class

  • java.lang.Object
    • com.azure.android.communication.calling.VideoStreamFormat

public class VideoStreamFormat

Describes 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

Constructor Description
VideoStreamFormat()

Default constructor

Method Summary

Modifier and Type Method and Description
void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

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.

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.

VideoStreamPixelFormat getPixelFormat()

Informs how the content of the video frame is encoded.

VideoStreamResolution getResolution()

Width and height to be used from a known video resolution standard

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.

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.

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.

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.

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.

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.

VideoStreamFormat setPixelFormat(VideoStreamPixelFormat value)

Informs how the content of the video frame is encoded.

VideoStreamFormat setResolution(VideoStreamResolution value)

Width and height to be used from a known video resolution standard

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.

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.

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.

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.

Constructor Details

VideoStreamFormat

public VideoStreamFormat()

Default constructor

Method Details

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.

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.

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.

getPixelFormat

public VideoStreamPixelFormat getPixelFormat()

Informs how the content of the video frame is encoded.

getResolution

public VideoStreamResolution getResolution()

Width and height to be used from a known video resolution standard

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.

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.

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.

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.

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.

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.

setPixelFormat

public VideoStreamFormat setPixelFormat(VideoStreamPixelFormat value)

Informs how the content of the video frame is encoded.

Parameters:

value - The new value.

setResolution

public VideoStreamFormat setResolution(VideoStreamResolution value)

Width and height to be used from a known video resolution standard

Parameters:

value - The new value.

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.

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.

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.

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.

Applies to