func (p *Player) CanPause() bool {
	if err := p.assertInit(); err != nil {
		return false
	}
	return C.libvlc_media_player_can_pause(p.player) != 0
}
CanPause returns true if the media player can be paused.
package vlc
import "C"
import (
	"io"
	"time"
	"unsafe"
)
type PlayerRole uint
const (
	PlayerRoleNone PlayerRole = iota
	PlayerRoleMusic
	PlayerRoleVideo
	PlayerRoleCommunication
	PlayerRoleGame
	PlayerRoleNotification
	PlayerRoleAnimation
	PlayerRoleProduction
	PlayerRoleAccessibility
	PlayerRoleTest
)
type TitleFlag uint
const (
	TitleFlagMenu TitleFlag = iota + 0x01
	TitleFlagInteractive
)
type TitleInfo struct {
	Name     string         
	Duration time.Duration  
	Flags    TitleFlag      
}
type ChapterInfo struct {
	Name     string         
	Duration time.Duration  
	Offset   time.Duration  
}
type NavigationAction uint
const (
	NavigationActionActivate NavigationAction = iota
	NavigationActionUp
	NavigationActionDown
	NavigationActionLeft
	NavigationActionRight
	NavigationActionPopup
)
type Player struct {
	player *C.libvlc_media_player_t
}
func NewPlayer() (*Player, error) {
	if err := inst.assertInit(); err != nil {
		return nil, err
	}
	player := C.libvlc_media_player_new(inst.handle)
	if player == nil {
		return nil, errOrDefault(getError(), ErrPlayerCreate)
	}
	return &Player{player: player}, nil
}
func (p *Player) Release() error {
	if err := p.assertInit(); err != nil {
		return nil
	}
	C.libvlc_media_player_release(p.player)
	p.player = nil
	return getError()
}
func (p *Player) Play() error {
	if err := p.assertInit(); err != nil {
		return err
	}
	if p.IsPlaying() {
		return nil
	}
	if C.libvlc_media_player_play(p.player) < 0 {
		return getError()
	}
	return nil
}
func (p *Player) IsPlaying() bool {
	if err := p.assertInit(); err != nil {
		return false
	}
	return C.libvlc_media_player_is_playing(p.player) != 0
}
func (p *Player) WillPlay() bool {
	if err := p.assertInit(); err != nil {
		return false
	}
	return C.libvlc_media_player_will_play(p.player) != 0
}
func (p *Player) Stop() error {
	if err := p.assertInit(); err != nil {
		return err
	}
	C.libvlc_media_player_stop(p.player)
	return getError()
}
func (p *Player) SetPause(pause bool) error {
	if err := p.assertInit(); err != nil {
		return err
	}
	C.libvlc_media_player_set_pause(p.player, C.int(boolToInt(pause)))
	return getError()
}
func (p *Player) TogglePause() error {
	if err := p.assertInit(); err != nil {
		return err
	}
	C.libvlc_media_player_pause(p.player)
	return getError()
}