mediasoup/public/index.html

94 lines
3.2 KiB
HTML
Raw Normal View History

2022-07-23 07:32:54 +00:00
<html>
<head>
<style>
tr {
vertical-align: top;
}
.video {
width: 360px;
background-color: black;
margin: 2px 0;
}
button {
margin: 2;
}
#sharedBtns {
padding: 5;
background-color: papayawhip;
display: flex;
justify-content: center;
}
</style>
</head>
<body>
<body>
<div id="video">
<table>
<thead>
<th>Local Video</th>
<th>Remote Video</th>
</thead>
<tbody>
<tr>
<td>
<div id="sharedBtns">
<video id="localVideo" autoplay class="video" ></video>
</div>
</td>
<td>
<div id="sharedBtns">
<video id="remoteVideo" autoplay class="video" ></video>
</div>
</td>
</tr>
<tr>
<td>
<div id="sharedBtns">
<button id="btnLocalVideo">Publish</button>
</div>
</td>
<td>
<div id="sharedBtns">
<button id="btnRecvSendTransport">Consume</button>
2022-07-23 07:32:54 +00:00
</div>
</td>
<td class="remoteColumn">
<div id="videoContainer"></div>
</td>
2022-07-23 07:32:54 +00:00
</tr>
<!-- <tr>
2022-07-23 07:32:54 +00:00
<td colspan="2">
<div id="sharedBtns">
<button id="btnRtpCapabilities">2. Get Rtp Capabilities</button>
<br />
<button id="btnDevice">3. Create Device</button>
</div>
</td>
</tr>
<tr>
<td>
<div id="sharedBtns">
<button id="btnCreateSendTransport">4. Create Send Transport</button>
<br />
<button id="btnConnectSendTransport">5. Connect Send Transport & Produce</button></td>
</div>
<td>
<div id="sharedBtns">
<button id="btnRecvSendTransport">6. Create Recv Transport</button>
<br />
<button id="btnConnectRecvTransport">7. Connect Recv Transport & Consume</button>
</div>
</td>
</tr> -->
2022-07-23 07:32:54 +00:00
</tbody>
</table>
</div>
</body>
</body>
<footer>
<script src="bundle.js"></script>
</footer>
</html>