|
MythTV master
|
#include <libmythtv/recorders/cetonrtsp.h>
Public Member Functions | |
| CetonRTSP (const QString &ip, uint tuner, ushort port) | |
| CetonRTSP (const QUrl &url) | |
| ~CetonRTSP () override | |
| bool | GetOptions (QStringList &options) |
| bool | Describe (void) |
| bool | Setup (ushort clientPort1, ushort clientPort2, ushort &rtpPort, ushort &rtcpPort, uint32_t &ssrc) |
| bool | Play (void) |
| bool | Teardown (void) |
| void | StartKeepAlive (void) |
| void | StopKeepAlive (void) |
Protected Member Functions | |
| bool | ProcessRequest (const QString &method, const QStringList *headers=nullptr, bool use_control=false, bool waitforanswer=true, const QString &alternative=QString()) |
Private Member Functions | |
| QString | readParameters (const QString &key, Params ¶meters) |
| readParameters. More... | |
| QUrl | GetBaseUrl (void) |
| Return the base URL for the last DESCRIBE answer. More... | |
| void | timerEvent (QTimerEvent *event) override |
Private Attributes | |
| QTcpSocket * | m_socket {nullptr} |
| uint | m_sequenceNumber {0} |
| QString | m_sessionId {"0"} |
| QUrl | m_requestUrl |
| QUrl | m_controlUrl |
| int | m_responseCode {-1} |
| QString | m_responseMessage |
| Params | m_responseHeaders |
| QByteArray | m_responseContent |
| std::chrono::seconds | m_timeout {60s} |
| int | m_timer {0} |
| bool | m_canGetParameter {false} |
Static Private Attributes | |
| static QMutex | s_rtspMutex |
Definition at line 26 of file cetonrtsp.h.
|
explicit |
Definition at line 28 of file cetonrtsp.cpp.
|
explicit |
Definition at line 36 of file cetonrtsp.cpp.
|
override |
Definition at line 46 of file cetonrtsp.cpp.
| bool CetonRTSP::Describe | ( | void | ) |
Definition at line 310 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
|
private |
Return the base URL for the last DESCRIBE answer.
Definition at line 295 of file cetonrtsp.cpp.
Referenced by Describe().
| bool CetonRTSP::GetOptions | ( | QStringList & | options | ) |
Definition at line 247 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
| bool CetonRTSP::Play | ( | void | ) |
Definition at line 438 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
|
protected |
Definition at line 51 of file cetonrtsp.cpp.
Referenced by Describe(), GetOptions(), Play(), Setup(), Teardown(), and timerEvent().
|
private |
readParameters.
Scan a line like: Session: 1234556;destination=xx;client_port and return the first entry and fill the arguments in the provided Params
Definition at line 264 of file cetonrtsp.cpp.
Referenced by Setup().
| bool CetonRTSP::Setup | ( | ushort | clientPort1, |
| ushort | clientPort2, | ||
| ushort & | rtpPort, | ||
| ushort & | rtcpPort, | ||
| uint32_t & | ssrc | ||
| ) |
Definition at line 383 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
| void CetonRTSP::StartKeepAlive | ( | void | ) |
Definition at line 461 of file cetonrtsp.cpp.
Referenced by Play().
| void CetonRTSP::StopKeepAlive | ( | void | ) |
Definition at line 471 of file cetonrtsp.cpp.
Referenced by Teardown(), and ~CetonRTSP().
| bool CetonRTSP::Teardown | ( | void | ) |
Definition at line 446 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
|
overrideprivate |
Definition at line 481 of file cetonrtsp.cpp.
|
private |
Definition at line 68 of file cetonrtsp.h.
Referenced by GetOptions(), and timerEvent().
|
private |
Definition at line 60 of file cetonrtsp.h.
Referenced by Describe(), and ProcessRequest().
|
private |
Definition at line 59 of file cetonrtsp.h.
Referenced by CetonRTSP(), GetBaseUrl(), and ProcessRequest().
|
private |
Definition at line 62 of file cetonrtsp.h.
Referenced by ProcessRequest().
|
private |
Definition at line 65 of file cetonrtsp.h.
Referenced by Describe(), and ProcessRequest().
|
private |
Definition at line 64 of file cetonrtsp.h.
Referenced by GetBaseUrl(), GetOptions(), ProcessRequest(), and readParameters().
|
private |
Definition at line 63 of file cetonrtsp.h.
Referenced by ProcessRequest().
|
private |
Definition at line 57 of file cetonrtsp.h.
Referenced by ProcessRequest().
|
private |
Definition at line 58 of file cetonrtsp.h.
Referenced by ProcessRequest(), Setup(), and Teardown().
|
private |
Definition at line 56 of file cetonrtsp.h.
Referenced by ProcessRequest(), and Teardown().
|
private |
Definition at line 66 of file cetonrtsp.h.
Referenced by Setup(), and StartKeepAlive().
|
private |
Definition at line 67 of file cetonrtsp.h.
Referenced by StartKeepAlive(), and StopKeepAlive().
|
staticprivate |
Definition at line 70 of file cetonrtsp.h.
Referenced by ProcessRequest(), and Teardown().