Esempio n. 1
0
// CanPause returns whether or not pause/resume is allowed for the current media.
func (this *Player) CanPause() (bool, error) {
	if this.ptr == nil {
		return false, syscall.EINVAL
	}
	return C.libvlc_media_player_can_pause(this.ptr) != 0, checkError()
}
Esempio n. 2
0
// CanPause returns whether or not pause/resume is allowed for the current media.
func (this *Player) CanPause() (bool, error) {
	if this.ptr == nil {
		return false, &VLCError{"Player is nil"}
	}
	return C.libvlc_media_player_can_pause(this.ptr) != 0, checkError()
}