Пример #1
0
// State returns the current movie state.
func (this *Player) State() (MediaState, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return MediaState(C.libvlc_media_player_get_state(this.ptr)), checkError()
}
Пример #2
0
// State returns the current movie state.
func (this *Player) State() (MediaState, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return MediaState(C.libvlc_media_player_get_state(this.ptr)), checkError()
}