Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Lennart Grahl 7923697236
Cleanup (#4)
vor 5 Monaten
android Cleanup (#4) vor 5 Monaten
web Cleanup (#4) vor 5 Monaten
.gitignore Android: Upgrade to the latest SaltyRTC libs vor 2 Jahren
LICENSE-APACHE Add README, licenses and screenshots vor 2 Jahren
LICENSE-MIT Upgrade copyright year vor 11 Monaten
README.md Android: Update Gradle and SaltyRTC, build for API27 vor 1 Jahr

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.