Red5Pro IOS Client SDK

 10.0.0
Core SDK for IOS
R5Connection.h
1//
2// R5Connection.h
3// Red5Pro
4//
5// Created by Andy Zupko on 9/16/14.
6// Copyright (c) 2014 Infrared5. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#include "global.h"
11#import "R5Configuration.h"
12
13
14@protocol R5ConnectionDelegate;
15
19@interface R5Connection : NSObject
20
24@property (readonly) R5Configuration *config;
25
29@property NSObject<R5ConnectionDelegate> *delegate;
30
34@property NSObject *client;
35
43-(id)initWithConfig:(R5Configuration*) configuration;
44
48-(void)invalidate;
49
57-(void)call:(NSString*)method withReturn:(NSString*)returnMethod withParam:(NSString*)param;
58
59/*
60 * Start a connection with a remote shared object
61 */
62-(void)connectToSharedObject:(NSString*)name;
63
64/*
65 * Send a message through the Shared Object interface
66 */
67-(void)sharedObjectSend:(NSString*)message;
68
74-(void)switchStream:(NSString*)app name:(NSString*)streamName;
75
80-(void)stopDataOnlyStream;
81
87-(client_ctx*)context;
88
89
90@end
91
96@protocol R5ConnectionDelegate <NSObject>
97
128-(void)onR5ConnectionStatus:(R5Connection *)connection withStatus:(int) statusCode withMessage:(NSString*)msg;
129
130@end
Configuration object for the R5Stream.
Definition: R5Configuration.h:15
The main connection class for R5Pro. This establishes the connection to the server....
Definition: R5Connection.h:20
void startDataOnlyStream()
R5Configuration * config
Definition: R5Connection.h:24
client_ctx * context()
NSObject< R5ConnectionDelegate > * delegate
Definition: R5Connection.h:29
NSObject * client
Definition: R5Connection.h:34
Delegate for handling R5Stream events.
Definition: R5Connection.h:96