Quantcast
Channel: Knowledge Hub Networks » VoIP & Gadgets Blog
Viewing all articles
Browse latest Browse all 63

WebRTC Screen Sharing Using Openfire

$
0
0
I've written about WebRTC screen sharing, but today I came across another WebRTC screen sharing solution leveraging Openfire and using WebSockets and JingleNodes (XMPP) plugins. If you're not familiar with Openfire, it's a real time collaboration (RTC) server licensed under the Open Source Apache License. It uses the only widely adopted open protocol for instant messaging, XMPP (also called Jabber).

Code as simple as this allows you to share any video device, whether it's your webcam or your screen:

navigator.webkitGetUserMedia(
    {video:{mandatory: {chromeMediaSource: 'screen'}}},
    this.onUserMediaSuccess.bind(this),
    this.onUserMediaError.bind(this)
);

Here's a screenshot of me sharing two screens between two Windows 8 computers. (click for larger view)
webrtc-screen-sharing-openfire-non-fullscreen.png

Here's a full screen view after double-clicking the thumbnail real-time view of the other PC's screen (click for larger view):
webrtc-openfire-screen-sharing.png

The demo leverages Openfire using the WebSockets and JingleNodes plugins, which uses a simple XMPP Jingle library. Interestingly, it has support for Jingle Relay Nodes to bridge the media when both peers cannot communicate directly with each other. No email registration is required so you can instantly try this demo without signing up for anything, though you do need to register a temporary username.

All you need is two PCs running Chrome version 26 stable or Firefox (Nightly build), both of which now support full desktop screen sharing. In Chrome, you have to enable "Enable screen capture support in getUserMedia()" via the chrome://flags URL for this to work.

Then simply open this URL https://webrtc.free-solutions.org:8443/webrtc/screen.html from the two PCs and register using two different user names and then call the other PC.

Go read the Ignite Realtime Blog for more info on the screen-sharing demo and then for more WebRTC fun, check out this demo with sample code! Lastly, be sure to check out the WebRTC Conference & Expo which will be in Atlanta, George in June.

Tags: , , , , , , , Related tags: , , , , ,

Related Entries
  • WebRTC Screen Sharing Demo! - Feb 20, 2013
    xsockets-allow-screen-sharing.png
  • WebRTC Challenges - Jan 22, 2013
    google-webrtc-logo.jpg
  • Logitech Sets Sights on Unified Communications - Jun 14, 2013
    pyle-pitlb20-bluetooth-wireless-retro-handset.jpg
  • NSA Can Wiretap Skype, Google & Facebook - But Not WebRTC - Jun 07, 2013
    PRISM-slide.jpg
  • WebRTC Test Demo Fun - Jan 21, 2013
    browsermeeting-webrtc.PNG
  • Google's Chrome Team Reveals WebRTC Roadmap - Apr 18, 2012
    chrome.png
  • Microsoft Working on HTML5 Skype Web App? - Apr 16, 2012
    skype-html5-web-app.png
  • Lync Federation Tool Makes it Easy to Find Lync-enabled Business Partners - Jan 23, 2012
    lync-who-can-federate-tool.jpg
  • Skype Releases Click-to-Call Update - Dec 08, 2011
  • Skype Click to Call Add-on Now Supports Firefox 5 & 6 - Aug 24, 2011
  • TrackBacks | Comments | Tag with del.icio.us | VoIP & Gadgets Blog Home | Permalink: WebRTC Screen Sharing Using Openfire Copyright VoIP & Gadgets Blog

    Apex Technology Services
    Sponsored by Apex Technology Services, a leading IT Services company


    Viewing all articles
    Browse latest Browse all 63

    Trending Articles