Exemple #1
0
// Title returns the current movie title.
func (this *Player) Title() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_media_player_get_title(this.ptr)), checkError()
}
Exemple #2
0
// Title returns the current movie title.
func (this *Player) Title() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_media_player_get_title(this.ptr)), checkError()
}