Ejemplo n.º 1
0
// Position returns the current movie position.
func (this *Player) Position() (float32, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return float32(C.libvlc_media_player_get_position(this.ptr)), checkError()
}
Ejemplo n.º 2
0
// Position returns the current movie position.
func (this *Player) Position() (float32, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return float32(C.libvlc_media_player_get_position(this.ptr)), checkError()
}