Example #1
0
// NSObject returns the NSView handler previously set with Player.SetNSObject().
func (this *Player) NSObject() (drawable uintptr, err error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}

	return uintptr(C.libvlc_media_player_get_nsobject(this.ptr)), checkError()
}
Example #2
0
// NSObject returns the NSView handler previously set with Player.SetNSObject().
func (this *Player) NSObject() (drawable uintptr, err error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}

	return uintptr(C.libvlc_media_player_get_nsobject(this.ptr)), checkError()
}