Skip to content

nvlgit/libvalce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published