1#ifndef MILLICAST_API_RENDERER_H
2#define MILLICAST_API_RENDERER_H
150#if defined MILLICAST_SDK_TVOS || defined MILLICAST_SDK_IOS
154 IosVideoRenderer() =
default;
155 virtual ~IosVideoRenderer() =
default;
157 virtual void* get_uiview() = 0;
158 virtual float width() = 0;
159 virtual float height() = 0;
161 static IosVideoRenderer* create();
163 std::function<void(
float,
float)> did_change_video_size;
The AudioRenderer class is responsible for rendering audio in a specific way in your application.
Definition renderer.h:70
virtual void on_frame(const AudioFrame &frame)=0
Called when a new audio frame becomes available.
virtual ~AudioRenderer()=default
The DeckLinkRenderer class is used to render video on a DeckLink device.
Definition renderer.h:92
static MILLICAST_API DeckLinkRenderer * create()
Create a DeckLink renderer.
virtual MILLICAST_API void stop()=0
~DeckLinkRenderer() override=default
DeckLinkRenderer()=default
static MILLICAST_API std::vector< VideoSource::Ptr > get_decklink_devices()
Get all decklink devices that can output video.
virtual MILLICAST_API void set_source(VideoSource::Ptr device)=0
Set the decklink device to used to render video.
The NdiRenderer class is used to render video as an ndi source.
Definition renderer.h:128
static MILLICAST_API NdiRenderer * create()
Create an Ndi renderer.
virtual MILLICAST_API void set_name(const std::string &)=0
Set the name of the ndi source. This is the name that will be displayed to other ndi application when...
~NdiRenderer() override=default
The Renderer base class. A renderer is used to render video on screen or render audio.
Definition renderer.h:26
virtual ~Renderer()=default
virtual void init()=0
init the renderer
The VideoFrame class used to described a VideoFrame.
Definition frames.h:15
The VideoRenderer class Inherits this class to receive video frames and render them in your applicati...
Definition renderer.h:46
virtual void on_frame(const VideoFrame &frame)=0
on_frame is called when a new video frame is available ( either captured or received from a peer )
~VideoRenderer() override=default
Source::SourcePtr< VideoSource > Ptr
Definition source.h:161
#define MILLICAST_API
Definition exports.h:51
Definition capabilities.h:15
The AudioFrame struct used to described audio data.
Definition frames.h:105