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
30905fdb
Commit
30905fdb
authored
Nov 10, 2024
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repristinate stream.html
parent
9230acdc
Changes
1
Hide 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 @
30905fdb
...
...
@@ -32,8 +32,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
height
:
100%
;
}
video
{
width
:
100%
;
height
:
100%
;
width
:
100%
!important
;
height
:
100%
!important
;
object-fit
:
contain
;
}
</style>
...
...
@@ -41,19 +41,29 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<body>
<div
id=
"videoContainer"
>
<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.
</video>
</div>
<script
src=
"https://vjs.zencdn.net/7.20.3/video.min.js"
></script>
<script>
var
player
=
videojs
(
'videoPlayer'
,
{
autoplay
:
true
,
muted
:
true
,
controls
:
true
,
fluid
:
true
,
responsive
:
true
});
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
();
};
// 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