コード例 #1
0
ファイル: player.go プロジェクト: jteeuwen/go-vlc
// 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()
}
コード例 #2
0
ファイル: player.go プロジェクト: henrym/go-vlc
// 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()
}