public class VirtualDisplayEncoder extends Object
| Constructor and Description |
|---|
VirtualDisplayEncoder() |
| Modifier and Type | Method and Description |
|---|---|
VideoStreamingParameters |
getStreamingParams() |
Display |
getVirtualDisplay() |
void |
init(Context context,
IVideoStreamListener outputListener,
VideoStreamingParameters streamingParams)
Initialization method for VirtualDisplayEncoder object.
|
void |
setStreamingParams(int displayDensity,
ImageResolution resolution,
int frameRate,
int bitrate,
int interval,
VideoStreamingFormat format)
Deprecated.
|
void |
setStreamingParams(int displayDensity,
ImageResolution resolution,
int frameRate,
int bitrate,
int interval,
VideoStreamingFormat format,
boolean stableFramerate)
setter of every parameter in streamingParams.
|
void |
setStreamingParams(VideoStreamingParameters streamingParams) |
void |
shutDown() |
void |
start()
NOTE: Must call init() without error before calling this method.
|
public void init(Context context, IVideoStreamListener outputListener, VideoStreamingParameters streamingParams) throws Exception
context - to create the virtual displayoutputListener - the listener that the video frames will be sent throughstreamingParams - parameters to create the virtual display and encoderException - if the API level is <19 or supplied parameters were nullpublic VideoStreamingParameters getStreamingParams()
@Deprecated public void setStreamingParams(int displayDensity, ImageResolution resolution, int frameRate, int bitrate, int interval, VideoStreamingFormat format)
public void setStreamingParams(int displayDensity,
ImageResolution resolution,
int frameRate,
int bitrate,
int interval,
VideoStreamingFormat format,
boolean stableFramerate)
displayDensity - resolution - frameRate - bitrate - interval - format - stableFramerate - public void setStreamingParams(VideoStreamingParameters streamingParams)
public void start()
throws Exception
Exceptionpublic void shutDown()
public Display getVirtualDisplay()