Files
platform-external-webrtc/pc/video_rtp_track_source.cc
Markus Handell 15f2ff4610 VideoRtpReceiver: factor out VideoRtpTrackSource.
This change factors out VideoRtpTrackSource in preparation
of building the class out.

Bug: chromium:1013590
Change-Id: I015e285b9fcc10b39428dea9f74e0e8648385f62
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159925
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Markus Handell <handellm@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29870}
2019-11-22 10:13:59 +00:00

26 lines
777 B
C++

/*
* Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
*
* 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.
*/
#include "pc/video_rtp_track_source.h"
namespace webrtc {
VideoRtpTrackSource::VideoRtpTrackSource()
: VideoTrackSource(true /* remote */) {}
rtc::VideoSourceInterface<VideoFrame>* VideoRtpTrackSource::source() {
return &broadcaster_;
}
rtc::VideoSinkInterface<VideoFrame>* VideoRtpTrackSource::sink() {
return &broadcaster_;
}
} // namespace webrtc