func (r *Renderer) Flags() (*RendererFlags, error) {
	if err := r.assertInit(); err != nil {
		return nil, err
	}
	flags := C.libvlc_renderer_item_flags(r.renderer)
	return &RendererFlags{
		AudioEnabled: (flags | C.LIBVLC_RENDERER_CAN_AUDIO) != 0,
		VideoEnabled: (flags | C.LIBVLC_RENDERER_CAN_VIDEO) != 0,
	}, nil
}
Flags returns the flags of the renderer.
package vlc
import "C"
type RendererType string
const (
	RendererChromecast RendererType = "chromecast"
)
type RendererFlags struct {
	AudioEnabled bool
	VideoEnabled bool
}
type Renderer struct {
	renderer *C.libvlc_renderer_item_t
}
func (r *Renderer) Name() (string, error) {
	if err := r.assertInit(); err != nil {
		return "", nil
	}
	return C.GoString(C.libvlc_renderer_item_name(r.renderer)), nil
}
func (r *Renderer) Type() (RendererType, error) {
	if err := r.assertInit(); err != nil {
		return "", nil
	}
	return RendererType(C.GoString(C.libvlc_renderer_item_type(r.renderer))), nil
}