Exemplo n.º 1
0
// Set an X Window System drawable where the media player should render its
// video output. If LibVLC was built without X11 output support, this has
// no effects.
//
// The specified identifier must correspond to an existing Input/Output class X11
// window. Pixmaps are /not/ supported. The caller shall ensure that the X11
// server is the same as the one the VLC instance has been configured with.
func (this *Player) SetXWindow(drawable uint32) (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_media_player_set_xwindow(this.ptr, C.uint32_t(drawable))
	return
}
Exemplo n.º 2
0
// Set an X Window System drawable where the media player should render its
// video output. If LibVLC was built without X11 output support, this has
// no effects.
//
// The specified identifier must correspond to an existing Input/Output class X11
// window. Pixmaps are /not/ supported. The caller shall ensure that the X11
// server is the same as the one the VLC instance has been configured with.
func (this *Player) SetXWindow(drawable uint32) (err error) {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	C.libvlc_media_player_set_xwindow(this.ptr, C.uint32_t(drawable))
	return
}