Detection
@interface Detection : NSObject
This class allows you to detect media that is playing
-
The current Kodi Json RPC reachability status.
Declaration
Objective-C
@property (getter=getKodiOnlineStatus, assign, readwrite, atomic) _Bool kodionline;
Swift
var kodionline: Bool { get set }
-
The current Kodi Json RPC reachability status.
Declaration
Objective-C
@property (getter=getPlexOnlineStatus, assign, readwrite, atomic) _Bool plexonline;
Swift
var plexonline: Bool { get set }
-
This detects media from open video players, streams or web browsers
Declaration
Objective-C
- (NSDictionary *)detectmedia;
Swift
func detectmedia() -> [AnyHashable : Any]!
Return Value
NSDictionary The detected information of a media file or stream.
-
Checks if the stream link title is on a ignore list.
Declaration
Objective-C
- (NSDictionary *)checksstreamlinkinfo:(NSDictionary *)d;
Swift
func checksstreamlinkinfo(_ d: [AnyHashable : Any]!) -> [AnyHashable : Any]!
Parameters
d
Stream information of a streamlink stream.
Return Value
NSArray The detected information of a stream.
-
Turns on/off Kodi JSON RPC reachability. @pram enable The state of the Kodi JSON RPC reachability.
Declaration
Objective-C
- (void)setKodiReach:(BOOL)enable;
Swift
func setKodiReach(_ enable: Bool)
-
Sets the address for the Kodi reachability @pram url The host name to the computer running Kodi.
Declaration
Objective-C
- (void)setKodiReachAddress:(NSString *)url;
Swift
func setKodiReachAddress(_ url: String!)
-
Turns on/off Plex Media Server API reachability. @pram enable The state of the Plex API reachability.
Declaration
Objective-C
- (void)setPlexReach:(BOOL)enable;
Swift
func setPlexReach(_ enable: Bool)
-
Sets the address for the Plex Media Server reachability @pram url The host name/IP Address to the computer running Plex Media Server.
Declaration
Objective-C
- (void)setPlexReachAddress:(NSString *)url;
Swift
func setPlexReachAddress(_ url: String!)