I have this working example in Bootstrap 4:
<div >
<div >
<div >
<div >
<h5 >Camera streaming</h5>
<div >
<video id="remoteVideo" controls autoplay loop muted></video>
</div>
<div >
<div >
<button id="startButton" type="button" title="" data-toggle="tooltip" >Connect</button>
</div>
<div >
<p><b>Status:</b> <span id="status">offline</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
but is not working in Bootstrap 5
CodePudding user response:
This should solve it.
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<div >
<div >
<div >
<div >
<h5 >Camera streaming</h5>
<div >
<video id="remoteVideo" controls autoplay loop muted></video>
</div>
<div >
<div >
<button id="startButton" type="button" title="" data-toggle="tooltip">Connect</button>
</div>
<div >
<p><b>Status:</b> <span id="status">offline</span></p>
</div>
</div>
</div>
</div>
</div>
</div>