VLCKit

VLCMediaListPlayer.h
1 /*****************************************************************************
2 * VLCMediaListPlayer.h: VLCKit.framework VLCMediaListPlayer implementation
3 *****************************************************************************
4 * Copyright (C) 2009 Pierre d'Herbemont
5 * Partial Copyright (C) 2009-2013 Felix Paul Kühne
6 * Copyright (C) 2009-2013 VLC authors and VideoLAN
7 * $Id$
8 *
9 * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
10 * Felix Paul Kühne <fkuehne # videolan.org
11 *
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU Lesser General Public License as published by
14 * the Free Software Foundation; either version 2.1 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public License
23 * along with this program; if not, write to the Free Software Foundation,
24 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 *****************************************************************************/
26
27 @class VLCMedia, VLCMediaPlayer, VLCMediaList;
28
33 typedef NS_ENUM(NSInteger, VLCRepeatMode) {
34 VLCDoNotRepeat,
35 VLCRepeatCurrentItem,
36 VLCRepeatAllItems
37 };
38
42 @interface VLCMediaListPlayer : NSObject
43
48 @property (readwrite) VLCMediaList *mediaList;
49
55 @property (readwrite) VLCMedia *rootMedia;
56
60 @property (readonly) VLCMediaPlayer *mediaPlayer;
61
66 - (instancetype)initWithDrawable:(id)drawable;
71 - (instancetype)initWithOptions:(NSArray *)options;
77 - (instancetype)initWithOptions:(NSArray *)options andDrawable:(id)drawable;
78
82 - (void)play;
86 - (void)pause;
90 - (void)stop;
91
96 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL next;
101 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL previous;
102
107 - (BOOL)playItemAtIndex:(int)index __attribute__((deprecated));
108
112 - (void)playItemAtNumber:(NSNumber *)index;
113
118 @property (readwrite) VLCRepeatMode repeatMode;
119
123 - (void)playMedia:(VLCMedia *)media;
124
125 @end
VLCMediaListPlayer
Definition: VLCMediaListPlayer.h:42
VLCMediaListPlayer::next
BOOL next
Definition: VLCMediaListPlayer.h:96
VLCMediaListPlayer::repeatMode
VLCRepeatMode repeatMode
Definition: VLCMediaListPlayer.h:118
VLCMediaList
Definition: VLCMediaList.h:67
VLCMediaListPlayer::rootMedia
VLCMedia * rootMedia
Definition: VLCMediaListPlayer.h:55
VLCMediaListPlayer::mediaPlayer
VLCMediaPlayer * mediaPlayer
Definition: VLCMediaListPlayer.h:60
VLCMediaPlayer
Definition: VLCMediaPlayer.h:134
VLCMediaListPlayer::mediaList
VLCMediaList * mediaList
Definition: VLCMediaListPlayer.h:48
VLCMedia
Definition: VLCMedia.h:112
VLCMediaListPlayer::previous
BOOL previous
Definition: VLCMediaListPlayer.h:101
-[VLCMediaListPlayer play]
void play()
-[VLCMediaListPlayer stop]
void stop()
-[VLCMediaListPlayer pause]
void pause()