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
- Host: GitHub
- URL: https://github.com/nvlgit/libvalce
- Owner: nvlgit
- License: gpl-3.0
- Created: 2018-01-01T00:13:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-01T14:24:12.000Z (over 8 years ago)
- Last Synced: 2023-10-20T11:10:34.498Z (over 2 years ago)
- Topics: gobject, gobject-introspection, libvlc
- Language: C
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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