This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofAVFoundationPlayer.h
Go to the documentation of this file.
88 OF_DEPRECATED_MSG("ofAVFoundationPlayer::loadMovie() is deprecated, use load() instead.", bool loadMovie(std::string name));
89 OF_DEPRECATED_MSG("ofAVFoundationPlayer::getPixelsRef() is deprecated, use getPixels() instead.", ofPixels & getPixelsRef());
90 OF_DEPRECATED_MSG("ofAVFoundationPlayer::getPixelsRef() is deprecated, use getPixels() instead.", const ofPixels & getPixelsRef() const);
91 OF_DEPRECATED_MSG("ofAVFoundationPlayer::getTexture() is deprecated, use getTexturePtr() instead.", ofTexture * getTexture());
Definition ofAVFoundationPlayer.h:22
void setPosition(float pct)
Set the position of the playhead.
Definition ofAVFoundationPlayer.mm:646
void setFrame(int frame)
Set the current frame by frame number.
Definition ofAVFoundationPlayer.mm:685
bool load(std::string name)
Load a video resource by name.
Definition ofAVFoundationPlayer.mm:60
bool isPlaying() const
Returns true if the loaded video is playing.
Definition ofAVFoundationPlayer.mm:588
void setVolume(float volume)
Set the volume of the video player.
Definition ofAVFoundationPlayer.mm:655
bool getIsMovieDone() const
Returns true if the loaded video has finished playing.
Definition ofAVFoundationPlayer.mm:624
ofPixelFormat getPixelFormat() const
Definition ofAVFoundationPlayer.mm:220
bool isPaused() const
Returns true if the video is paused.
Definition ofAVFoundationPlayer.mm:561
void close()
Close the video source.
Definition ofAVFoundationPlayer.mm:181
ofLoopType getLoopState() const
Get the current loop state of the video.
Definition ofAVFoundationPlayer.mm:710
void firstFrame()
Set the playhead position to the first frame.
Definition ofAVFoundationPlayer.mm:723
void stop()
Pause and reset the playhead position to the first frame.
Definition ofAVFoundationPlayer.mm:283
ofTexture * getTexturePtr()
Get a pointer to the video texture used internally if it exists.
Definition ofAVFoundationPlayer.mm:384
int getCurrentFrame() const
Get the current playhead position as a frame number.
Definition ofAVFoundationPlayer.mm:694
OF_DEPRECATED_MSG("ofAVFoundationPlayer::getPixelsRef() is deprecated, use getPixels() instead.", ofPixels &getPixelsRef())
bool setPixelFormat(ofPixelFormat pixelFormat)
Set the requested ofPixelFormat.
Definition ofAVFoundationPlayer.mm:198
void loadAsync(std::string name)
Asynchronously load a video resource by name.
Definition ofAVFoundationPlayer.mm:55
~ofAVFoundationPlayer()
Definition ofAVFoundationPlayer.mm:30
void update()
Update the object's state.
Definition ofAVFoundationPlayer.mm:225
void nextFrame()
Advance the playhead forward one frame.
Definition ofAVFoundationPlayer.mm:732
void setLoopState(ofLoopType state)
Set the video loop state.
Definition ofAVFoundationPlayer.mm:667
bool isLoaded() const
Returns true if a video is loaded.
Definition ofAVFoundationPlayer.mm:570
ofAVFoundationPlayer & operator=(ofAVFoundationPlayer other)
Definition ofAVFoundationPlayer.mm:35
void previousFrame()
Advance the playhead backward one frame.
Definition ofAVFoundationPlayer.mm:741
void setSpeed(float speed)
Set the video playback speed.
Definition ofAVFoundationPlayer.mm:676
void * getAVFoundationVideoPlayer()
Definition ofAVFoundationPlayer.mm:758
OF_DEPRECATED_MSG("ofAVFoundationPlayer::getPixelsRef() is deprecated, use getPixels() instead.", const ofPixels &getPixelsRef() const)
ofAVFoundationPlayer()
Definition ofAVFoundationPlayer.mm:18
float getHeight() const
Get the height in pixels of the loaded video.
Definition ofAVFoundationPlayer.mm:552
float getSpeed() const
Get the playback speed of the video player.
Definition ofAVFoundationPlayer.mm:606
float getWidth() const
Get the width in pixels of the loaded video.
Definition ofAVFoundationPlayer.mm:543
void setPaused(bool bPause)
Set the paused state of the video.
Definition ofAVFoundationPlayer.mm:633
float getDuration() const
Get the duration of the loaded video in seconds.
Definition ofAVFoundationPlayer.mm:615
const ofPixels & getPixels() const
Get a const reference to the underlying ofPixels.
Definition ofAVFoundationPlayer.mm:300
int getTotalNumFrames() const
Get the total number of frames in the currently loaded video.
Definition ofAVFoundationPlayer.mm:702
bool loadPlayer(std::string name, bool bAsync)
Definition ofAVFoundationPlayer.mm:65
OF_DEPRECATED_MSG("ofAVFoundationPlayer::getTexture() is deprecated, use getTexturePtr() instead.", ofTexture *getTexture())
float getPosition() const
Get the current playhead position of the loaded video.
Definition ofAVFoundationPlayer.mm:597
void play()
Play the video from the current playhead position.
Definition ofAVFoundationPlayer.mm:274
OF_DEPRECATED_MSG("ofAVFoundationPlayer::loadMovie() is deprecated, use load() instead.", bool loadMovie(std::string name))
Definition ofAVFoundationVideoPlayer.h:34
ofLoopType
Used to represent the available video looping modes.
Definition ofVideoBaseTypes.h:11