Example #1
0
// Pause pauses playback.
// Has no effect if no media is loaded.
func (this *Player) Pause() (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_media_player_pause(this.ptr)
	return
}
Example #2
0
// Pause pauses playback.
// Has no effect if no media is loaded.
func (this *Player) Pause() (err error) {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	C.libvlc_media_player_pause(this.ptr)
	return
}