blob: ce36c34dd7967f066b43af927628a1d00a5ebe39 [file] [log] [blame]
Anders Carlsson9823ee42018-03-07 10:32:03 +01001/*
2 * Copyright 2018 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
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020011#include "sdk/objc/native/api/video_renderer.h"
Anders Carlsson9823ee42018-03-07 10:32:03 +010012
Karl Wiberg918f50c2018-07-05 11:40:33 +020013#include "absl/memory/memory.h"
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020014#include "sdk/objc/native/src/objc_video_renderer.h"
Anders Carlsson9823ee42018-03-07 10:32:03 +010015
16namespace webrtc {
17
18std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>> ObjCToNativeVideoRenderer(
19 id<RTCVideoRenderer> objc_video_renderer) {
Karl Wiberg918f50c2018-07-05 11:40:33 +020020 return absl::make_unique<ObjCVideoRenderer>(objc_video_renderer);
Anders Carlsson9823ee42018-03-07 10:32:03 +010021}
22
23} // namespace webrtc