openvidu-backend-client JAR offered

pull/20/head
pabloFuente 2017-05-21 17:22:36 +02:00
parent cdbe93c953
commit b7e3c84be6
5 changed files with 25 additions and 10 deletions

6
.gitignore vendored
View File

@ -1,5 +1,7 @@
*~
target
!*/target/
*/target/*
!openvidu-backend-client/target/openvidu-backend-client.jar
.classpath
.project
.settings

View File

@ -179,16 +179,21 @@ For secret "MY_SECRET", the final header would be
> (See [OpenViduRole](#openvidurole) section)
#### openvidu-backend-client
A Java package that wraps the HTTP REST operations for making them even easier. Maven dependecy is available:
A Java package that wraps the HTTP REST operations for making them even easier
- Maven dependency
```xml
<dependency>
<groupId>org.openvidu</groupId>
<artifactId>openvidu-backend-client</artifactId>
<version>...</version>
</dependency>
```
```xml
<dependency>
<groupId>org.openvidu</groupId>
<artifactId>openvidu-backend-client</artifactId>
<version>...</version>
</dependency>
```
- Jar
```
https://github.com/OpenVidu/openvidu/tree/master/openvidu-backend-client/target/openvidu-backend-client.jar
```
The usage is quite simple: import OpenVidu package and get an **OpenVidu** object. You need to provide to the constructor the IP of your OpenVidu Server and the secret shared with it (initialized by `openvidu.secret=MY_SECRET` property). Then just call the following methods to get a shiny new sessionId or token to be returned to your frontend.

View File

@ -0,0 +1,3 @@
mvn clean compile package
cp target/openvidu-backend-client-0.0.1-SNAPSHOT.jar target/openvidu-backend-client.jar

View File

@ -5,3 +5,8 @@ server.ssl.key-store-password: kurento
server.ssl.keyStoreType: JKS
server.ssl.keyAlias: kurento-selfsigned
server.context-path: /
kms.uris=[\"ws://localhost:8888/kurento\"]
openvidu.secret: MY_SECRET
openvidu.security: true