2013-07-10 00:45:36 +00:00
|
|
|
/*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Copyright 2011 The WebRTC project authors. All Rights Reserved.
|
2013-07-10 00:45:36 +00:00
|
|
|
*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2013-07-10 00:45:36 +00:00
|
|
|
*/
|
|
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#ifndef WEBRTC_API_MEDIASTREAMPROXY_H_
|
|
|
|
|
#define WEBRTC_API_MEDIASTREAMPROXY_H_
|
2013-07-10 00:45:36 +00:00
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#include "webrtc/api/mediastreaminterface.h"
|
|
|
|
|
#include "webrtc/api/proxy.h"
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
BEGIN_PROXY_MAP(MediaStream)
|
|
|
|
|
PROXY_CONSTMETHOD0(std::string, label)
|
|
|
|
|
PROXY_METHOD0(AudioTrackVector, GetAudioTracks)
|
|
|
|
|
PROXY_METHOD0(VideoTrackVector, GetVideoTracks)
|
2014-07-29 17:36:52 +00:00
|
|
|
PROXY_METHOD1(rtc::scoped_refptr<AudioTrackInterface>,
|
2013-07-10 00:45:36 +00:00
|
|
|
FindAudioTrack, const std::string&)
|
2014-07-29 17:36:52 +00:00
|
|
|
PROXY_METHOD1(rtc::scoped_refptr<VideoTrackInterface>,
|
2013-07-10 00:45:36 +00:00
|
|
|
FindVideoTrack, const std::string&)
|
|
|
|
|
PROXY_METHOD1(bool, AddTrack, AudioTrackInterface*)
|
|
|
|
|
PROXY_METHOD1(bool, AddTrack, VideoTrackInterface*)
|
|
|
|
|
PROXY_METHOD1(bool, RemoveTrack, AudioTrackInterface*)
|
|
|
|
|
PROXY_METHOD1(bool, RemoveTrack, VideoTrackInterface*)
|
|
|
|
|
PROXY_METHOD1(void, RegisterObserver, ObserverInterface*)
|
|
|
|
|
PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*)
|
|
|
|
|
END_PROXY()
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#endif // WEBRTC_API_MEDIASTREAMPROXY_H_
|