Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
SHMCamStudio
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
SHMCamStudio
Commits
e2d6d245
Commit
e2d6d245
authored
Nov 10, 2024
by
nextime
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Secure video element uses all space available
parent
4319cea9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
stream.html
templates/stream.html
+20
-10
No files found.
templates/stream.html
View file @
e2d6d245
...
@@ -32,8 +32,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
...
@@ -32,8 +32,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
height
:
100%
;
height
:
100%
;
}
}
video
{
video
{
width
:
100%
;
width
:
100%
!important
;
height
:
100%
;
height
:
100%
!important
;
object-fit
:
contain
;
object-fit
:
contain
;
}
}
</style>
</style>
...
@@ -41,19 +41,29 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
...
@@ -41,19 +41,29 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<body>
<body>
<div
id=
"videoContainer"
>
<div
id=
"videoContainer"
>
<video
id=
"videoPlayer"
autoplay
muted
playsinline
>
<video
id=
"videoPlayer"
autoplay
muted
playsinline
>
<source
src=
"/video_feed"
type=
"video/mp4"
>
<source
type=
"video/mp4"
>
Your browser does not support the video tag.
Your browser does not support the video tag.
</video>
</video>
</div>
</div>
<script
src=
"https://vjs.zencdn.net/7.20.3/video.min.js"
></script>
<script
src=
"https://vjs.zencdn.net/7.20.3/video.min.js"
></script>
<script>
<script>
window
.
onload
=
function
()
{
var
player
=
videojs
(
'videoPlayer'
,
{
var
player
=
videojs
(
'videoPlayer'
,
{
html5
:
{
vhs
:
{
overrideNative
:
!
videojs
.
browser
.
IS_SAFARI
},
nativeAudioTracks
:
false
,
nativeVideoTracks
:
false
,
autoplay
:
true
,
autoplay
:
true
,
muted
:
true
,
muted
:
true
,
controls
:
tru
e
,
controls
:
fals
e
,
fluid
:
true
,
fluid
:
true
,
responsive
:
true
respomsive
:
true
});
}});
player
.
src
({
src
:
'{{ stream_url }}'
,
type
:
'application/x-mpegURL'
});
player
.
play
();
};
// Function to handle resize
// Function to handle resize
function
handleResize
()
{
function
handleResize
()
{
...
...
Franco (nextime) Lanza
@nextime
mentioned in commit
0a5b7c4e
·
Nov 10, 2024
mentioned in commit
0a5b7c4e
mentioned in commit 0a5b7c4e1c1e0b3743af5db515f4cba5ed2afaff
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment