Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class VirtualDisplayEncoder

Hierarchy

java.lang.Object

Package
com.smartdevicelink.encoder

Constructors

VirtualDisplayEncoder()

public VirtualDisplayEncoder()

Methods

init( Context context, IVideoStreamListener outputListener, VideoStreamingParameters streamingParams )

Initialization method for VirtualDisplayEncoder object. MUST be called before start() or shutdown() Will overwrite previously set videoWeight and videoHeight

public void init(Context context,IVideoStreamListener outputListener,VideoStreamingParameters streamingParams) throws java.lang.Exception

Parameters

context
to create the virtual display
outputListener
the listener that the video frames will be sent through
streamingParams
parameters to create the virtual display and encoder

Throws

  • java.lang.Exception

getStreamingParams()

public com.smartdevicelink.streaming.video.VideoStreamingParameters getStreamingParams()

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)

Parameters

displayDensity
resolution
frameRate
bitrate
interval
format

setStreamingParams( VideoStreamingParameters streamingParams )

public void setStreamingParams(VideoStreamingParameters streamingParams)

Parameters

streamingParams

start()

NOTE: Must call init() without error before calling this method. Prepares the encoder and virtual display.

public void start() throws java.lang.Exception

Throws

  • java.lang.Exception

shutDown()

public void shutDown()

getVirtualDisplay()

public android.view.Display getVirtualDisplay()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section