This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofGstVideoPlayer.h
Go to the documentation of this file.
Definition ofGstUtils.h:244
Definition ofGstVideoPlayer.h:6
void loadAsync(std::string name)
Asynchronously load a video resource by name.
Definition ofGstVideoPlayer.cpp:190
float getHeight() const
Get the height in pixels of the loaded video.
Definition ofGstVideoPlayer.cpp:438
bool load(std::string uri)
Load a video resource by name.
Definition ofGstVideoPlayer.cpp:195
void setFrameByFrame(bool frameByFrame)
Definition ofGstVideoPlayer.cpp:450
void setLoopState(ofLoopType state)
Set the video loop state.
Definition ofGstVideoPlayer.cpp:405
virtual bool on_message(GstMessage *msg)
Definition ofGstVideoPlayer.h:72
float getWidth() const
Get the width in pixels of the loaded video.
Definition ofGstVideoPlayer.cpp:442
float getPosition() const
Get the current playhead position of the loaded video.
Definition ofGstVideoPlayer.cpp:381
void setFrame(int frame)
Set the current frame by frame number.
Definition ofGstVideoPlayer.cpp:344
void setPosition(float pct)
Set the position of the playhead.
Definition ofGstVideoPlayer.cpp:397
void nextFrame()
Advance the playhead forward one frame.
Definition ofGstVideoPlayer.cpp:334
bool getIsMovieDone() const
Returns true if the loaded video has finished playing.
Definition ofGstVideoPlayer.cpp:393
void play()
Play the video from the current playhead position.
Definition ofGstVideoPlayer.cpp:357
ofLoopType getLoopState() const
Get the current loop state of the video.
Definition ofGstVideoPlayer.cpp:409
void setThreadAppSink(bool threaded)
Definition ofGstVideoPlayer.cpp:235
bool isThreadedAppSink() const
Definition ofGstVideoPlayer.cpp:454
float getSpeed() const
Get the playback speed of the video player.
Definition ofGstVideoPlayer.cpp:385
ofPixels & getPixels()
Get a reference to the underlying ofPixels.
Definition ofGstVideoPlayer.cpp:426
float getDuration() const
Get the duration of the loaded video in seconds.
Definition ofGstVideoPlayer.cpp:389
int getTotalNumFrames() const
Get the total number of frames in the currently loaded video.
Definition ofGstVideoPlayer.cpp:326
void firstFrame()
Set the playhead position to the first frame.
Definition ofGstVideoPlayer.cpp:330
int getCurrentFrame() const
Get the current playhead position as a frame number.
Definition ofGstVideoPlayer.cpp:308
void stop()
Pause and reset the playhead position to the first frame.
Definition ofGstVideoPlayer.cpp:361
void setPaused(bool bPause)
Set the paused state of the video.
Definition ofGstVideoPlayer.cpp:365
bool createPipeline(std::string uri)
Definition ofGstVideoPlayer.cpp:41
bool isLoaded() const
Returns true if a video is loaded.
Definition ofGstVideoPlayer.cpp:373
ofGstVideoUtils * getGstVideoUtils()
Definition ofGstVideoPlayer.cpp:446
void previousFrame()
Advance the playhead backward one frame.
Definition ofGstVideoPlayer.cpp:339
bool isPaused() const
Returns true if the video is paused.
Definition ofGstVideoPlayer.cpp:369
bool setPixelFormat(ofPixelFormat pixelFormat)
needs to be called before loadMovie
Definition ofGstVideoPlayer.cpp:31
ofPixelFormat getPixelFormat() const
Definition ofGstVideoPlayer.cpp:36
void setVolume(float volume)
Set the volume of the video player.
Definition ofGstVideoPlayer.cpp:401
bool isPlaying() const
Returns true if the loaded video is playing.
Definition ofGstVideoPlayer.cpp:377
ofTexture * getTexturePtr()
Get a pointer to the video texture used internally if it exists.
Definition ofGstVideoPlayer.cpp:434
void setSpeed(float speed)
Set the video playback speed.
Definition ofGstVideoPlayer.cpp:413
Definition ofGstUtils.h:156
ofLoopType
Used to represent the available video looping modes.
Definition ofVideoBaseTypes.h:11