An open API service indexing awesome lists of open source software.

https://github.com/nvlgit/libvalce

libVLC GObject wrapper
https://github.com/nvlgit/libvalce

gobject gobject-introspection libvlc

Last synced: 16 days ago
JSON representation

libVLC GObject wrapper

Awesome Lists containing this project

README

          

# 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