Пример #1
0
// XWindow returns the X Window System window identifier previously set with
// Player.SetXWindow(). Note that this will return the identifier even if VLC is
// not currently using it (for instance if it is playing an audio-only input).
func (this *Player) XWindow() (drawable uint32, err error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}

	return uint32(C.libvlc_media_player_get_xwindow(this.ptr)), checkError()
}
Пример #2
0
// XWindow returns the X Window System window identifier previously set with
// Player.SetXWindow(). Note that this will return the identifier even if VLC is
// not currently using it (for instance if it is playing an audio-only input).
func (this *Player) XWindow() (drawable uint32, err error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}

	return uint32(C.libvlc_media_player_get_xwindow(this.ptr)), checkError()
}