A more practical example using a filename (note that you need the right
plugins to play mp3 files in GStreamer. Usually gstreamer-ffmpeg is enough
for mp3).
1. using Gst;
2.
3. void main (string[] args) {
4. Gst.init (ref args);
5.
6. var pipeline = Gst.parse_launch("playbin uri=\"file://%s\"".
printf(args[1]));
7. pipeline.set_state (State.PLAYING);
8. new MainLoop ().run ();
9. }
10.
*Alexandre Rosenfeld*
2011/11/11 Tal Hadad <[email protected]>
>
> It's not a single row, but it easy than it looks like:
> http://live.gnome.org/Vala/GStreamerSample
>
> Tal
>
> Date: Fri, 11 Nov 2011 12:06:06 -0200
> From: [email protected]
> To: [email protected]
> Subject: [Vala] play mp3 file
>
> Hi all, i need to play a mp3 file on a vala program, is there any easy way
> doing that?
>
> --
> Rodrigo Cesar Herefeld
>
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
>
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
>
>
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list