GStreamer::Event(3pm)

GStreamer::Event3pm

Structure describing events that are passed up and down a pipeline

Overview

The various event types are represented as subclasses:

GStreamer::Event::FlushStart
GStreamer::Event::FlushStop
GStreamer::Event::EOS
GStreamer::Event::NewSegment
GStreamer::Event::Tag
GStreamer::Event::BufferSize
GStreamer::Event::QOS
GStreamer::Event::Seek
GStreamer::Event::Navigation
GStreamer::Event::Custom::UP
GStreamer::Event::Custom::DS
GStreamer::Event::Custom::DS::OOB
GStreamer::Event::Custom::Both
GStreamer::Event::Custom::Both::OOB

To create a new event, you call the constructor of the corresponding class.

To check if an event is of a certain type, use the type method:

  if ($event -> type eq "newsegment") {
    # ...
  }
  elsif ($event -> type eq "eos") {
    # ...
  }

To get to the content of an event, call the corresponding accessor:

  if ($event -> type eq "newsegment") {
    my $update = $event -> update;
    my $rate = $event -> rate;
    my $format = $event -> format;
    my $start_value = $event -> start_value;
    my $stop_value = $event -> stop_value;
    my $stream_time = $event -> stream_time;
    # ...
  }
  elsif ($event -> type eq "tag") {
    my $tag = $event -> tag;
    # ...
  }

Methods

structure = $event->get_structure

eventtype = $event->type

Enums and flags

enum GStreamer::EventType

•

'unknown' / 'GST_EVENT_UNKNOWN'

•

'flush-start' / 'GST_EVENT_FLUSH_START'

•

'flush-stop' / 'GST_EVENT_FLUSH_STOP'

•

'eos' / 'GST_EVENT_EOS'

•

'newsegment' / 'GST_EVENT_NEWSEGMENT'

•

'tag' / 'GST_EVENT_TAG'

•

'buffersize' / 'GST_EVENT_BUFFERSIZE'

•

'sink-message' / 'GST_EVENT_SINK_MESSAGE'

•

'qos' / 'GST_EVENT_QOS'

•

'seek' / 'GST_EVENT_SEEK'

•

'navigation' / 'GST_EVENT_NAVIGATION'

•

'latency' / 'GST_EVENT_LATENCY'

•

'step' / 'GST_EVENT_STEP'

•

'custom-upstream' / 'GST_EVENT_CUSTOM_UPSTREAM'

•

'custom-downstream' / 'GST_EVENT_CUSTOM_DOWNSTREAM'

•

'custom-downstream-oob' / 'GST_EVENT_CUSTOM_DOWNSTREAM_OOB'

•

'custom-both' / 'GST_EVENT_CUSTOM_BOTH'

•

'custom-both-oob' / 'GST_EVENT_CUSTOM_BOTH_OOB'

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8

From libgstreamer-perl 0.19-1+b1 in Debian 8 (Jessie). Parsed by carta from the page's man source.