forked from mpromonet/webrtc-streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rtspvideocapturer.cpp
executable file
·34 lines (24 loc) · 1004 Bytes
/
rtspvideocapturer.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
/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** rtspvideocapturer.cpp
**
** -------------------------------------------------------------------------*/
#ifdef HAVE_LIVE555
#include "rtc_base/logging.h"
#include "rtspvideocapturer.h"
RTSPVideoCapturer::RTSPVideoCapturer(const std::string & uri, const std::map<std::string,std::string> & opts, std::unique_ptr<webrtc::VideoDecoderFactory>& videoDecoderFactory)
: LiveVideoSource(uri, opts, videoDecoderFactory, false)
{
RTC_LOG(INFO) << "RTSPVideoCapturer " << uri ;
}
RTSPVideoCapturer::~RTSPVideoCapturer()
{
}
void RTSPVideoCapturer::onError(RTSPConnection& connection, const char* error) {
RTC_LOG(LS_ERROR) << "RTSPVideoCapturer:onError url:" << m_liveclient.getUrl() << " error:" << error;
connection.start(1);
}
#endif