#include <MNStreamer.h>
Inheritance diagram for MNStreamer:
Public Member Functions | |
MNStreamer (MNSelector &sel, DataPumpResponse *resp) | |
MNStreamer (MNSelector &sel, DataPumpResponse *resp, SDPSessionDescription *sdesc) | |
this is needed when no SDP-description is stored in the proxy! | |
virtual | ~MNStreamer () |
int | getBandwidth (const MNString &DescFileName) |
int | getBandwidth (int idx, const MNString &DescFileName) |
virtual int | init (KomServer *streamer, StreamingType type) |
virtual bool | createUpstreamSocks (int idx, int &requested, RTPSockets::FactoryMode mode, RTSP::TransportTypes requested_transport=RTSP::RTP_AVP_UDP) |
virtual bool | createDownstreamSocks (int idx, int &requested, RTPSockets::FactoryMode mode, RTSP::TransportTypes requested_transport=RTSP::RTP_AVP_UDP) |
virtual bool | fillTransportString (int idx, MNString &out, bool mc) const |
virtual int | stream_start (int idx, const MNString &filename, const MNString &DescFileName, const MNString &client, const MNString &server, int ClientPortAnnounced, int ServerPortAnnounced) |
virtual void | setupNewServerSideReflectorGM (int idx) |
virtual void | setupExistingServerSideReflectorGM (int idx) |
virtual int | play (int start, int stop) |
virtual int | stop () |
void | detach () |
virtual int | pause () |
virtual int | jump (int cont_time) |
virtual void | fileComplete (const char *filename, bool comp) |
virtual long | getFilePos () |
virtual void | set_client_port (int a) |
virtual void | set_client_port (int idx, int a) |
void | examineSDP () |
extracts bandwidth and all other information out of the given SDP | |
virtual void | setMulticastInformation (int idx, MNString server, MNSocket *main_rtp, MNSocket *main_rtcp) |
virtual void | setBufferInformation (int threshold, int size) |
virtual bool | isPatchingCapable () const |
virtual void | setNptSeek (int npt) |
virtual int | getNptSeconds () |
virtual void | setRTPTimestamp (int idx, u_int32 rtptime) |
Static Public Member Functions | |
bool | check_time (const MNString &DescFileName, MNString &time) |
|
|
|
this is needed when no SDP-description is stored in the proxy!
|
|
|
|
|
|
The data pump tries to create the requested socket as an RTP socket, with the matching RTCP socket as well. The mode determines whether the actual port may differ, and whether the RTCP socket must exist or not. On return, the actually allocated port is returned in the parameter requested.
Implements dataPump.
|
|
The data pump tries to create the requested socket as an RTP socket, with the matching RTCP socket as well. The mode determines whether the actual port may differ, and whether the RTCP socket must exist or not. On return, the actually allocated port is returned in the parameter requested.
Implements dataPump.
|
|
|
|
extracts bandwidth and all other information out of the given SDP
|
|
Reimplemented from dataPump.
|
|
Writes a transport string for an SDP message, containing its specific features.
Implements dataPump.
|
|
|
|
|
|
If the dataPump is streaming, this method returns the current time position in the source file. Else it returns -1!! Reimplemented from dataPump.
|
|
Reimplemented from dataPump.
|
|
Implements dataPump.
|
|
If a data pump is capable of patching support, it must overload the functions setMulticastInformation and setBufferInformation that exist only as dummy implementations in this base class. The default is that a data pump is not capable of patching. Reimplemented from dataPump.
|
|
Reimplemented from dataPump.
|
|
Reimplemented from dataPump.
|
|
Implements dataPump.
|
|
Reimplemented from dataPump.
|
|
|
|
A dummy provided for non-patching-capable data pumps and overloaded by patching-capable data pumps. Reimplemented from dataPump.
|
|
Stores the additional hostname and port of the server which serves the multicast stream when the proxy receives a patch stream. The information of the unicast patch stream is set through the other methods like a normal unicast session! Changed to setting of bound sockets; if we can't bind the MC socket, we have to fall back to unicast anyway. |
|
Reimplemented from dataPump.
|
|
Reimplemented from dataPump.
|
|
Reimplemented from dataPump.
|
|
Reimplemented from dataPump.
|
|
Implements dataPump.
|
|
Implements dataPump.
|