Thanks to visit codestin.com
Credit goes to webrtc.googlesource.com

blob: 4799954f6e3f2527a1982585ce26cabe0c95ca35 [file] [log] [blame]
Markus Handelle93fe6c2021-05-20 20:46:311/*
2 * Copyright 2021 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef API_VIDEO_TRACK_SOURCE_PROXY_FACTORY_H_
12#define API_VIDEO_TRACK_SOURCE_PROXY_FACTORY_H_
13
14#include "api/media_stream_interface.h"
Dor Hen28ce65c2024-09-04 11:55:2215#include "api/scoped_refptr.h"
16#include "rtc_base/system/rtc_export.h"
Mirko Bonadei9d9c2d52022-10-07 21:47:4917#include "rtc_base/thread.h"
Markus Handelle93fe6c2021-05-20 20:46:3118
19namespace webrtc {
20
Artem Titov0e61fdd2021-07-25 19:50:1421// Creates a proxy source for `source` which makes sure the real
Markus Handelle93fe6c2021-05-20 20:46:3122// VideoTrackSourceInterface implementation is destroyed on the signaling thread
Artem Titov0e61fdd2021-07-25 19:50:1423// and marshals calls to `worker_thread` and `signaling_thread`.
Evan Shrubsoleee5ab342025-04-15 14:49:4624scoped_refptr<VideoTrackSourceInterface> RTC_EXPORT
Evan Shrubsole6a9a1ae2025-03-21 12:54:1525CreateVideoTrackSourceProxy(Thread* signaling_thread,
26 Thread* worker_thread,
Markus Handelle93fe6c2021-05-20 20:46:3127 VideoTrackSourceInterface* source);
28
29} // namespace webrtc
30
31#endif // API_VIDEO_TRACK_SOURCE_PROXY_FACTORY_H_