4040template <class T >
4141class TrackSource : public webrtc ::VideoTrackSource {
4242public:
43- static rtc ::scoped_refptr<TrackSource> Create (const std::string & videourl, const std::map<std::string, std::string> & opts, std::unique_ptr<webrtc::VideoDecoderFactory>& videoDecoderFactory) {
43+ static webrtc ::scoped_refptr<TrackSource> Create (const std::string & videourl, const std::map<std::string, std::string> & opts, std::unique_ptr<webrtc::VideoDecoderFactory>& videoDecoderFactory) {
4444 std::unique_ptr<T> capturer = absl::WrapUnique (T::Create (videourl, opts, videoDecoderFactory));
4545 if (!capturer) {
4646 return nullptr ;
4747 }
48- return rtc ::make_ref_counted<TrackSource>(std::move (capturer));
48+ return webrtc ::make_ref_counted<TrackSource>(std::move (capturer));
4949 }
5050
5151 virtual bool GetStats (Stats* stats) override {
@@ -69,7 +69,7 @@ class TrackSource : public webrtc::VideoTrackSource {
6969 }
7070
7171private:
72- rtc ::VideoSourceInterface<webrtc::VideoFrame>* source () override {
72+ webrtc ::VideoSourceInterface<webrtc::VideoFrame>* source () override {
7373 return m_capturer.get ();
7474 }
7575 std::unique_ptr<T> m_capturer;
@@ -166,8 +166,8 @@ class CapturerFactory {
166166 return videoList;
167167 }
168168
169- static rtc ::scoped_refptr<webrtc::VideoTrackSourceInterface> CreateVideoSource (const std::string & videourl, const std::map<std::string,std::string> & opts, const std::regex & publishFilter, rtc ::scoped_refptr<webrtc::PeerConnectionFactoryInterface> peer_connection_factory, std::unique_ptr<webrtc::VideoDecoderFactory>& videoDecoderFactory) {
170- rtc ::scoped_refptr<webrtc::VideoTrackSourceInterface> videoSource;
169+ static webrtc ::scoped_refptr<webrtc::VideoTrackSourceInterface> CreateVideoSource (const std::string & videourl, const std::map<std::string,std::string> & opts, const std::regex & publishFilter, webrtc ::scoped_refptr<webrtc::PeerConnectionFactoryInterface> peer_connection_factory, std::unique_ptr<webrtc::VideoDecoderFactory>& videoDecoderFactory) {
170+ webrtc ::scoped_refptr<webrtc::VideoTrackSourceInterface> videoSource;
171171 if ( ((videourl.find (" rtsp://" ) == 0 ) || (videourl.find (" rtsps://" ) == 0 ) ) && (std::regex_match (" rtsp://" , publishFilter))) {
172172#ifdef HAVE_LIVE555
173173 videoSource = TrackSource<RTSPVideoCapturer>::Create (videourl,opts, videoDecoderFactory);
@@ -213,7 +213,7 @@ class CapturerFactory {
213213 return videoSource;
214214 }
215215
216- static const std::list<std::string> GetAudioCaptureDeviceList (const std::regex & publishFilter, rtc ::scoped_refptr<webrtc::AudioDeviceModule> audioDeviceModule) {
216+ static const std::list<std::string> GetAudioCaptureDeviceList (const std::regex & publishFilter, webrtc ::scoped_refptr<webrtc::AudioDeviceModule> audioDeviceModule) {
217217 std::list<std::string> audioList;
218218 if (std::regex_match (" audiocap://" , publishFilter))
219219 {
@@ -237,7 +237,7 @@ class CapturerFactory {
237237 return audioList;
238238 }
239239
240- static const std::list<std::string> GetAudioPlayoutDeviceList (const std::regex & publishFilter, rtc ::scoped_refptr<webrtc::AudioDeviceModule> audioDeviceModule) {
240+ static const std::list<std::string> GetAudioPlayoutDeviceList (const std::regex & publishFilter, webrtc ::scoped_refptr<webrtc::AudioDeviceModule> audioDeviceModule) {
241241 std::list<std::string> audioList;
242242 if (std::regex_match (" audioplay://" , publishFilter))
243243 {
@@ -261,13 +261,13 @@ class CapturerFactory {
261261 return audioList;
262262 }
263263
264- static rtc ::scoped_refptr<webrtc::AudioSourceInterface> CreateAudioSource (const std::string & audiourl,
264+ static webrtc ::scoped_refptr<webrtc::AudioSourceInterface> CreateAudioSource (const std::string & audiourl,
265265 const std::map<std::string,std::string> & opts,
266266 const std::regex & publishFilter,
267- rtc ::scoped_refptr<webrtc::PeerConnectionFactoryInterface> peer_connection_factory,
268- rtc ::scoped_refptr<webrtc::AudioDecoderFactory> audioDecoderfactory,
269- rtc ::scoped_refptr<webrtc::AudioDeviceModule> audioDeviceModule) {
270- rtc ::scoped_refptr<webrtc::AudioSourceInterface> audioSource;
267+ webrtc ::scoped_refptr<webrtc::PeerConnectionFactoryInterface> peer_connection_factory,
268+ webrtc ::scoped_refptr<webrtc::AudioDecoderFactory> audioDecoderfactory,
269+ webrtc ::scoped_refptr<webrtc::AudioDeviceModule> audioDeviceModule) {
270+ webrtc ::scoped_refptr<webrtc::AudioSourceInterface> audioSource;
271271
272272 if ( (audiourl.find (" rtsp://" ) == 0 ) && (std::regex_match (" rtsp://" ,publishFilter)) )
273273 {
@@ -302,7 +302,7 @@ class CapturerFactory {
302302 if ( (idx_audioDevice >= 0 ) && (idx_audioDevice < num_audioDevices) )
303303 {
304304 audioDeviceModule->SetRecordingDevice (idx_audioDevice);
305- cricket ::AudioOptions opt;
305+ webrtc ::AudioOptions opt;
306306 audioSource = peer_connection_factory->CreateAudioSource (opt);
307307 }
308308 }
0 commit comments