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
0a5b7c4e
Commit
0a5b7c4e
authored
Nov 10, 2024
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Secure video element uses all space available"
This reverts commit
e2d6d245
parent
4c26f5ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
20 deletions
+10
-20
stream.html
templates/stream.html
+10
-20
No files found.
templates/stream.html
View file @
0a5b7c4e
...
...
@@ -32,8 +32,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
height
:
100%
;
}
video
{
width
:
100%
!important
;
height
:
100%
!important
;
width
:
100%
;
height
:
100%
;
object-fit
:
contain
;
}
</style>
...
...
@@ -41,29 +41,19 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<body>
<div
id=
"videoContainer"
>
<video
id=
"videoPlayer"
autoplay
muted
playsinline
>
<source
type=
"video/mp4"
>
<source
src=
"/video_feed"
type=
"video/mp4"
>
Your browser does not support the video tag.
</video>
</div>
<script
src=
"https://vjs.zencdn.net/7.20.3/video.min.js"
></script>
<script>
window
.
onload
=
function
()
{
var
player
=
videojs
(
'videoPlayer'
,
{
html5
:
{
vhs
:
{
overrideNative
:
!
videojs
.
browser
.
IS_SAFARI
},
nativeAudioTracks
:
false
,
nativeVideoTracks
:
false
,
autoplay
:
true
,
muted
:
true
,
controls
:
false
,
fluid
:
true
,
respomsive
:
true
}});
player
.
src
({
src
:
'{{ stream_url }}'
,
type
:
'application/x-mpegURL'
});
player
.
play
();
};
var
player
=
videojs
(
'videoPlayer'
,
{
autoplay
:
true
,
muted
:
true
,
controls
:
true
,
fluid
:
true
,
responsive
:
true
});
// Function to handle resize
function
handleResize
()
{
...
...
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