Screen Sharing with JavaScript and Twilio Programmable Video

The Twilio Programmable Video API allows you to build customized video chat applications on top of the WebRTC standard. This article shows you how to add a screen sharing option to a browser-based Programmable Video application built-in JavaScript.

Read more about it here.

Tagged:

Comments

  • The Twilio Programmable Video API allows you to build customized video chat applications on top of the WebRTC standard. In this article, I’m going to show you how to add a screen sharing option to a browser-based Programmable Video application built in JavaScript.


    Tutorial requirements

    In this tutorial we are going to add a screen sharing feature to the video chat application built with JavaScript and Python on a previous introductory tutorial. To run this application on your computer you need the following requirements:

    • Python 3.6 or newer. If your operating system does not provide a Python interpreter, you can go to python.org to download an installer.
    • A free or paid Twilio account. If you are new to Twilio get your free account now! This link will give you $10 when you upgrade.
    • A web browser that is compatible with the Twilio Programmable Video JavaScript library (see below for a list of them). Note that this requirement also applies to the users you intend to invite to use this application once built.

    Supported web browsers

    Since the core video and audio functionality of this project is provided by Twilio Programmable Video, we’ll need to use one of the supported web browsers listed below:

    • Android: Chrome and Firefox
    • iOS: Safari
    • Linux: Chrome and Firefox
    • MacOS: Chrome, Firefox, Safari and Edge
    • Windows: Chrome, Firefox and Edge

    While the list of browsers that support video calling is fairly extensive and all of them can display screen sharing tracks, only a subset of these browsers have the ability to start a screen sharing session. In particular, none of the mobile browsers can do this, and on the desktop the following versions are required:

    • Chrome 72+
    • Firefox 66+
    • Safari 12.2+

    Check the Programmable Video documentation for the latest supported web browser list, and the Screen Capture page specifically for browser versions that support this feature.

    #code #tutorials and hacks #javascript #programming

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support