以下將會個別介紹各個 BLOCK 的功能及其操作流程。
5-1-1 Processor:
Produce an RTP-encoded DataSource.
Configuring the Processor.
Retrieving the Processor Output.
Controlling the Packet Delay.
5-1-2 Configuring the Processor:
Set RTP-specific formats for each track and specify the content descriptor you want.
Getting TrackControl for each track and calling setFormat to specify an RTP-specific format.
Example : AudioFormat.GSM_RTP.
Output format : setOutputContentDescriptor (method).
5-1-3 Retrieving the Processor Output:
Calling getDataOutput.
DataSource can be either a PushBufferDataSource or a PullBufferDataSource.
Connecting to the SessionManager using the createSendStream (method).
Multiple SourceStreams is sent out as a separate RTPstream, either in the same session or a different session.
5-1-4 Controlling the Packet Delay:
If the codec allows modification the interval.
Using the setPcketSize (method) of the packetizer codec's PacketSizeControl.
5-1-5 MediaLocator:
Calling Manager.createDataSink to construct an RTP DataSink.
Only transmit the first stream in the DataSource.
Provides the address and port of the RTP session.
5-1-6 Session Manager:
Creating send streams for the content and control the transmission.
To transmit multiple RTP streams in a session or to need to monitor session statistics.
5-1-7 Transmitting RTP Data using a DataSink:
Simplest way to transmit RTP data is to construct an RTP DataSink using Manager.creatDataSink (method).
You call start and stop on the DataSink.
Again, only the first stream in the DataSource is transmitted.
上圖即為 Transmit 的整個設計架構, Processor 處理來自 camera 的 data 之後 ,輸入對方 IP 將 data 送
到網路上等待接收端接收,其中 Audio 的 port 為 Video 的 port 加上 2 。Return to top