VLCKit: Headers/Public/VLCMediaListPlayer.h Source File

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-2019 VLC authors and VideoLAN
7
8 * $Id$
9 *
10 * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
11 * Felix Paul Kühne <fkuehne # videolan.org>
12 * Soomin Lee <bubu # mikan.io>
13 *
14 * This program is free software; you can redistribute it and/or modify it
15 * under the terms of the GNU Lesser General Public License as published by
16 * the Free Software Foundation; either version 2.1 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public License
25 * along with this program; if not, write to the Free Software Foundation,
26 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
27 *****************************************************************************/
28
29 @class VLCMedia, VLCMediaPlayer, VLCMediaList, VLCMediaListPlayer;
30
35 typedef NS_ENUM(NSInteger, VLCRepeatMode) {
36 VLCDoNotRepeat,
37 VLCRepeatCurrentItem,
38 VLCRepeatAllItems
39 };
40
41 @protocol VLCMediaListPlayerDelegate <NSObject>
42 @optional
46 - (void)mediaListPlayerFinishedPlayback:(VLCMediaListPlayer *)player;
47
51 - (void)mediaListPlayer:(VLCMediaListPlayer *)player
52 nextMedia:(VLCMedia *)media;
53
59 - (void)mediaListPlayerStopped:(VLCMediaListPlayer *)player;
60 @end
61
65 @interface VLCMediaListPlayer : NSObject
66
71 @property (readwrite) VLCMediaList *mediaList;
72
78 @property (readwrite) VLCMedia *rootMedia;
79
83 @property (readonly) VLCMediaPlayer *mediaPlayer;
84
88 @property (nonatomic, weak) id <VLCMediaListPlayerDelegate> delegate;
89
94 - (instancetype)initWithDrawable:(id)drawable;
99 - (instancetype)initWithOptions:(NSArray *)options;
105 - (instancetype)initWithOptions:(NSArray *)options andDrawable:(id)drawable;
106
110 - (void)play;
114 - (void)pause;
118 - (void)stop;
119
124 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL next;
129 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL previous;
130
135 - (BOOL)playItemAtIndex:(int)index __attribute__((deprecated));
136
140 - (void)playItemAtNumber:(NSNumber *)index;
141
146 @property (readwrite) VLCRepeatMode repeatMode;
147
151 - (void)playMedia:(VLCMedia *)media;
152
153 @end
-[VLCMediaListPlayer play]
void play()
VLCMediaListPlayerDelegate-p
Definition: VLCMediaListPlayer.h:41
VLCMediaListPlayer::repeatMode
VLCRepeatMode repeatMode
Definition: VLCMediaListPlayer.h:146
VLCMediaList
Definition: VLCMediaList.h:68
VLCMedia
Definition: VLCMedia.h:113
VLCMediaPlayer
Definition: VLCMediaPlayer.h:186
VLCMediaListPlayer::delegate
id< VLCMediaListPlayerDelegate > delegate
Definition: VLCMediaListPlayer.h:88
VLCMediaListPlayer::mediaList
VLCMediaList * mediaList
Definition: VLCMediaListPlayer.h:71
VLCMediaListPlayer
Definition: VLCMediaListPlayer.h:66
VLCMediaListPlayer::mediaPlayer
VLCMediaPlayer * mediaPlayer
Definition: VLCMediaListPlayer.h:83
-[VLCMediaListPlayer stop]
void stop()
VLCMediaListPlayer::rootMedia
VLCMedia * rootMedia
Definition: VLCMediaListPlayer.h:78
-[VLCMediaListPlayer pause]
void pause()
VLCMediaListPlayer::next
BOOL next
Definition: VLCMediaListPlayer.h:124
VLCMediaListPlayer::previous
BOOL previous
Definition: VLCMediaListPlayer.h:129