Service thread for real-time streaming input. More...
#include <thread.h>
Inherits: RTSThread
The service thread used to deliver received rtp packets. This virtual service thread provides the core functionality for streaming of inbound media packets. In fact, streaming includes abstract I/O services that are implemented on a per protocol bases which allows RTSRecvThread to drive IPX "RTP" sockets or even VAT sessions.
Construct a RTS service thread for receiving packets.
timer | for synchronizing frames, default 20ms audio. |
pri | level of this thread relative to parent. |
start | semaphore to use for synchronized startup. |
Terminate the receiving thread service.
Compute offset in pending queue for the specified packet based on it's timestamp.
timestamp | of received packet. |
Set starting timestamp for the current window. This starting time stamp is used to compute the relative offset of the received packet for posting into a pending delivery queue with RTSPost.
value | of starting time stamp for frame buffer. |
The RTSOutput() method must use addStartup() to adjust the timestamp for the next packets received once real- time data has been retrieved.
offset | timestamp by specified samples. |
Initial thread service. This is used to support multiple inheretance of sending and receiving threads in a single object.
Exit thread service for self destructing objects. This is used to support multiple inheretance of sending and receiving threads in a single object.
The default run method of a sending service thread. This is used to support multipe inheretance of sending and receiving threads in a single object.
Receive realtime data into an RTP formatted packet using the current protocol from the read routine in the derived class. This may apply decompression and other codec functions. This function normally blocks until a RTP packet is received.
timestamp | of received packet. |
buf | pointer to rtpdata buffer. |
encoding | sample format of received packet (after codec). |
Process an output frame for timed playback. Posting is assumed to post data into a buffer queue buffer. Playback may also simply update the 'timing' window of the current frame.
timeout | of audio frames. |
Wait for the specified timeout duration for data to appear at the socket and then do a blind "internal" peek of the message header so that getPeerHeader() will be functional.
timeout | of current session in milliseconds. |
Virtual function used to post the last retrieved message. This operates by calling the protocol 'derived' class which has the header information for the last read packet.
buf | pointer to rtpdata buffer. |
time | stamp of this packet. |
encoding | sample format of last read packet. |
Error processing routine for receive failures.
Protocol may use this to specify a new session has been initiated.
session | number of this session. |
| Kdoc |