-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathreadme.txt
More file actions
166 lines (110 loc) · 6.46 KB
/
Copy pathreadme.txt
File metadata and controls
166 lines (110 loc) · 6.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
Thank you for downloading Hookflash's Open Peer iOS SDK.
This release is a preliminary 1.0 release of the SDK and Hookflash will be publishing updates to the SDK in time, including various sample applications. For this release, no sample is yet provided.
From your terminal, please clone the "OP" git repository:
git clone git@github.com:openpeer/OP.git
This repository will yield the C++ open peer core, stack, media and libraries needed to support the underlying SDK.
Next, from your terminal, please clone the "OPiOS" git repository:
git clone git@github.com:openpeer/OPiOS.git
This repository contains the iOS SDK objective-C source code wrapper to the C++ SDK. This allows you to build objective-C applications without learning the C++ code.
Directory structure:
OPiOS/ - contains the project files for building the Open Peer iOS SDK framework
OPiOS/openpeer-ios-sdk/ - contains the Open Peer iOS SDK header files
OPiOS/openpeer-ios-sdk/source/ - contains the implementation of the iOS SDK header files
OPiOS/openpeer-ios-sdk/internal/ - contains the wrapper interface that implements the Objective-C to C++ interaction
How to build:
1) Build curl, from your terminal:
cd OP/hookflash-libs/curl/projects/gnu-make/
./build all
2) Build boost, from your terminal:
cd OP/hookflash-libs/boost/projects/gnu-make/
./build all
3) From X-code, load:
OPiOS/openpeer-ios-sdk (project/workspace)
4) Select OpenpeerSDK > iOS Device schema and then build
The framework will be built inside:
OPiOS/build/Debug-iphoneos/OpenpeerSDK.framework
Required frameworks:
CoreAudio
CoreVideo
CoreMedia
AudioToolbox
AVFoundation
libresolve.dylib
Exploring the dependency libraries:
Core Projects/zsLib - asynchronous communication library for C++
Core Projects/udns - C language DNS resolution library
Core Projects/cryptopp – C++ cryptography language
Core Projects/hfservices - C++ Hookflash Open Peer communication services layer
Core Projects/hfstack – C++ Hookflash Open Peer stack
Core Projects/hfcore – C++ Hookflash Open Peer core API (works on the Open Peer stack)
Core Projects/WebRTC – iPhone port of the webRTC media stack
Exploring the SDK:
openpeer-ios-sdk/ - header files used to build Open Peer iOS applications
openpeer-ios-sdk/Source - implementation of header files
openpeer-ios-sdk/Internal – internal implementation of iOS to C++ wrapper for SDK
Samples/OpenPeerSampleApp - basic example of how to use the SDK
Exploring the header files:
HOPTypes.h
- basic HOP types
HOPStack.h
- Object to be constructed after HOPClient object, pass in all the listener event protocol objects
HOPProtocols.h
- Object-C protocols to implement callback event routines
HOPAccountSubscription.h
- Object returned when subscribing to Open Peer account status
HOPCall.h
- Call object for audio/video calls created with the contact of a conversation thread
HOPConctact.h
- Contact object representing a local or remote peer contact/person
HOPConversationThread.h
- Conversation object where contacts are added and text and calls can be performed
HOPMediaEngine.h
- controls for media
HOPMedaEngineStatistics.h
- Object used for gathering RTCP media statistics
HOPIdentity.h
- Identity object used in provisioning, used to map user's identity to open peer contact
HOPIdentityInfo.h
- Object representing information about the state of the identity of "self" contact during provisioning
HOPLookupProfileInfo.h
- Object returned after lookup of an identity representing a peer contact for provisioning
HOPProvisioingAccount.h
- Object used to create an account or login to an existing account for provisioned accounts
HOPProvisioningAccountOAuthIdentityAssociation.h
– API for associating an OAuth identity to the provisioned account
HOPAccountPush.h
- Object used for push notifications for offline messages
HOPProvisioningAccountIdentityLookupQuery.h
- Object used to lookup identities of peer contacts to obtain peer contact information
HOPProvisioningAccountPeerFileLookupQuery.h
- Object used to lookup the public peer files to create contact objects for peer contacts
HOPProvisioningAccount_ForFutureUse.h
- Not currently used, this will be the set of APIs that will replace the current provisioning mechanism
Notes on the future API changes:
The provisioning API will change to allow for 3rd party identities with any website and federation between websites. The new provisioning API is put inside the _ForFutureUse.h header file and has no implementation at this time. This API is of high priority.
The current provisioning API supports email, phone number, LinkedIn and Facebook identity association only. The new API will allow any Open Peer oauth login to any Open Peer enabled websites.
Please contact robin@hookflash.com if you have any suggestions to improve the API. Please use support@hookflash.com for any bug reports. New feature requests should be directed to erik@hookflash.com.
Thank you for your interest in the Hookflash Open Peer iOS SDK.
License:
Copyright (c) 2012, SMB Phone Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.