|
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 |
Static Private Member Functions | |
| static QStringList | splitLines (const QByteArray &lines) |
| splitLines. More... | |
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 24 of file cetonrtsp.cpp.
|
explicit |
Definition at line 32 of file cetonrtsp.cpp.
|
override |
Definition at line 42 of file cetonrtsp.cpp.
| bool CetonRTSP::Describe | ( | void | ) |
Definition at line 327 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
|
private |
Return the base URL for the last DESCRIBE answer.
Definition at line 314 of file cetonrtsp.cpp.
Referenced by Describe().
| bool CetonRTSP::GetOptions | ( | QStringList & | options | ) |
Definition at line 244 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
| bool CetonRTSP::Play | ( | void | ) |
Definition at line 453 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
|
protected |
Definition at line 47 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 283 of file cetonrtsp.cpp.
Referenced by Setup().
| bool CetonRTSP::Setup | ( | ushort | clientPort1, |
| ushort | clientPort2, | ||
| ushort & | rtpPort, | ||
| ushort & | rtcpPort, | ||
| uint32_t & | ssrc | ||
| ) |
Definition at line 398 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
|
staticprivate |
splitLines.
prepare SDP content for easy read
Definition at line 260 of file cetonrtsp.cpp.
Referenced by Describe().
| void CetonRTSP::StartKeepAlive | ( | void | ) |
Definition at line 476 of file cetonrtsp.cpp.
Referenced by Play().
| void CetonRTSP::StopKeepAlive | ( | void | ) |
Definition at line 486 of file cetonrtsp.cpp.
Referenced by Teardown(), and ~CetonRTSP().
| bool CetonRTSP::Teardown | ( | void | ) |
Definition at line 461 of file cetonrtsp.cpp.
Referenced by IPTVStreamHandler::run().
|
overrideprivate |
Definition at line 496 of file cetonrtsp.cpp.
Definition at line 69 of file cetonrtsp.h.
Referenced by GetOptions(), and timerEvent().
|
private |
Definition at line 61 of file cetonrtsp.h.
Referenced by Describe(), and ProcessRequest().
|
private |
Definition at line 60 of file cetonrtsp.h.
Referenced by CetonRTSP(), GetBaseUrl(), and ProcessRequest().
|
private |
Definition at line 63 of file cetonrtsp.h.
Referenced by ProcessRequest().
|
private |
Definition at line 66 of file cetonrtsp.h.
Referenced by Describe(), and ProcessRequest().
|
private |
Definition at line 65 of file cetonrtsp.h.
Referenced by GetBaseUrl(), GetOptions(), ProcessRequest(), and readParameters().
|
private |
Definition at line 64 of file cetonrtsp.h.
Referenced by ProcessRequest().
|
private |
Definition at line 58 of file cetonrtsp.h.
Referenced by ProcessRequest().
|
private |
Definition at line 59 of file cetonrtsp.h.
Referenced by ProcessRequest(), Setup(), and Teardown().
|
private |
Definition at line 57 of file cetonrtsp.h.
Referenced by ProcessRequest(), and Teardown().
|
private |
Definition at line 67 of file cetonrtsp.h.
Referenced by Setup(), and StartKeepAlive().
|
private |
Definition at line 68 of file cetonrtsp.h.
Referenced by StartKeepAlive(), and StopKeepAlive().
|
staticprivate |
Definition at line 71 of file cetonrtsp.h.
Referenced by ProcessRequest(), and Teardown().