| 49 | // ========================================================================= |
| 50 | |
| 51 | bool 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 | |
| 69 | bool StreamThreadRtcpBase::pauseStreaming(const int clientID) { |
| 70 | _thread.pauseThread(); |
nothing calls this directly
no test coverage detected