GithubHelp home page GithubHelp logo

open-dis / disintercomexample Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 235 KB

Example that makes use of the DIS intercom PDUs from a web page

License: BSD 2-Clause "Simplified" License

HTML 0.41% JavaScript 99.59%

disintercomexample's Introduction

DISIntercomExample

Example that makes use of the DIS intercom PDUs from a web page. This is a non-working work in progress.

HTML5 allows access to the microphone on desktops. So why not grab the audio, stuff it into a DIS intercom PDU, and send it? Likewise receive DIS audio and play it on the desktop speakers. It's a cheap and easy way to get web-based interoperability with the DIS intercom PDUs with no extra hardware. The web page can connect to a web server via websockets, and the web server can be connected to a conventional ethernet TCP/IP network interface. This all means that web clients should be able to interoperate with existing DIS intercom applications.

Implementation Notes

The W3C audio APIs expect the html and javascript to be served up from a real http server, so for development purposes I've included a nodejs static web server in the distribution. Install nodejs from https://nodejs.org , then type

npm install connect serve-static
node server.js

This downloads the files necessary for nodejs to run a web server, then starts it. The server.js file is the implementation of the web server. The html and javascript files are served from the 'content' directory on port 8282. You can change this by editing the server.js file. Connect to the web server at http://localhost:8282.

This application makes use of the javascript implementation of DIS, available at http://github.com/open-dis/open-dis/javascript . The files are already present in the content directory.

The W3C specification for media capture is here:

https://w3c.github.io/mediacapture-main/getusermedia.html

WebRTC is here:

https://webrtc.org/

disintercomexample's People

Contributors

mcgredonps avatar

Watchers

 avatar  avatar  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.