| 1 |
<!DOCTYPE html> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
| 6 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 7 |
<title>Janus WebRTC Server (multistream): Screen Sharing Demo</title> |
| •8 |
<script type="text/javascript" src="javascript/webrtc-adapter/adapter.min.js" ></script> |
| 9 |
<script type="text/javascript" src="javascript/jquery/jquery.min.js" ></script> |
| 10 |
<script type="text/javascript" src="javascript/popper.js/popper.js"></script> |
| 11 |
<script type="text/javascript" src="javascript/jquery-blockui/jquery.blockUI.js" ></script> |
| 12 |
<script type="text/javascript" src="javascript/bootstrap5/js/bootstrap.min.js"></script> |
| 13 |
<script type="text/javascript" src="javascript/bootbox/bootbox.min.js"></script> |
| 14 |
<script type="text/javascript" src="settings.js" ></script> |
| •15 |
<script type="text/javascript" src="javascript/janus-gateway/janus.min.js" ></script> |
| 16 |
<script type="text/javascript" src="screensharing.js"></script> |
| 17 |
<script> |
| 18 |
$(function() { |
| 19 |
$(".fixed-top").load("navbar.html", function() { |
| 20 |
$(".fixed-top li.dropdown").addClass("active"); |
| 21 |
$(".fixed-top a[href='screensharing.html']").addClass("active"); |
| 22 |
}); |
| 23 |
$(".footer").load("../footer.html"); |
| 24 |
}); |
| 25 |
</script> |
| •26 |
|
| •27 |
<link rel="stylesheet" href="demo.css" type="text/css"/> |
| •28 |
<link rel="stylesheet" href="fonts/font-awesome/css/font-awesome.min.css" type="text/css"/> |
| 29 |
</head> |
| 30 |
<body> |
| 31 |
|
| 32 |
<a href="https://github.com/meetecho/janus-gateway"><img style="position: absolute; top: 0; left: 0; border: 0; z-index: 2001;" src="../forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a> |
| 33 |
|
| 34 |
<div class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary"> |
| 35 |
</div> |
| 36 |
|
| 37 |
<div class="container"> |
| 38 |
<div class="row"> |
| 39 |
<div class="col-md-12"> |
| 40 |
<div class="pb-2 mt-4 mb-2 border-bottom"> |
| 41 |
<h1>Plugin Demo: Screen Sharing |
| 42 |
<button class="btn btn-secondary" autocomplete="off" id="start">Start</button> |
| 43 |
</h1> |
| 44 |
</div> |
| 45 |
<div class="container" id="details"> |
| 46 |
<div class="row"> |
| 47 |
<div class="alert alert-primary mt-2 mb-5"> |
| 48 |
Want to learn more about the <strong>VideoRoom</strong> plugin? |
| 49 |
Check the <a target="_blank" href="https://janus.conf.meetecho.com/docs/videoroom">Documentation</a>. |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
<div class="row"> |
| 53 |
<div class="col-md-12"> |
| 54 |
<h3>Demo details</h3> |
| 55 |
<p>This demo, as the Video Conferencing one, makes use of the Video Room plugin. Unlike |
| 56 |
the video conferencing scenario, though, this demo implements a webinar kind of scenario: |
| 57 |
that is, it allows a single user to share their screen with a set of passive |
| 58 |
viewers.</p> |
| 59 |
<p>When started, the demo asks you whether you want to be the one sharing the screen |
| 60 |
(or an application you're using, if your browser version is recent enough) |
| 61 |
or a viewer to an existing session. When sharing your screen/application, an ID will be returned |
| 62 |
that you'll be able to share with other people to act as viewers.</p> |
| 63 |
<div class="alert alert-info"><b>Note well!</b> If you want to share your screen, you may need to open |
| 64 |
the <b>HTTPS</b> version of this page. If Janus is not behind the same webserver |
| 65 |
as the pages that are served (that is, you didn't configure a proxying of HTTP requests |
| 66 |
to Janus via a web frontend, e.g., Apache HTTPD), make sure you started it |
| 67 |
with HTTPS support as well, since for security reasons you cannot contact an HTTP |
| 68 |
backend if the page has been served via HTTPS. Besides, if you configured Janus |
| 69 |
to make use of self-signed certificates, try and open a generic link served by Janus |
| 70 |
in the browser itself, or otherwise AJAX requests to it will fail due to the unsafe |
| 71 |
nature of the certificate.</div> |
| 72 |
<p>Press the <code>Start</code> button above to launch the demo.</p> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
</div> |
| 76 |
<div class="container mt-5 hide" id="screenmenu"> |
| 77 |
<div class="row col-md-12"> |
| 78 |
<div class="input-group mt-3 mb-1 hide" id="createnow"> |
| 79 |
<span class="input-group-text"><i class="fa-solid fa-users"></i></span> |
| 80 |
<input class="form-control" type="text" placeholder="Insert a title for the session" autocomplete="off" id="desc" onkeypress="return checkEnterShare(this, event);" /> |
| 81 |
<span class="input-group-btn"> |
| 82 |
<button class="btn btn-success" autocomplete="off" id="create">Share your screen</button> |
| 83 |
</span> |
| 84 |
</div> |
| 85 |
</div> |
| 86 |
<div class="divider col-md-12"> |
| 87 |
<hr class="pull-left"/>or<hr class="pull-right"/> |
| 88 |
</div> |
| 89 |
<div class="row col-md-12"> |
| 90 |
<div class="input-group mt-1 mb-1 hide" id="joinnow"> |
| 91 |
<span class="input-group-text"><i class="fa-solid fa-circle-play"></i></span> |
| 92 |
<input class="form-control" type="text" placeholder="Insert the numeric session identifier" autocomplete="off" id="roomid" onkeypress="return checkEnterJoin(this, event);" /> |
| 93 |
<span class="input-group-btn"> |
| 94 |
<button class="btn btn-success" autocomplete="off" id="join">Join an existing session</button> |
| 95 |
</span> |
| 96 |
</div> |
| 97 |
</div> |
| 98 |
</div> |
| 99 |
<div class="container mt-4 hide" id="room"> |
| 100 |
<div class="row"> |
| 101 |
<div class="col-md-12"> |
| 102 |
<div class="card"> |
| 103 |
<div class="card-header"> |
| 104 |
<span class="card-title">Screen Capture <span class="badge bg-info" id="title"></span> <span class="badge bg-success" id="session"></span></span> |
| 105 |
</div> |
| 106 |
<div class="card-body" id="screencapture"></div> |
| 107 |
</div> |
| 108 |
</div> |
| 109 |
</div> |
| 110 |
</div> |
| 111 |
</div> |
| 112 |
</div> |
| 113 |
|
| 114 |
<hr> |
| 115 |
<div class="footer"> |
| 116 |
</div> |
| 117 |
</div> |
| 118 |
|
| 119 |
</body> |
| 120 |
</html> |