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

Class StreamPacketizer

Hierarchy

java.lang.Object
     com.smartdevicelink.streaming.AbstractPacketizer

Package
com.smartdevicelink.streaming
All Implemented Interfaces
com.smartdevicelink.proxy.interfaces.IVideoStreamListener, com.smartdevicelink.proxy.interfaces.IAudioStreamListener, java.lang.Runnable

Fields

TAG

public static final java.lang.String TAG
Constant Value
"StreamPacketizer"

sdlConnection

public com.smartdevicelink.SdlConnection.SdlConnection sdlConnection

Inherited Fields

From Class Fields
com.smartdevicelink.streaming.AbstractPacketizer _streamListener, _rpcSessionID, _serviceType, _session, is, bufferSize, buffer, upts, _request, _wiproVersion, intervalBetweenReports, delta

Constructors

StreamPacketizer( IStreamListener streamListener, InputStream is, SessionType sType, byte rpcSessionID, SdlSession session )

public StreamPacketizer(IStreamListener streamListener,InputStream is,SessionType sType,byte rpcSessionID,SdlSession session)

Parameters

streamListener
is
sType
rpcSessionID
session

Methods

start()

public void start() throws java.io.IOException

Throws

  • java.io.IOException

stop()

public void stop()

run()

public void run()

pause()

public void pause()

resume()

public void resume()

sendFrame( byte[] data, int offset, int length, long presentationTimeUs )

Called by the app.

public void sendFrame(byte[] data,int offset,int length,long presentationTimeUs) throws java.lang.ArrayIndexOutOfBoundsException

Parameters

data
offset
length
presentationTimeUs

Throws

  • java.lang.ArrayIndexOutOfBoundsException

sendFrame( ByteBuffer data, long presentationTimeUs )

Called by the app.

public void sendFrame(ByteBuffer data,long presentationTimeUs)

Parameters

data
presentationTimeUs

sendAudio( byte[] data, int offset, int length, long presentationTimeUs )

Called by the app.

public void sendAudio(byte[] data,int offset,int length,long presentationTimeUs) throws java.lang.ArrayIndexOutOfBoundsException

Parameters

data
offset
length
presentationTimeUs

Throws

  • java.lang.ArrayIndexOutOfBoundsException

sendAudio( ByteBuffer data, long presentationTimeUs )

Called by the app.

public void sendAudio(ByteBuffer data,long presentationTimeUs)

Parameters

data
presentationTimeUs

Inherited Methods

From Class Methods
com.smartdevicelink.streaming.AbstractPacketizer start, stop, pause, resume
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section