示例#1
0
文件: player.go 项目: jteeuwen/go-vlc
// 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
}
示例#2
0
文件: player.go 项目: henrym/go-vlc
// 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
}