Пример #1
0
// Replace replaces the Player instance in this listplayer with a new one.
func (this *ListPlayer) Replace(p *Player) error {
	if this.ptr == nil || p.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_media_list_player_set_media_player(this.ptr, p.ptr)
	return checkError()
}
Пример #2
0
// Replace replaces the Player instance in this listplayer with a new one.
func (this *ListPlayer) Replace(p *Player) error {
	if this.ptr == nil || p.ptr == nil {
		return &VLCError{"ListPlayer is nil"}
	}

	C.libvlc_media_list_player_set_media_player(this.ptr, p.ptr)
	return checkError()
}