MillicastSDK 2.0.0
Loading...
Searching...
No Matches
media.h
Go to the documentation of this file.
1#ifndef MILLICAST_API_MEDIA_H
2#define MILLICAST_API_MEDIA_H
3
11#include <vector>
12
15
16namespace millicast {
17
21namespace codec {
22/* Video */
23constexpr char H264_CODEC_NAME[] = "H264";
24constexpr char H265_CODEC_NAME[] = "H265";
25constexpr char VP8_CODEC_NAME[] = "VP8";
26constexpr char VP9_CODEC_NAME[] = "VP9";
27constexpr char AV1_CODEC_NAME[] = "AV1";
28
29/* Audio */
30constexpr char OPUS_CODEC_NAME[] = "opus";
31constexpr char MULTIOPUS_CODEC_NAME[] = "multiopus";
32} // namespace codec
33
39 public:
48 static std::vector<VideoSource::Ptr> get_video_sources();
49
58 static std::vector<AudioSource::Ptr> get_audio_sources();
59
68 static std::vector<AudioPlayback::Ptr> get_playback_devices();
69
75 static bool is_ndi_available();
76
83 static bool is_decklink_available();
84};
85
86} // namespace millicast
87
88#endif /* MILLICAST_API_MEDIA_H */
The Media class is used to manage media sources.
Definition media.h:38
static bool is_ndi_available()
is_ndi_available, check if ndi support is enabled in the sdk
static std::vector< AudioSource::Ptr > get_audio_sources()
get_audio_sources get all the available audio source (device, ndi, ...) this funcion will return only...
static bool is_decklink_available()
is_decklink_available, check if decklink devices support is enabled in the sdk
static std::vector< VideoSource::Ptr > get_video_sources()
get_video_sources get all the available video source (device, desktop, ...) this funcion will return ...
static std::vector< AudioPlayback::Ptr > get_playback_devices()
get_playback_devices, get all the available audio playback (device, ndi, ...) this funcion will retur...
#define MILLICAST_API
Definition exports.h:51
constexpr char VP9_CODEC_NAME[]
Definition media.h:26
constexpr char VP8_CODEC_NAME[]
Definition media.h:25
constexpr char MULTIOPUS_CODEC_NAME[]
Definition media.h:31
constexpr char OPUS_CODEC_NAME[]
Definition media.h:30
constexpr char H265_CODEC_NAME[]
Definition media.h:24
constexpr char AV1_CODEC_NAME[]
Definition media.h:27
constexpr char H264_CODEC_NAME[]
Definition media.h:23
Definition capabilities.h:15