fix:将webview拉伸为全屏、整理代码
This commit is contained in:
parent
23b8257779
commit
aad509e7b9
@ -10,15 +10,26 @@
|
|||||||
html{
|
html{
|
||||||
margin:0 0;
|
margin:0 0;
|
||||||
padding: 0 0;
|
padding: 0 0;
|
||||||
|
overflow: hidden; /* 防止滚动条出现 */
|
||||||
}
|
}
|
||||||
body{
|
body{
|
||||||
margin:0 0;
|
margin:0 0;
|
||||||
padding: 0 0;
|
padding: 0 0;
|
||||||
|
background-color: antiquewhite;
|
||||||
|
overflow: hidden; /* 防止滚动条出现 */
|
||||||
|
}
|
||||||
|
#player {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
object-fit: fill; /* 强制拉伸视频以填充整个视口 */
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<body>
|
<body>
|
||||||
<video autoplay muted style="width: 100vw;height: 100vh;" poster="images/loader-thumb.jpg" id="player">
|
<video autoplay muted poster="images/loader-thumb.jpg"
|
||||||
|
id="player">
|
||||||
</video>
|
</video>
|
||||||
<script>
|
<script>
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
@ -2656,7 +2667,7 @@
|
|||||||
node: 'player',
|
node: 'player',
|
||||||
mode: 'video',
|
mode: 'video',
|
||||||
flushingTime: 1000,
|
flushingTime: 1000,
|
||||||
fps: 22,
|
fps:22,
|
||||||
debug: true,
|
debug: true,
|
||||||
});
|
});
|
||||||
console.log("JMuxer initialized.");
|
console.log("JMuxer initialized.");
|
||||||
|
|||||||
@ -299,7 +299,6 @@ flutter:
|
|||||||
- images/lockType/
|
- images/lockType/
|
||||||
- assets/
|
- assets/
|
||||||
- assets/html/h264.html
|
- assets/html/h264.html
|
||||||
- assets/demo.h264
|
|
||||||
- assets/talk.h264
|
- assets/talk.h264
|
||||||
- lan/
|
- lan/
|
||||||
# An image asset can refer to one or more resolution-specific "variants", see
|
# An image asset can refer to one or more resolution-specific "variants", see
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user