Browse Source

hls, webrtc: in web page, prevent video from overflowing (#2958)

pull/2978/head
Alessandro Ros 1 year ago committed by GitHub
parent
commit
b32bc8dee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      internal/servers/hls/index.html
  2. 5
      internal/servers/webrtc/publish_index.html
  3. 4
      internal/servers/webrtc/read_index.html

4
internal/servers/hls/index.html

@ -8,10 +8,12 @@ html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 100%; height: 100%;
overflow: hidden;
font-family: 'Arial', sans-serif; font-family: 'Arial', sans-serif;
} }
#video { #video {
position: absolute;
top: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgb(30, 30, 30); background: rgb(30, 30, 30);

5
internal/servers/webrtc/publish_index.html

@ -11,6 +11,9 @@ html, body {
font-family: 'Arial', sans-serif; font-family: 'Arial', sans-serif;
} }
#video { #video {
position: absolute;
top: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgb(30, 30, 30); background: rgb(30, 30, 30);
@ -22,7 +25,7 @@ html, body {
justify-content: center; justify-content: center;
padding: 10px; padding: 10px;
flex-direction: column; flex-direction: column;
height: 100%; min-height: 100%;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
background: rgb(30, 30, 30); background: rgb(30, 30, 30);

4
internal/servers/webrtc/read_index.html

@ -8,10 +8,12 @@ html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 100%; height: 100%;
overflow: hidden;
font-family: 'Arial', sans-serif; font-family: 'Arial', sans-serif;
} }
#video { #video {
position: absolute;
top: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgb(30, 30, 30); background: rgb(30, 30, 30);

Loading…
Cancel
Save