Esempio n. 1
0
// Hwnd returns the Windows API window handle (HWND) previously set with
// Player.SetHwnd(). The handle will be returned even if LibVLC is not currently
// outputting any video to it.
func (this *Player) Hwnd() (drawable uintptr, err error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}

	return uintptr(C.libvlc_media_player_get_hwnd(this.ptr)), checkError()
}
Esempio n. 2
0
// Hwnd returns the Windows API window handle (HWND) previously set with
// Player.SetHwnd(). The handle will be returned even if LibVLC is not currently
// outputting any video to it.
func (this *Player) Hwnd() (drawable uintptr, err error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}

	return uintptr(C.libvlc_media_player_get_hwnd(this.ptr)), checkError()
}