コード例 #1
0
ファイル: listplayer.go プロジェクト: egelmex/go-vlc
// Prev plays the previous item in the list if applicable.
func (this *ListPlayer) Prev() error {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_media_list_player_previous(this.ptr)
	return checkError()
}
コード例 #2
0
ファイル: listplayer.go プロジェクト: henrym/go-vlc
// Prev plays the previous item in the list if applicable.
func (this *ListPlayer) Prev() error {
	if this.ptr == nil {
		return &VLCError{"ListPlayer is nil"}
	}

	C.libvlc_media_list_player_previous(this.ptr)
	return checkError()
}