コード例 #1
0
ファイル: player.go プロジェクト: jteeuwen/go-vlc
// TitleChapterCount returns the number of available movie chapters for the given title.
func (this *Player) TitleChapterCount(title int) (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_media_player_get_chapter_count_for_title(this.ptr, C.int(title))), checkError()
}
コード例 #2
0
ファイル: player.go プロジェクト: henrym/go-vlc
// TitleChapterCount returns the number of available movie chapters for the given title.
func (this *Player) TitleChapterCount(title int) (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_media_player_get_chapter_count_for_title(this.ptr, C.int(title))), checkError()
}