Example #1
0
// PlayItem plays the given entry.
//
// Note: The supplied Media must be part of this list.
func (this *ListPlayer) PlayItem(m *Media) error {
	if this.ptr == nil || m.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_media_list_player_play_item(this.ptr, m.ptr)
	return checkError()
}
Example #2
0
// PlayItem plays the given entry.
//
// Note: The supplied Media must be part of this list.
func (this *ListPlayer) PlayItem(m *Media) error {
	if this.ptr == nil {
		return &VLCError{"ListPlayer is nil"}
	}
	if m.ptr == nil {
		return &VLCError{"Media is nil"}
	}

	C.libvlc_media_list_player_play_item(this.ptr, m.ptr)
	return checkError()
}