Exemple #1
0
// Time returns the current movie time in milliseconds.
func (this *Player) Time() (int64, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int64(C.libvlc_media_player_get_time(this.ptr)), checkError()
}
Exemple #2
0
// Time returns the current movie time in milliseconds.
func (this *Player) Time() (int64, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int64(C.libvlc_media_player_get_time(this.ptr)), checkError()
}