- All Implemented Interfaces:
- Controls, Duration
public class DataSource
extends PushBufferDataSource
RTP protocol handler DataSource. Very basic; makes the connection, gets the underlying DataSource, and delegates
all calls to the underlying DataSource.
TODO: support the full URL format:
"rtp://address:port[:ssrc]/content-type/[ttl]"
address is an IP address, port is an integer port number, and content-type is a string such as video or audio. The SSRC (Synchronizing Source) and TTL (Time to Live) fields are optional.
TODO: the dimensions of the format (if video) are not known until a frame arrives.
We probably need to wrap ((PushBufferDataSource) dataSource).getStreams(); to somehow
get the first frame if it is video, and determine the format, and have our wrapper return the
full format when queried.
- Author:
- Ken Larson