VLCNetworkServerBrowserPlex.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*****************************************************************************
  2. * VLCNetworkServerBrowserPlex.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Tobias Conradi <videolan # tobias-conradi.de>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCNetworkServerBrowser-Protocol.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. @interface VLCNetworkServerBrowserPlex : NSObject <VLCNetworkServerBrowser>
  15. - (instancetype)initWithName:(NSString *)name host:(NSString *)addressOrName portNumber:(NSNumber *)portNumber path:(NSString *)path authentificication:(NSString *)auth NS_DESIGNATED_INITIALIZER;
  16. - (instancetype)initWithName:(NSString *)name url:(NSURL *)url auth:(NSString *)auth;
  17. - (instancetype)init NS_UNAVAILABLE;
  18. @end
  19. @interface VLCNetworkServerBrowserItemPlex : NSObject <VLCNetworkServerBrowserItem>
  20. - (instancetype)initWithDictionary:(NSDictionary *)dictionary currentURL:(NSURL *)currentURL authentificication:(NSString *)auth;
  21. @property (nonatomic, readonly, nullable) NSString *duration;
  22. @property (nonatomic, readonly, nullable) NSURL *subtitleURL;
  23. @property (nonatomic, readonly, nullable) NSURL *thumbnailURL;
  24. @end
  25. NS_ASSUME_NONNULL_END