webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
org.webrtc.VideoSource Class Reference
Inheritance diagram for org.webrtc.VideoSource:
org.webrtc.MediaSource

Public Member Functions

 VideoSource (long nativeSource)
 
void adaptOutputFormat (int width, int height, int fps)
 
- Public Member Functions inherited from org.webrtc.MediaSource
 MediaSource (long nativeSource)
 
State state ()
 
void dispose ()
 

Detailed Description

Java wrapper of native AndroidVideoTrackSource.

Constructor & Destructor Documentation

◆ VideoSource()

org.webrtc.VideoSource.VideoSource ( long  nativeSource)
inline

Member Function Documentation

◆ adaptOutputFormat()

void org.webrtc.VideoSource.adaptOutputFormat ( int  width,
int  height,
int  fps 
)
inline

Calling this function will cause frames to be scaled down to the requested resolution. Also, frames will be cropped to match the requested aspect ratio, and frames will be dropped to match the requested fps. The requested aspect ratio is orientation agnostic and will be adjusted to maintain the input orientation, so it doesn't matter if e.g. 1280x720 or 720x1280 is requested.


The documentation for this class was generated from the following file: