示例#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()
}