SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
stream_factory.hpp
1#ifndef SKYWAY_MEDIA_STREAM_FACTORY_HPP_
2#define SKYWAY_MEDIA_STREAM_FACTORY_HPP_
3
4#include "skyway/media/audio/interface/pcm_audio_source.hpp"
5#include "skyway/media/device_manager.hpp"
6#include "skyway/media/interface/capturer_video_source.hpp"
7#include "skyway/media/stream/local/local_audio_stream.hpp"
8#include "skyway/media/stream/local/local_data_stream.hpp"
9#include "skyway/media/stream/local/local_video_stream.hpp"
10
11namespace skyway {
12namespace media {
13
16public:
25 int preferred_width = 640;
30 };
31
33 static std::shared_ptr<stream::local::LocalDataStream> CreateDataStream();
34
36 static std::shared_ptr<stream::local::LocalAudioStream> CreateAudioStream();
37
40 static std::shared_ptr<stream::local::LocalAudioStream> CreateAudioStream(
41 std::shared_ptr<audio::interface::PcmAudioSource> source);
42
45 static std::shared_ptr<stream::local::LocalVideoStream> CreateVideoStream(
46 std::shared_ptr<interface::CapturerVideoSource> capturer);
47
53 static std::shared_ptr<stream::local::LocalVideoStream> CreateVideoStream(
54 const DeviceManager::VideoDevice& device);
55
62 static std::shared_ptr<stream::local::LocalVideoStream> CreateVideoStream(
63 const DeviceManager::VideoDevice& device, const CaptureOptions& options);
64
66 static std::shared_ptr<stream::local::LocalVideoStream> CreateVideoStream(
67 rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source);
69};
70} // namespace media
71} // namespace skyway
72
73#endif /* SKYWAY_MEDIA_STREAM_FACTORY_HPP_ */
Streamの作成を行うクラス
Definition stream_factory.hpp:15
static std::shared_ptr< stream::local::LocalDataStream > CreateDataStream()
LocalDataStreamを生成します。
static std::shared_ptr< stream::local::LocalVideoStream > CreateVideoStream(const DeviceManager::VideoDevice &device)
LocalVideoStreamを生成します。
static std::shared_ptr< stream::local::LocalVideoStream > CreateVideoStream(std::shared_ptr< interface::CapturerVideoSource > capturer)
LocalVideoStreamを生成します。
static std::shared_ptr< stream::local::LocalVideoStream > CreateVideoStream(const DeviceManager::VideoDevice &device, const CaptureOptions &options)
LocalVideoStreamを生成します。
static std::shared_ptr< stream::local::LocalAudioStream > CreateAudioStream()
LocalAudioStreamを生成します。
static std::shared_ptr< stream::local::LocalAudioStream > CreateAudioStream(std::shared_ptr< audio::interface::PcmAudioSource > source)
LocalAudioStreamを生成します。
映像デバイス
Definition device_manager.hpp:28
映像入力デバイスからStreamを生成する際の希望設定
Definition stream_factory.hpp:23
int preferred_height
希望する映像の縦幅
Definition stream_factory.hpp:27
int preferred_width
希望する映像の横幅
Definition stream_factory.hpp:25
int preferred_framerate
希望するフレームレート
Definition stream_factory.hpp:29