![]() |
Banuba SDK
|
Static Public Member Functions | |
| static std::shared_ptr< player > | create (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 | render_mode : int32_t { render_mode::loop, render_mode::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. More... | |
| 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 player & | use (const input_sptr &input)=0 |
| Use the new input to replace the old one. More... | |
| virtual player & | use (const output_sptr &output)=0 |
| Add a new one output to output list. More... | |
| virtual player & | unuse (const output_sptr &output=nullptr)=0 |
| Remove one output. More... | |
| virtual effect_sptr | load (const std::string &url)=0 |
| Synchronous loading of an effect by name. More... | |
| virtual effect_sptr | load_async (const std::string &url)=0 |
| Load effect asynchronously by name. More... | |
| virtual void | eval_js (const std::string &script, js_callback_sptr callback)=0 |
Evaluate the script in effect. More... | |
| virtual int64_t | render ()=0 |
Draw and present rendered result synchronously, can be used only in manual rendering mode. More... | |
Definition at line 10 of file player.hpp.
1.8.17