Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sessions of both sides Client Server MediaSession ServerMediaSession

Similar presentations


Presentation on theme: "Sessions of both sides Client Server MediaSession ServerMediaSession"— Presentation transcript:

1 Sessions of both sides Client Server MediaSession ServerMediaSession
RTSPClient ServerMediaSubSession OpenRTSP RTSPServer playCommon testOnDemandMediaServer Programmes for testing

2 1. RTSPClient

3 Functions in RTSPClient.cpp
static RTSPClient* createNew char* sendOptionsCmd //send + get char* describeURL Boolean openConnectionFromURL Boolean sendRequest Boolean getResponse Boolean setupMediaSubsession Boolean playMediaSession Boolean pauseMediaSession Boolean teardownMediaSession

4 class MediaSession class MediaSubsession class MediaSubsessionIterator

5 A data structure that represents a session that consists of potentially multiple (audio and/or video) sub-sessions (This data structure is used for media *receivers* - i.e., clients. For media streamers, use "ServerMediaSession" instead.)

6 MediaSession MediaSession – To parse the sdpdescription in detail.
BooleanMediaSession ::initiateByMediaType (char const* mimeType, MediaSubsession*& resultSubsession, int useSpecialRTPoffset) { subsession->initiate }

7 MediaSubsession Boolean MediaSubsession::initiate
(doing the similar stuffs as testMP3Receiver.cpp) // Creates a "RTPSource" for this subsession 1> Create rtpSocket 2> Create rtcpSocket 3> Create RTPSource 4> Create RTCPIntance

8 3. testProgrommes for client

9 playCommon.cpp BasicTaskScheduler::createNew();
Initial parameters according to the parameters when executing openRTSP createClient which is executing RTSPClient::CreatNew() getOptionsResponse which is executing RTSPClient::sendOptionsCmd() getSDPDescriptionFromURL [which is executing RTSPClient::describeURL() MediaSession::createNew(*env, sdpDescription); subsession->initiate setup the "RTPSource"s for the session FileSink::createNew Create output files StartPlayingStreams() which is executing RTSPClient::playMediaSubsession() env->taskScheduler().doEventLoop(); // does not return


Download ppt "Sessions of both sides Client Server MediaSession ServerMediaSession"

Similar presentations


Ads by Google