java.lang.Object
com.smartdevicelink.streaming.AbstractPacketizer
From Class | Fields |
---|---|
com.smartdevicelink.streaming.AbstractPacketizer | _streamListener, _rpcSessionID, _serviceType, _session, is, bufferSize, buffer, _request, _wiproVersion |
Constructor
public RTPH264Packetizer(IStreamListener streamListener,SessionType serviceType,byte sessionID,SdlSession session)
Sets the Payload Type (PT) of RTP header field.
Use this method if PT needs to be specified. The value should be between 0 and 127. Otherwise, a default value (96) is used.
public void setPayloadType(byte type)
Sets the SSRC of RTP header field.
Use this method if SSRC needs to be specified. Otherwise, a random value is generated and used.
public void setSSRC(int ssrc)
Starts this packetizer.
It is recommended that the video encoder is started after the packetizer is started.
public void start() throws java.io.IOException
Stops this packetizer.
It is recommended that the video encoder is stopped prior to the packetizer.
public void stop()
Pauses this packetizer.
This pauses the packetizer but does not pause the video encoder.
public void pause()
Resumes this packetizer.
public void resume()
The thread routine.
public void run()
Called by the app and encoder.
public void sendFrame(byte[] data,int offset,int length,long presentationTimeUs) throws java.lang.ArrayIndexOutOfBoundsException
Called by the app and encoder.
public void sendFrame(ByteBuffer data,long presentationTimeUs)
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 |