VideoSource

Java wrapper of native AndroidVideoTrackSource.

Constructors

Link copied to clipboard
constructor(nativeSource: Long)

Types

Link copied to clipboard
open class AspectRatio
Simple aspect ratio clas for use in constraining output format.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun adaptOutputFormat(width: Int, height: Int, fps: Int)
Calling this function will cause frames to be scaled down to the requested resolution.
open fun adaptOutputFormat(landscapeWidth: Int, landscapeHeight: Int, portraitWidth: Int, portraitHeight: Int, fps: Int)
Same as above, but allows setting two different target resolutions depending on incoming frame orientation.
open fun adaptOutputFormat(targetLandscapeAspectRatio: VideoSource.AspectRatio, @Nullable maxLandscapePixelCount: Integer, targetPortraitAspectRatio: VideoSource.AspectRatio, @Nullable maxPortraitPixelCount: Integer, @Nullable maxFps: Integer)
Same as above, with even more control as each constraint is optional.
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun setIsScreencast(isScreencast: Boolean)
Link copied to clipboard
open fun setVideoProcessor(@Nullable newVideoProcessor: VideoProcessor)
Hook for injecting a custom video processor before frames are passed onto WebRTC.

Inherited functions

Link copied to clipboard