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
|
|
|
*/
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#ifndef API_MEDIA_STREAM_PROXY_H_
|
|
|
|
|
#define API_MEDIA_STREAM_PROXY_H_
|
2013-07-10 00:45:36 +00:00
|
|
|
|
2017-02-01 01:55:59 -08:00
|
|
|
#include <string>
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "api/media_stream_interface.h"
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "api/proxy.h"
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2017-02-08 01:38:21 -08:00
|
|
|
// TODO(deadbeef): Move this to .cc file and out of api/. What threads methods
|
|
|
|
|
// are called on is an implementation detail.
|
2016-04-15 03:49:07 -07:00
|
|
|
BEGIN_SIGNALING_PROXY_MAP(MediaStream)
|
2017-01-18 08:55:23 -08:00
|
|
|
PROXY_SIGNALING_THREAD_DESTRUCTOR()
|
2018-03-02 11:34:10 -08:00
|
|
|
PROXY_CONSTMETHOD0(std::string, id)
|
2013-07-10 00:45:36 +00:00
|
|
|
PROXY_METHOD0(AudioTrackVector, GetAudioTracks)
|
|
|
|
|
PROXY_METHOD0(VideoTrackVector, GetVideoTracks)
|
2014-07-29 17:36:52 +00:00
|
|
|
PROXY_METHOD1(rtc::scoped_refptr<AudioTrackInterface>,
|
2017-01-18 08:55:23 -08:00
|
|
|
FindAudioTrack,
|
|
|
|
|
const std::string&)
|
2014-07-29 17:36:52 +00:00
|
|
|
PROXY_METHOD1(rtc::scoped_refptr<VideoTrackInterface>,
|
2017-01-18 08:55:23 -08:00
|
|
|
FindVideoTrack,
|
|
|
|
|
const std::string&)
|
2013-07-10 00:45:36 +00:00
|
|
|
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*)
|
2017-01-18 08:55:23 -08:00
|
|
|
END_PROXY_MAP()
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#endif // API_MEDIA_STREAM_PROXY_H_
|