Browse Source

Add VideoSource::stop()

master
Krisjanis Rijnieks 7 years ago
parent
commit
ca47482cb1
  1. 8
      src/Sources/VideoSource.cpp
  2. 1
      src/Sources/VideoSource.h

8
src/Sources/VideoSource.cpp

@ -58,6 +58,14 @@ void VideoSource::togglePause(){
#endif
}
void VideoSource::stop(){
#ifdef TARGET_RASPBERRY_PI
_omxPlayer->setPaused(true);
#else
_videoPlayer->setPaused(true);
#endif
}
#ifndef TARGET_RASPBERRY_PI
void VideoSource::update(ofEventArgs & args){
if(_videoPlayer != 0){

1
src/Sources/VideoSource.h

@ -26,6 +26,7 @@ class VideoSource : public BaseSource {
void loadVideo(std::string & path);
void clear();
void togglePause();
void stop();
#ifndef TARGET_RASPBERRY_PI
void update(ofEventArgs & args);

Loading…
Cancel
Save