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
17
namespace
skyway {
18
namespace
media {
19
21
class
StreamFactory
{
22
public
:
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_ */
skyway::media::StreamFactory
Streamの作成を行うクラス
Definition
stream_factory.hpp:21
skyway::media::StreamFactory::CreateDataStream
static std::shared_ptr< core::stream::local::LocalDataStream > CreateDataStream()
LocalDataStreamを生成します。
skyway::media::StreamFactory::CreateVideoStream
static std::shared_ptr< core::stream::local::LocalVideoStream > CreateVideoStream(std::shared_ptr< interface::CapturerVideoSource > capturer)
LocalVideoStreamを生成します。
skyway::media::StreamFactory::CreateAudioStream
static std::shared_ptr< core::stream::local::LocalAudioStream > CreateAudioStream()
LocalAudioStreamを生成します。
skyway::media::StreamFactory::CreateAudioStream
static std::shared_ptr< core::stream::local::LocalAudioStream > CreateAudioStream(std::shared_ptr< audio::interface::PcmAudioSource > source)
LocalAudioStreamを生成します。
skyway::media::StreamFactory::CreateVideoStream
static std::shared_ptr< core::stream::local::LocalVideoStream > CreateVideoStream(const DeviceManager::VideoDevice &device)
LocalVideoStreamを生成します。
skyway::media::DeviceManager::VideoDevice
映像デバイス
Definition
device_manager.hpp:39
include
skyway
media
stream_factory.hpp
構築:
1.9.8