Exemplo n.º 1
0
// Rate returns the current movie playback rate.
// Note: Depending on the underlying media, the requested rate may be
// different from the real playback rate.
func (this *Player) Rate() (float32, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return float32(C.libvlc_media_player_get_rate(this.ptr)), checkError()
}
Exemplo n.º 2
0
// Rate returns the current movie playback rate.
// Note: Depending on the underlying media, the requested rate may be
// different from the real playback rate.
func (this *Player) Rate() (float32, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return float32(C.libvlc_media_player_get_rate(this.ptr)), checkError()
}