adrg / libvlc-go

Handcrafted Go bindings for libVLC and high-level media player interface
https://pkg.go.dev/github.com/adrg/libvlc-go/v3
MIT License
437 stars 50 forks source link

examples on playback features of libvlc-go #52

Closed PaulSayantan closed 4 years ago

PaulSayantan commented 4 years ago

@adrg, libvlc-go is an awesome audio-video bindings in golang and is playing a keyrole in my project, i.e, a music player. can you provide any example of how to add certain playback features such as play/pause forward/backward that can be invoked on certain keystrokes.

adrg commented 4 years ago

@belikesayantan. Is it a CLI music player? What package are you using for catching key presses? The Player struct has methods for the actions you mentioned like Play, Stop, SetPause, SetMediaTime, SetMediaPosition. You can find the method reference at https://pkg.go.dev/github.com/adrg/libvlc-go/v3.

PaulSayantan commented 4 years ago

i am using termui for catching the key presses. actually i solved that issue, thanks