Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
StreamPacketizer

Class StreamPacketizer

Hierarchy

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

Package
com.smartdevicelink.streaming
All Implemented Interfaces
com.smartdevicelink.streaming.video.IVideoStreamListener, com.smartdevicelink.streaming.audio.IAudioStreamListener, java.lang.Runnable

Fields

TAG

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

Inherited Fields

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

Constructors

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

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

Constructor 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

Method 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)

Method 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

Method Parameters

data
offset
length
presentationTimeUs

Throws

  • java.lang.ArrayIndexOutOfBoundsException

sendAudio( ByteBuffer data, long presentationTimeUs, CompletionListener completionListener )

Called by the app.

public void sendAudio(ByteBuffer data,long presentationTimeUs,CompletionListener completionListener)

Method Parameters

data
presentationTimeUs
completionListener

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