VLCPlexWebAPI.h 1.6 KB

12345678910111213141516171819202122232425262728
  1. /*****************************************************************************
  2. * VLCPlexWebAPI.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. *
  7. * Authors: Pierre Sagaspe <pierre.sagaspe # me.com>
  8. *
  9. * Refer to the COPYING file of the official project for license.
  10. *****************************************************************************/
  11. #import <UIKit/UIKit.h>
  12. @interface VLCPlexWebAPI : NSObject
  13. - (BOOL)PlexCreateIdentification:(NSString *)username password:(NSString *)password;
  14. - (NSArray *)PlexBasicAuthentification:(NSString *)username password:(NSString *)password;
  15. - (NSString *)PlexAuthentification:(NSString *)username password:(NSString *)password;
  16. - (NSString *)urlAuth:(NSString *)url autentification:(NSString *)auth;
  17. - (NSData *)HttpRequestWithCookie:(NSURL *)url cookies:(NSArray *)authToken HTTPMethod:(NSString *)method;
  18. - (NSURL *)CreatePlexStreamingURL:(NSString *)address port:(NSString *)port videoKey:(NSString *)key username:(NSString *)username deviceInfo:(NSDictionary *)deviceInfo session:(NSString *)session;
  19. - (void)stopSession:(NSString *)adress port:(NSString *)port session:(NSString *)session;
  20. - (NSInteger)MarkWatchedUnwatchedMedia:(NSString *)address port:(NSString *)port videoRatingKey:(NSString *)ratingKey state:(NSString *)state authentification:(NSString *)auth;
  21. - (NSString *)getFileSubtitleFromPlexServer:(NSDictionary *)mediaObject modeStream:(BOOL)modeStream;
  22. - (NSString *)getSession;
  23. - (NSData *)PlexDeviceInfo:(NSArray *)cookies;
  24. @end