nvlgit / libvalce

libVLC GObject wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libvalce

libvalce is a GObject based API wrapper for libVLC >= v3.0.0

example of the API use in Vala

using Valce;
using Gtk;

	var player = new Player ();
	bool load = player.set_uri ("file:///home/user/Music/file.m4a");
	if (load)
               player.play ();

        player.volume_changed.connect ( () => {
               stdout.printf ("Volume_changed: %f\n", player.volume);
        });

        stdout.printf ("album: %s\n", player.media_info.album);

        var button = new Button.with_label ("Play/Pause");
        button.clicked.connect (() => {
               if (player.state == PlayerState.PLAYING)
                       player.pause ();
               else
                       player.play ();
        });

Building and Installation

git clone https://github.com/nvlgit/libvalce.git && cd libvalce
meson builddir --prefix=/usr && cd builddir
ninja
su -c 'ninja install'

For rpmbuild: libvalce.spec

About

libVLC GObject wrapper

License:GNU General Public License v3.0


Languages

Language:C 93.8%Language:Meson 6.2%