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
|
|
|
*/
|
|
|
|
|
|
2021-05-26 18:56:30 +02:00
|
|
|
#ifndef PC_MEDIA_STREAM_PROXY_H_
|
|
|
|
|
#define PC_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"
|
2021-05-26 18:56:30 +02:00
|
|
|
#include "pc/proxy.h"
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2021-05-26 18:56:30 +02:00
|
|
|
// TODO(deadbeef): Move this to a .cc file. What threads methods are called on
|
|
|
|
|
// is an implementation detail.
|
2021-02-26 09:51:26 +01:00
|
|
|
BEGIN_PRIMARY_PROXY_MAP(MediaStream)
|
|
|
|
|
PROXY_PRIMARY_THREAD_DESTRUCTOR()
|
2020-09-10 13:04:50 +02:00
|
|
|
BYPASS_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&)
|
2022-04-21 11:35:43 +00:00
|
|
|
PROXY_METHOD1(bool, AddTrack, rtc::scoped_refptr<AudioTrackInterface>)
|
|
|
|
|
PROXY_METHOD1(bool, AddTrack, rtc::scoped_refptr<VideoTrackInterface>)
|
|
|
|
|
PROXY_METHOD1(bool, RemoveTrack, rtc::scoped_refptr<AudioTrackInterface>)
|
|
|
|
|
PROXY_METHOD1(bool, RemoveTrack, rtc::scoped_refptr<VideoTrackInterface>)
|
2013-07-10 00:45:36 +00:00
|
|
|
PROXY_METHOD1(void, RegisterObserver, ObserverInterface*)
|
|
|
|
|
PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*)
|
2021-05-27 21:42:57 +02:00
|
|
|
END_PROXY_MAP(MediaStream)
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2021-05-26 18:56:30 +02:00
|
|
|
#endif // PC_MEDIA_STREAM_PROXY_H_
|