SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
stream_factory.hpp
1//
2// © NTT DOCOMO BUSINESS, Inc. All Rights Reserved.
3//
4
5#ifndef SKYWAY_MEDIA_STREAM_FACTORY_HPP_
6#define SKYWAY_MEDIA_STREAM_FACTORY_HPP_
7
8#include "skyway/media/device_manager.hpp"
9
10#include <skyway/core/stream/local/audio_stream.hpp>
11#include <skyway/core/stream/local/data_stream.hpp>
12#include <skyway/core/stream/local/video_stream.hpp>
13
14#include "skyway/media/audio/interface/pcm_audio_source.hpp"
15#include "skyway/media/interface/capturer_video_source.hpp"
16
17namespace skyway {
18namespace media {
19
22public:
24 static std::shared_ptr<core::stream::local::LocalDataStream> CreateDataStream();
25
27 static std::shared_ptr<core::stream::local::LocalAudioStream> CreateAudioStream();
28
31 static std::shared_ptr<core::stream::local::LocalAudioStream> CreateAudioStream(
32 std::shared_ptr<audio::interface::PcmAudioSource> source);
33
36 static std::shared_ptr<core::stream::local::LocalVideoStream> CreateVideoStream(
37 std::shared_ptr<interface::CapturerVideoSource> capturer);
38
41 static std::shared_ptr<core::stream::local::LocalVideoStream> CreateVideoStream(
42 const DeviceManager::VideoDevice& device);
43
45 static std::shared_ptr<core::stream::local::LocalVideoStream> CreateVideoStream(
46 rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source);
48};
49} // namespace media
50} // namespace skyway
51
52#endif /* SKYWAY_MEDIA_STREAM_FACTORY_HPP_ */
Streamの作成を行うクラス
Definition stream_factory.hpp:21
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::LocalAudioStream > CreateAudioStream(std::shared_ptr< audio::interface::PcmAudioSource > source)
LocalAudioStreamを生成します。
static std::shared_ptr< core::stream::local::LocalVideoStream > CreateVideoStream(const DeviceManager::VideoDevice &device)
LocalVideoStreamを生成します。
映像デバイス
Definition device_manager.hpp:39