Beispiel #1
0
// SetRate sets the requested movie playback rate.
func (this *Player) SetRate(v float32) error {
	if this.ptr == nil {
		return syscall.EINVAL
	}
	C.libvlc_media_player_set_rate(this.ptr, C.float(v))
	return checkError()
}
Beispiel #2
0
// SetRate sets the requested movie playback rate.
func (this *Player) SetRate(v float32) error {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}
	C.libvlc_media_player_set_rate(this.ptr, C.float(v))
	return checkError()
}