VideoSource
Java wrapper of native AndroidVideoTrackSource.
Functions
Link copied to clipboard
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
Link copied to clipboard
Hook for injecting a custom video processor before frames are passed onto WebRTC.