GithubHelp home page GithubHelp logo

imclab / webrtc-jquery-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from freshtilledsoil/webrtc-jquery-plugin

0.0 2.0 0.0 230 KB

This plugin enables real-time streaming of video and/or audio between two web browsers(or peers).

License: MIT License

CSS 10.51% HTML 1.95% JavaScript 87.53%

webrtc-jquery-plugin's Introduction

THIS PLUGIN IS NOT ACTIVELY MAINTAINED

WebRTC jQuery plugin

This plugin enables real-time streaming of video and/or audio between two web browsers(or peers).

Installation

  • Download & unzip the source
  • Move the source into your www directory
  • Open the page http://yourserver/
  • Enjoy!

Use

First, the HTML...

Place the following HTML code snippet within your tag

<!-- main container -->
<div id="mainContainer" class="main-container">

    <!-- local video -->
    <video id="localVideo" class="local-video"></video>

    <!-- remote video -->
    <video id="remoteVideo" class="remote-video" autoplay></video>

    <!-- video status & room entry bar -->
    <div id="videoStatus" class="video-status"></div>

</div>

Then, the CSS...

Include the css within your head tag

<link rel="stylesheet" href="css/fts-webrtc-styles.css">

And finally, the bloody brilliant piece that makes it all happen --the JavaScript!

This plugin enables real-time streaming of video between to browsers. Some more text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus leo ipsum, tempor eget mollis in, vehicula eu quam. Fusce fermentum elit at lorem tincidunt eget tempus urna ultricies.

<!-- JavaScript Ressources -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/jquery.fresh-tilled-soil-webrtc.js"></script>

<!-- Plugin Initialization -->
<script type="text/javascript">
    $(function() {
        $('#mainContainer').createVideoChat();
    });
</script>

Full Sample Demo Page (Putting it all Together)

This plugin enables real-time streaming of video between to browsers. Some more text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus leo ipsum, tempor eget mollis in, vehicula eu quam. Fusce fermentum elit at lorem tincidunt eget tempus urna ultricies.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Fresh Tilled Soil Video Conference | WebRTC jQuery Plug-in Demo</title>

<!-- Stylesheet Resources -->
<link rel="stylesheet" href="css/fts-webrtc-styles.css">

</head>
<body>

<!-- main container -->
<div id="mainContainer" class="main-container">

    <!-- local video -->
    <video id="localVideo" class="local-video"></video>

    <!-- remote video -->
    <video id="remoteVideo" class="remote-video" autoplay></video>

    <!-- video status & room entry bar -->
    <div id="videoStatus" class="video-status"></div>

</div>

<!-- JavaScript Ressources -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/jquery.fresh-tilled-soil-webrtc.js"></script>

<!-- Plugin Initialization -->
<script type="text/javascript">
    $(function() {
        $('#mainContainer').createVideoChat();
    });
</script>

</body>
</html>

Browser Support

Given the newness of WebRTC this jQuery plug-in has been created to support all major browsers that support the latest draft WebRTC specifications at the time of release. Below you will find a list & download links for the latest supported browsers:

  • Chrome
  • Chrome Beta for Android (for tablet & mobile phone support)
  • FireFox
  • Internet Explorer 10 (requires Google Chrome Frame plug-in)
  • Chromium
  • Chrome Canary
  • FireFox Aurora
  • FireFox Nightly

webrtc-jquery-plugin's People

Contributors

timwright12 avatar

Watchers

 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.