Ejemplo n.º 1
0
// SetHwnd sets a Win32/Win64 API window handle (HWND) where the media player
// should render its video output. If LibVLC was built without Win32/Win64 API
// output support, then this has no effects.
func (this *Player) SetHwnd(drawable uintptr) (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_media_player_set_hwnd(this.ptr, unsafe.Pointer(drawable))
	return
}
Ejemplo n.º 2
0
// SetHwnd sets a Win32/Win64 API window handle (HWND) where the media player
// should render its video output. If LibVLC was built without Win32/Win64 API
// output support, then this has no effects.
func (this *Player) SetHwnd(drawable uintptr) (err error) {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	C.libvlc_media_player_set_hwnd(this.ptr, unsafe.Pointer(drawable))
	return
}