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