Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::ext::video::VideoPlayer Struct Reference

Public Member Functions

 VideoPlayer (const int argc=0, const char *const *argv=nullptr)
 
bool loadMediaFromFile (const char *path)
 
bool loadMediaFromUrl (const char *url)
 
bool loadMedia (libvlc_media_t *media)
 
void play ()
 
void pause ()
 
bool isPlaying ()
 
void seekPercentagePosition (const float position)
 
float getPercentagePosition ()
 
void stop ()
 

Public Attributes

bool need_frame_update = false
 
std::mutex mutex
 

Constructor & Destructor Documentation

◆ VideoPlayer()

oe::ext::video::VideoPlayer::VideoPlayer ( const int  argc = 0,
const char *const *  argv = nullptr 
)
inline

Create and initialize a VideoPlayer instance.

The arguments are sent to libvlc and can be understood as "how the VLC main() function would be called"

See also
VLC manual for for availble command line arguments
Parameters
argcthe number of arguments
argvlist of arguments

Member Function Documentation

◆ getPercentagePosition()

float oe::ext::video::VideoPlayer::getPercentagePosition ( )
inline
Returns
Video position between 0.0f and 1.0f

◆ seekPercentagePosition()

void oe::ext::video::VideoPlayer::seekPercentagePosition ( const float  position)
inline
Parameters
positionVideo position between 0.0f and 1.0f

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