Esempio n. 1
0
// Length returns the current movie length in milliseconds.
func (this *Player) Length() (int64, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int64(C.libvlc_media_player_get_length(this.ptr)), checkError()
}
Esempio n. 2
0
// Length returns the current movie length in milliseconds.
func (this *Player) Length() (int64, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int64(C.libvlc_media_player_get_length(this.ptr)), checkError()
}