VLCRendererItem.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*****************************************************************************
  2. * VLCRendererItem.h
  3. *****************************************************************************
  4. * Copyright © 2018 VLC authors, VideoLAN
  5. * Copyright © 2018 Videolabs
  6. *
  7. * Authors: Soomin Lee<bubu@mikan.io>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU Lesser General Public License as published by
  11. * the Free Software Foundation; either version 2.1 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with this program; if not, write to the Free Software Foundation,
  21. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  22. *****************************************************************************/
  23. NS_ASSUME_NONNULL_BEGIN
  24. typedef NS_OPTIONS(NSInteger, VLCRendererPlay) {
  25. /** The renderer can render audio */
  26. VLCRendererPlaysAudio = 1 << 0,
  27. /** The renderer can render video */
  28. VLCRendererPlaysVideo = 1 << 1
  29. };
  30. /**
  31. * Renderer Item
  32. */
  33. @interface VLCRendererItem : NSObject
  34. /**
  35. * Name of the renderer item
  36. */
  37. @property (nonatomic, readonly, copy) NSString *name;
  38. /**
  39. * For now, the type can only be "chromecast" ("upnp", "airplay" may come later)
  40. */
  41. @property (nonatomic, readonly, copy) NSString *type;
  42. /**
  43. * IconURI of the renderer item
  44. */
  45. @property (nonatomic, readonly, copy) NSString *iconURI;
  46. /**
  47. * Flags of the renderer item
  48. */
  49. @property (nonatomic, readonly, assign) int flags;
  50. /**
  51. * \note Unavailable, handled by `VLCRendererDiscoverer`
  52. * \see VLCRendererDiscoverer
  53. */
  54. - (instancetype)init NS_UNAVAILABLE;
  55. @end
  56. NS_ASSUME_NONNULL_END