Pass params to video.h264
from video.html
This commit is contained in:
parent
ae18e06098
commit
1dd4f7142d
@ -6,38 +6,38 @@
|
|||||||
<title></title>
|
<title></title>
|
||||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||||
<style>
|
<style>
|
||||||
body{
|
body {
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:0;
|
padding:0;
|
||||||
background-color:#303030;
|
background-color:#303030;
|
||||||
}
|
}
|
||||||
|
|
||||||
#streamStage{
|
#streamStage {
|
||||||
position:fixed;
|
position:fixed;
|
||||||
top:0;
|
top:0;
|
||||||
left:0;
|
left:0;
|
||||||
width:100%;
|
width:100%;
|
||||||
height:100%;
|
height:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#streamStage:before {
|
#streamStage:before {
|
||||||
content: '';
|
content: '';
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
margin-top: -1rem;
|
margin-top: -1rem;
|
||||||
margin-left: -1rem;
|
margin-left: -1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#stream{
|
#stream {
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0; left: 0; bottom: 0; right: 0;
|
top: 0; left: 0; bottom: 0; right: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="/jmuxer.min.js"></script>
|
<script src="/jmuxer.min.js"></script>
|
||||||
@ -57,7 +57,7 @@ top: 0; left: 0; bottom: 0; right: 0;
|
|||||||
debug: false
|
debug: false
|
||||||
});
|
});
|
||||||
|
|
||||||
fetch('/video.h264').then(function(response) {
|
fetch('/video.h264' + window.location.search).then(function(response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
||||||
const reader = response.body.getReader();
|
const reader = response.body.getReader();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user