Torsten Schönfeld > GStreamer-GConf > GStreamer::GConf

Download:
GStreamer-GConf-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

GStreamer::GConf - Perl interface to the GStreamer GConf library

SYNOPSIS ^

  use GStreamer -init;
  use GStreamer::GConf;

  # build pipeline
  my $pipeline = GStreamer::Pipeline -> new("pipeline");

  my $sink = GStreamer::GConf -> get_default_audio_sink();
  my ($source, $spider, $conv, $scale) =
    GStreamer::ElementFactory -> make(filesrc => "source",
                                      spider => "spider",
                                      audioconvert => "conv",
                                      audioscale => "scale");


  $source -> set(location => $ARGV[0]);

  $pipeline -> add($source, $spider, $conv, $scale, $sink);
  $source -> link($spider, $conv, $scale, $sink) or die "Could not link";

  # play
  $pipeline -> set_state("playing") or die "Could not start playing";
  while ($pipeline -> iterate()) { };

  # clean up
  $pipeline -> set_state("null");

ABSTRACT ^

GStreamer::GConf provides access to the GConf interaction facilities of the GStreamer library.

METHODS ^

$value = GStreamer::GConf->get_string ($key)
GStreamer::GConf->set_string ($key, $value)
$element = GStreamer::GConf->render_bin_from_key ($key)
$element = GStreamer::GConf->render_bin_from_description ($description)
$element = GStreamer::GConf->get_default_video_sink
$element = GStreamer::GConf->get_default_audio_sink
$element = GStreamer::GConf->get_default_video_src
$element = GStreamer::GConf->get_default_audio_src
$element = GStreamer::GConf->get_default_visualization_element

AUTHOR ^

Torsten Schoenfeld <kaffeetisch at gmx dot de>

COPYRIGHT ^

Copyright (C) 2005 by the gtk2-perl team

syntax highlighting: