By default, the Video and VideoRef components use the You.i Platform video player (CYIAbstractVideoPlayer).
To use a custom video player:
Set the video player factory function from your app’s UserInit()
function in <MyApp>/youi/src/App.cpp
:
#include <youireact/VideoPlayerFactory.h>
// ...
bool MyApp::UserInit()
{
// ...
yi::react::VideoPlayerFactory::SetFactoryFunction([]
{
return std::make_unique<MyVideoPlayer>();
});
// ...
}
The VideoPlayerFactory is a global factory that is used by the Video and VideoRef components when a player is to be instantiated.
No results yet. Please begin typing a keyword to search the You.i TV Developer Portal...
Try to search with a different keyword or remove search filters.