java.lang.Object
com.smartdevicelink.managers.BaseSubManager
com.smartdevicelink.managers.video.BaseVideoStreamManager
From Class | Fields |
---|---|
com.smartdevicelink.managers.BaseSubManager | SETTING_UP, READY, LIMITED, SHUTDOWN, ERROR, internalInterface |
public VideoStreamManager(ISdl internalInterface)
public void start(CompletionListener listener)
Starts streaming a remote display to the module if there is a connected session. This method of streaming requires the device to be on API level 19 or higher Two ranges (supportedLandscapeStreamingRange and supportedLandscapeStreamingRange) can be provided with image dimension ranges and aspect ratio ranges that your remoteDisplay class supports. If the module's screen size for your app changes during streaming (i.e. to a collapsed view, split screen, preview mode, or picture-in-picture), your remoteDisplay will be resized to the new screen size. If either range is `null`, the default is to support all streaming ranges of that format (landscape or portrait). If you wish to disable support for streaming in a given format (landscape or portrait), set a VideoStreamingRange with all `0` values. NOTE If both supportedLandscapeStreamingRange and supportedLandscapeStreamingRange are disabled then the video will not stream. Any changes to screen size will notify the onViewResized method you have implemented in your remoteDisplay class.
public void startRemoteDisplayStream(Context context,java.lang.Class<? extends com.smartdevicelink.streaming.video.SdlRemoteDisplay> remoteDisplayClass,VideoStreamingParameters parameters,boolean encrypted,VideoStreamingRange supportedLandscapeStreamingRange,VideoStreamingRange supportedPortraitStreamingRange)
Deprecated
Starts streaming a remote display to the module if there is a connected session. This method of streaming requires the device to be on API level 19 or higher
public void startRemoteDisplayStream(Context context,java.lang.Class<? extends com.smartdevicelink.streaming.video.SdlRemoteDisplay> remoteDisplayClass,VideoStreamingParameters parameters,boolean encrypted)
Starts video service, sets up encoder, haptic manager, and remote display. Begins streaming the remote display.
protected void startStreaming(VideoStreamingParameters parameters,boolean encrypted)
Stops streaming from the remote display. To restart, call
public void stopStreaming()
Resumes streaming after calling
public void resumeStreaming()
Stops streaming, ends video streaming service and removes service listeners.
public void dispose()
Check if a video service is currently active
public boolean isServiceActive()
Check if video is currently streaming and visible
public boolean isStreaming()
Check if video streaming has been paused due to app moving to background or manually stopped
public boolean isPaused()
Gets the current video streaming state as defined in @StreamingStateMachine
public int currentVideoStreamState()
protected void onTransportUpdate(java.util.List<com.smartdevicelink.transport.utl.TransportRecord> connectedTransports,boolean audioStreamTransportAvail,boolean videoStreamTransportAvail)
public com.smartdevicelink.streaming.video.VideoStreamingParameters getLastCachedStreamingParameters()
protected com.smartdevicelink.streaming.video.IVideoStreamListener startVideoStream(VideoStreamingParameters params,SdlSession session)
protected boolean stopVideoStream()
From Class | Methods |
---|---|
com.smartdevicelink.managers.BaseSubManager | start, dispose, transitionToState, getState, handleTransportUpdated, onTransportUpdate |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |