Exemple #1
0
// CanSeek returns whether or not seeking is allowed for the current media.
func (this *Player) CanSeek() (bool, error) {
	if this.ptr == nil {
		return false, syscall.EINVAL
	}
	return C.libvlc_media_player_is_seekable(this.ptr) != 0, checkError()
}
Exemple #2
0
// CanSeek returns whether or not seeking is allowed for the current media.
func (this *Player) CanSeek() (bool, error) {
	if this.ptr == nil {
		return false, &VLCError{"Player is nil"}
	}
	return C.libvlc_media_player_is_seekable(this.ptr) != 0, checkError()
}