SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
stream_factory.hpp
1//
2// stream_factory.hpp
3// skyway
4//
5// Created by iorar on 2024/10/28.
6// Copyright © 2024 NTT Communications. All rights reserved.
7//
8
9#ifndef SKYWAY_MEDIA_STREAM_FACTORY_HPP_
10#define SKYWAY_MEDIA_STREAM_FACTORY_HPP_
11
12#include "skyway/media/device_manager.hpp"
13
14#include <skyway/core/stream/local/audio_stream.hpp>
15#include <skyway/core/stream/local/data_stream.hpp>
16#include <skyway/core/stream/local/video_stream.hpp>
17
18#include "skyway/media/interface/capturer_video_source.hpp"
19
20namespace skyway {
21namespace media {
22
25public:
27 static std::shared_ptr<core::stream::local::LocalDataStream> CreateDataStream();
28
30 static std::shared_ptr<core::stream::local::LocalAudioStream> CreateAudioStream();
31
34 static std::shared_ptr<core::stream::local::LocalVideoStream> CreateVideoStream(
35 std::shared_ptr<interface::CapturerVideoSource> capturer);
36
39 static std::shared_ptr<core::stream::local::LocalVideoStream> CreateVideoStream(
40 const DeviceManager::VideoDevice& device);
41
43 static std::shared_ptr<core::stream::local::LocalVideoStream> CreateVideoStream(
44 rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source);
46};
47} // namespace media
48} // namespace skyway
49
50#endif /* SKYWAY_MEDIA_STREAM_FACTORY_HPP_ */
Streamの作成を行うクラス
Definition stream_factory.hpp:24
static std::shared_ptr< core::stream::local::LocalDataStream > CreateDataStream()
LocalDataStreamを生成します。
static std::shared_ptr< core::stream::local::LocalVideoStream > CreateVideoStream(std::shared_ptr< interface::CapturerVideoSource > capturer)
LocalVideoStreamを生成します。
static std::shared_ptr< core::stream::local::LocalAudioStream > CreateAudioStream()
LocalAudioStreamを生成します。
static std::shared_ptr< core::stream::local::LocalVideoStream > CreateVideoStream(const DeviceManager::VideoDevice &device)
LocalVideoStreamを生成します。
映像デバイス
Definition device_manager.hpp:33