Example #1
0
// State returns the current media state.
func (this *ListPlayer) State() (MediaState, error) {
	if this.ptr == nil {
		return 0, os.EINVAL
	}
	return MediaState(C.libvlc_media_list_player_get_state(this.ptr)), checkError()
}
Example #2
0
// State returns the current media state.
func (this *ListPlayer) State() (MediaState, error) {
	if this.ptr == nil {
		return 0, &VLCError{"ListPlayer is nil"}
	}
	return MediaState(C.libvlc_media_list_player_get_state(this.ptr)), checkError()
}