arturoc / ofxGStreamer

openFrameworks addon to use gstreamer under osx and windows. This addon has no code and instead uses the addon_config.mk file to add the needed files from the core + the flags needed to compile using gstreamer
56 stars 28 forks source link

Different behavior between ofVideoPlayer with or without gstreamer #27

Closed dimitre closed 4 years ago

dimitre commented 4 years ago

on ofVideoPlayer when I pause video the isPlaying() boolean returns false, so I can toggle play/pause with the following command:

    if (key == ' ') {
        v->setPaused(v->isPlaying());
    }

using gstreamer it returns true even when paused.

arturoc commented 4 years ago

if i remember correctly the correct flag is isPaused is playing returns true whenever the video is not stopped even if it's paused. whoever implemented the latest apis in windows or macos might have got this wrong. can you open an issue in the core regarding this? the implementation for gstreamer is there too anyway