Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    GStreamer 0.11

    Download button

    No screenshots available
    Downloads: 1,024  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.4/5)
    16 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Torsten Schoenfeld and Brett Kosinski | More programs
    Perl Artistic License / FREE
    October 6th, 2011, 07:50 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    GStreamer description

    GStreamer is a Perl interface to the GStreamer library.

    GStreamer is a Perl interface to the GStreamer library.

    SYNOPSIS

    use GStreamer -init;

    my $loop = Glib::MainLoop -> new();

    # set up
    my $play = GStreamer::ElementFactory -> make("playbin", "play");
    $play -> set(uri => Glib::filename_to_uri $file, "localhost");
    $play -> get_bus() -> add_watch(&my_bus_callback, $loop);
    $play -> set_state("playing");

    # run
    $loop -> run();

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

    sub my_bus_callback {
    my ($bus, $message, $loop) = @_;

    if ($message -> type & "error") {
    warn $message -> error;
    $loop -> quit();
    }

    elsif ($message -> type & "eos") {
    $loop -> quit();
    }

    # remove message from the queue
    return TRUE;
    }

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    GStreamer library | Perl interface | Perl module | GStreamer | library | Perl



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM