Exemplo n.º 1
0
// ChapterCount returns the number of available movie chapters.
func (this *Player) ChapterCount() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_media_player_get_chapter_count(this.ptr)), checkError()
}
Exemplo n.º 2
0
// ChapterCount returns the number of available movie chapters.
func (this *Player) ChapterCount() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_media_player_get_chapter_count(this.ptr)), checkError()
}