VLCMediaListPlayer.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*****************************************************************************
  2. * VLCMediaListPlayer.h: 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 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. @class VLCMedia, VLCMediaPlayer, VLCMediaList;
  27. /**
  28. * VLCRepeatMode
  29. * (don't repeat anything, repeat one, repeat all)
  30. */
  31. enum VLCRepeatMode {
  32. VLCDoNotRepeat,
  33. VLCRepeatCurrentItem,
  34. VLCRepeatAllItems
  35. };
  36. typedef NSInteger VLCRepeatMode;
  37. @interface VLCMediaListPlayer : NSObject {
  38. void *instance;
  39. VLCMedia *_rootMedia;
  40. VLCMediaPlayer *_mediaPlayer;
  41. VLCMediaList *_mediaList;
  42. VLCRepeatMode _repeatMode;
  43. }
  44. @property (readwrite, retain) VLCMediaList *mediaList;
  45. /**
  46. * rootMedia - Use this method to play a media and its subitems.
  47. * This will erase mediaList.
  48. * Setting mediaList will erase rootMedia.
  49. */
  50. @property (readwrite, retain) VLCMedia *rootMedia;
  51. @property (readonly, retain) VLCMediaPlayer *mediaPlayer;
  52. /**
  53. * Basic play and stop are here. For other method, use the mediaPlayer.
  54. * This may change.
  55. */
  56. - (void)play;
  57. - (void)stop;
  58. /**
  59. * Playmode selection (don't repeat anything, repeat one, repeat all)
  60. * See VLCRepeatMode.
  61. */
  62. @property (readwrite) VLCRepeatMode repeatMode;
  63. /**
  64. * media must be in the current media list.
  65. */
  66. - (void)playMedia:(VLCMedia *)media;
  67. @end