Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Gstreamer event eos

$
0
0

@kashim wrote:

Hi guys,

I'm trying to grab gstreamer EOS events, the ofGstUtils seems to do this work with:
ofEvent<ofEventArgs> eosEvent.

in fact, if I do:

void gst_eos_event(ofEventArgs & e)
{
                cout << "EOS EVENT" << endl;
}

void setup(string _url, int _width=704, int _height=576)
{
                gst = shared_ptr<ofGstVideoUtils>(new ofGstVideoUtils);
                gst->setPipeline(_url, OF_PIXELS_RGB, true, _width,_height);
                gst->startPipeline();
                gst->play();
                ofAddListener(gst->eosEvent, this, &Streamer::gst_eos_event);
}

in case of interruption of the network for streaming rtsp gst_eos_event is performed 4 times,
how do I access "ofEventArgs" to find out what events I receive?

Thanks and good day!
Dario

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles