Banuba SDK
Loading...
Searching...
No Matches
bnb::player_api::player Class Reference
Inheritance diagram for bnb::player_api::player:
bnb::player_api::interfaces::player

Static Public Member Functions

static std::shared_ptr< playercreate (uint32_t fps, const render_target_sptr &render_target, const render_delegate_sptr &render_delegate)

Additional Inherited Members

Public Types inherited from bnb::player_api::interfaces::player
enum class  render_mode : int32_t { loop , manual }
Public Member Functions inherited from bnb::player_api::interfaces::player
virtual void set_render_mode (render_mode new_render_mode)=0
 Set rendering mode to another.
virtual void play ()=0
 Resume the playback of the effect.
virtual void pause ()=0
 Pause the playback of the effect.
virtual effect_player_sptr get_effect_player ()=0
 Get an instance of the EffectPlayer.
virtual playeruse (const input_sptr &input)=0
 Use the new input to replace the old one.
virtual playeruse (const output_sptr &output)=0
 Add a new one output to output list.
virtual playerunuse (const output_sptr &output=nullptr)=0
 Remove one output.
virtual effect_sptr load (const std::string &url)=0
 Synchronous loading of an effect by name.
virtual effect_sptr load_async (const std::string &url)=0
 Load effect asynchronously by name.
virtual void eval_js (const std::string &script, js_callback_sptr callback)=0
 Evaluate the script in effect.
virtual int64_t render ()=0
 Draw and present rendered result synchronously, can be used only in manual rendering mode.

Detailed Description

Definition at line 10 of file player.hpp.


The documentation for this class was generated from the following file: