-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathopenWFD.cpp
35 lines (25 loc) · 1.44 KB
/
openWFD.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Cheng Yao @ 2013
// :-D -- Stolen from live555/testProgs/openRTSP.cpp
#include "playCommon.hh"
WFDSink* ourWFDSink = NULL;
Medium* createClient(UsageEnvironment& env, char const* url, int verbosityLevel, char const* applicationName) {
extern portNumBits tunnelOverHTTPPortNum;
return ourWFDSink = WFDSink::createNew(env, url, verbosityLevel, applicationName, tunnelOverHTTPPortNum);
}
void setupSubsession(MediaSubsession* subsession, Boolean streamUsingTCP, WFDSink::responseHandler* afterFunc) {
Boolean forceMulticastOnUnspecified = False;
ourWFDSink->sendSETUPCommand(*subsession, afterFunc, False, streamUsingTCP, forceMulticastOnUnspecified, ourAuthenticator);
}
void startPlayingSession(MediaSession* session, double start, double end, float scale, WFDSink::responseHandler* afterFunc) {
ourWFDSink->sendPLAYCommand(*session, afterFunc, start, end, scale, ourAuthenticator);
}
void startPlayingSession(MediaSession* session, char const* absStartTime, char const* absEndTime, float scale, WFDSink::responseHandler* afterFunc) {
ourWFDSink->sendPLAYCommand(*session, afterFunc, absStartTime, absEndTime, scale, ourAuthenticator);
}
void tearDownSession(MediaSession* session, WFDSink::responseHandler* afterFunc) {
ourWFDSink->sendTEARDOWNCommand(*session, afterFunc, ourAuthenticator);
}
Boolean allowProxyServers = False;
Boolean controlConnectionUsesTCP = True;
Boolean supportCodecSelection = False;
char const* clientProtocolName = "WFD";