Re: [Vala] play mp3 file



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 <tal_hd hotmail com>


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: rodrigo herefeld gmail com
To: vala-list gnome org
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
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list

_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]