GithubHelp home page GithubHelp logo

ianblenke / svmp-android_external_svmp_webrtchelper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from svmp/android_external_svmp_webrtchelper

0.0 3.0 0.0 1.75 MB

Obsolete. Merged into SVMP/android_external_svmp_eventserver

Makefile 5.51% Java 91.77% Shell 2.72%

svmp-android_external_svmp_webrtchelper's Introduction

WebRTC Translator
=================

Tiny daemon that translates between our protobuf protocol and the HTTP/JSON
protocol that lingjingle's peerconnection_client and peerconnection_server 
examples use.

Intended to live on the SVMP VM instance listening on localhost for connections
from the peerconnection_client-based version of fbstreamer. On the other side
the proxy connects to the input event server. HTTP/JSON messages from fbstreamer
are translated to protobuf and forwarded to the input server.

Building
========

Prerequisites:
*  Oracle JDK 6 (make sure `JAVA_HOME` is set properly)
*  ant
*  Protocol Buffers 2.5.0

Build Steps:
1.  Download the Protocol Buffers distribution and unpack it to a directory we'll call `PROTOBUF_DIR`
2.  Compile and install the protoc compiler, then add it to your PATH.
        cd $PROTOBUF_DIR
        ./configure
        make install
3.  Prepare the protocol buffer java runtime
        cd $PROTOBUF_DIR/java
        protoc --java_out=src/main/java -I../src ../src/google/protobuf/descriptor.proto
4.  Checkout the SVMP protocol to a directory of your choice we'll call `SVMP_PROTO`
        git clone https://github.com/SVMP/svmp-protocol-def.git $SVMP_PROTO
5.  Checkout the translator code to a directory we'll call `SVMP_WEBRTC_PROXY`
        git clone https://github.com/SVMP/android_external_svmp_webrtchelper.git $SVMP_PROXY
6.  Generate the SVMP protocol source and link in the protobuf runtime
        ln -s $PROTOBUF_DIR/java/src/main/java/com $SVMP_PROXY/src/com
        protoc -I $SVMP_PROTO --java_out=$SVMP_WEBRTC_PROXY/src $SVMP_PROTO/svmp.proto
8.  Build using ant. For example:
        cd $SVMP_WEBRTC_PROXY
        ant

If the protocol definition file is changed, re-run the protoc command in step 6 and recompile.

License
=======
Copyright (c) 2012-2013, The MITRE Corporation, All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

svmp-android_external_svmp_webrtchelper's People

Contributors

dkeppler avatar

Watchers

James Cloos avatar Ian Blenke avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.