You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lennart Grahl 7923697236
Cleanup (#4)
hace 5 meses
android Cleanup (#4) hace 5 meses
web Cleanup (#4) hace 5 meses
.gitignore Android: Upgrade to the latest SaltyRTC libs hace 2 años
LICENSE-APACHE Add README, licenses and screenshots hace 2 años
LICENSE-MIT Upgrade copyright year hace 11 meses
README.md Android: Update Gradle and SaltyRTC, build for API27 hace 1 año

README.md

SaltyRTC Demo

Small demo application with a web interface and an Android app that communicate over the signaling channel as well as via WebRTC.

        

The default configuration uses a test server instance provided at wss://server.saltyrtc.org:9287. You can also use your own.

Note that you might need to configure a TURN server if you want to test complex network setups that can’t be resolved using STUN.

Note also that this demo application only uses hardcoded trusted peer keys. In practice, you would want to initialize a session using an auth token.

Usage

Web

Prerequisites: npm version >= 3

Install dependencies:

$ npm install

First, adjust the HOST and PORT variables in the scripts.js file and point them to a SaltyRTC server instance. Then simply open index.html in a modern web browser with support for WebRTC and ES2015. By default, our demo server instance is pre-configured.

If you want to adjust STUN/TURN server configuration, set the STUN_* and TURN_* constants in scripts.js.

Android

Make sure that the Android SDK is installed and configured properly.

Then, adjust the HOST and PORT variables in the app/src/main/java/org/saltyrtc/demo/app/Config.java file and point them to a SaltyRTC server instance. By default, our demo server instance is pre-configured.

If you want to adjust STUN/TURN server configuration, set the STUN_* and TURN_* constants in app/src/main/java/org/saltyrtc/demo/app/Config.java.

Finally, connect an Android 5.0+ device with USB debugging enabled to your computer and run the following command:

$ ./gradlew assembleDebug installDebug

License

Copyright (c) 2016-2018 Threema GmbH

Licensed under the Apache License, Version 2.0, <see LICENSE-APACHE file>
or the MIT license <see LICENSE-MIT file>, at your option. This file may not be
copied, modified, or distributed except according to those terms.