예제 #1
0
파일: player.go 프로젝트: jteeuwen/go-vlc
// SetAGL set the agl handler where the media player should render its video output.
func (this *Player) SetAGL(drawable uint32) (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_media_player_set_agl(this.ptr, C.uint32_t(drawable))
	return
}
예제 #2
0
파일: player.go 프로젝트: henrym/go-vlc
// SetAGL set the agl handler where the media player should render its video output.
func (this *Player) SetAGL(drawable uint32) (err error) {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	C.libvlc_media_player_set_agl(this.ptr, C.uint32_t(drawable))
	return
}