MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / startStreaming

Method startStreaming

src/output/StreamThreadRtcpBase.cpp:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49// =========================================================================
50
51bool StreamThreadRtcpBase::startStreaming(const int clientID) {
52
53 doStartStreaming(clientID);
54
55 const StreamClient &client = _stream.getStreamClient(clientID);
56
57 if (!_thread.startThread()) {
58 SI_LOG_ERROR("Stream: %d, Start %s stream to %s:%d ERROR", _stream.getStreamID(),
59 _protocol.c_str(), client.getIPAddressOfStream().c_str(), getStreamSocketPort(clientID));
60 return false;
61 }
62 SI_LOG_INFO("Stream: %d, Start %s stream to %s:%d", _stream.getStreamID(),
63 _protocol.c_str(), client.getIPAddressOfStream().c_str(), getStreamSocketPort(clientID));
64
65 _mon_update = 0;
66 return true;
67}
68
69bool StreamThreadRtcpBase::pauseStreaming(const int clientID) {
70 _thread.pauseThread();

Callers

nothing calls this directly

Calls 3

getIPAddressOfStreamMethod · 0.80
startThreadMethod · 0.45
getStreamIDMethod · 0.45

Tested by

no test coverage detected