1 /*****************************************************************************
2 * VLCMediaListPlayer.m: VLCKit.framework VLCMediaListPlayer implementation
3 *****************************************************************************
4 * Copyright (C) 2009 Pierre d'Herbemont
5 * Partial Copyright (C) 2009 Felix Paul Kühne
6 * Copyright (C) 2009 the VideoLAN team
9 * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
10 * Felix Paul Kühne <fkuehne # videolan.org
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
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 General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 *****************************************************************************/
27 @class VLCMedia, VLCMediaPlayer, VLCMediaList;
31 * (don't repeat anything, repeat one, repeat all)
38 typedef NSInteger VLCRepeatMode;
40 @interface VLCMediaListPlayer : NSObject {
43 VLCMediaPlayer *_mediaPlayer;
44 VLCMediaList *_mediaList;
45 VLCRepeatMode _repeatMode;
48 @property (readwrite, retain) VLCMediaList *mediaList;
51 * rootMedia - Use this method to play a media and its subitems.
52 * This will erase mediaList.
53 * Setting mediaList will erase rootMedia.
55 @property (readwrite, retain) VLCMedia *rootMedia;
56 @property (readonly, retain) VLCMediaPlayer *mediaPlayer;
60 * Basic play and stop are here. For other method, use the mediaPlayer.
67 * Playmode selection (don't repeat anything, repeat one, repeat all)
71 @property (readwrite) VLCRepeatMode repeatMode;
74 * media must be in the current media list.
76 - (void)playMedia:(VLCMedia *)media;