7,984 questions
-2
votes
1
answer
77
views
HTML MP4 Play On Hover / Pause On Mouse Exit: Only Works On First Video
I am using Javascript to play an HTML5 video when you hover over it, and then pause the video once the mouse exits. The module is working correctly in that sense, except it only works for the first ...
1
vote
0
answers
114
views
three.js: How do I wait for the <canvas> image to update for each render?
Calling renderer.render() in a requestAnimationFrame() loop will often fire faster than the <canvas> element can update its image, making any "true" FPS measurement inaccurate.
In ...
2
votes
0
answers
145
views
Wrong camera -> video orientation on website "Added to Home Screen" on iPadOS 26: any workarounds?
Given an HTML5 video element...
‹video id='video' autoplay muted playsinline></video>
..and some JavaScript to set its source to a camera by means of getUserMedia...
(async () => {
...
0
votes
0
answers
113
views
How to play MP4 videos one after another smoothly in React without glitches when updating video URL from server?
I’m building a React component where I need to play MP4 videos one after another. The next video URL is received from the server only after the current one finishes.
The problem:
When I update the ...
3
votes
1
answer
225
views
How to create a scalloped border around a div containing bg content using CSS
I’m trying to create a 15px yellow scalloped border around generic content divs (e.g. with background photos or videos) for a nonprofit preschool website. Here’s the effect I’m aiming for:
I’m using ...
0
votes
1
answer
60
views
React iframe video player not auto-progressing to next video (external source inside iframe)
I'm building a custom React video player that uses an to load external video players (like this sample link). I want the app to automatically go to the next video when the current one ends — but ...
0
votes
0
answers
68
views
How to synchronize hover time and seek time in a custom React video player using ReactPlayer?
I'm building a custom video player in React and I'm having trouble aligning the time displayed on hover over the progress bar with the actual seek time used when clicking.
Problem
I use an as the ...
-11
votes
1
answer
300
views
Reacting when N videos have preloaded a given time interval? [closed]
I was watching a youtube where the content creator used GSAP to animate the switching between videos, which was very smooth, and I'd like to create something similar, but with a spinner that is shown ...
-1
votes
1
answer
210
views
Why does MediaRecorder.ondataavailable return empty blobs (event.data.size === 0) on some devices?
I’m building a web application that captures microphone audio using MediaRecorder and sends it to the backend for processing. Everything works fine on most devices (desktop and mobile), but on some ...
0
votes
0
answers
54
views
How Can I Make Vimeo's Javascript Player API iframe body Fill instead of Contain?
I want to embed an iframe that contains a vimeo video inside a container div and give that div any ole aspect-ratio and just have my vimeo video conform to that using something like object-fit: cover (...
1
vote
1
answer
61
views
InsertableStreams take a already modified videoFrame input
Let's say we have :
const trackProcessor = new MediaStreamTrackProcessor({track: tracks})
const trackGenerator = new MediaStreamTrackGenerator({kind: 'video'})
const transformer = new TransformStream(...
1
vote
1
answer
91
views
Why does my HTML video tag not function on mobile browsers?
I am currently working on my website that supports file uploading.
Part of this feature involves the ability to stream video from my site using the video tag in html.
Currently I have this feature ...
2
votes
1
answer
78
views
Overwrite video element: display a different image (manually decoded frame) & WebGL compatibility
Context
I'm currently building a library to precisely record (ideally any) javascript-based animation, even on slow computers or at very high framerate (e.g. 120fps to do motion blur later…). What I ...
0
votes
1
answer
205
views
iOS Mobile Video Audio Playback Issues in React
I'm experiencing issues with audio playback in my React video player component specifically on iOS mobile devices (iPhone/iPad). Even after implementing several recommended solutions, including Apple'...
1
vote
1
answer
125
views
HTML5 video player: How the audio stream is chosen when there are multiple options
I'm building a web app to run on my home LAN, which will stream video files from a central server to whichever device I feel like watching on.
These video files (.mp4, .mkv, etc.) often have multiple ...
1
vote
0
answers
122
views
Firefox on Android does not adjust video output to landscape mode
So I have this weird problem that only occurs on Firefox for Android.
When I open a MediaStream using the Media Capture and Streams API and use the resulting stream as video source for a HTML5 Video ...
1
vote
1
answer
1k
views
Angular 19 video from assets folder
I am creating an Angular 19 app. This is my stackblitz link.
This is my video tag in index.html
<video controls width="600" height="300" id="myVideo">
<source ...
0
votes
0
answers
127
views
navigator.mediaDevices.getUserMedia() portrait mode in mobile device - video track is not cropped and resized
In a small web project I am trying to get a video element that displays a video track "cropped" in portrait mode.
In my HTML I have something like:
<video id="video" style="...
0
votes
2
answers
70
views
Why doesn't the following video file playback in Safari?
This video plays back correctly in MacOS Preview, but fails to playback in Safari (iOS + MacOS). Why?
<video src="https://lt.harding.dev/pictrs/image/88aaf722-b9d5-4e72-88c4-63e5e9a1bc42.mp4" ...
0
votes
1
answer
29
views
Displaying more than one video side by side on HTML Canvas
I can display one video in canvas using something like the following code :
let animation_handle;
const canvas = document.querySelector("canvas");
const ctx = canvas.getContext("2d"...
0
votes
1
answer
26
views
Ionic 6 + Angular: `video` tag isn't working on iOS app build
I am using the html5 video tag to refer to a video as such:
<video
width="100%"
height="auto"
onloadedmetadata="this.muted = true"
...
2
votes
1
answer
90
views
How is remove background from .mp4 video?
I found an interesting thing on the game's website. When you focus on a button, it adds a <video> as a background on hover. But this video is in `mp4` format with a black background. Can someone ...
1
vote
0
answers
463
views
Error using webcodecs to decode h264 data and display on browser from http fetch
I am getting :
(index):60 Error during fetch or decode process: DataError: Failed to execute 'decode' on 'VideoDecoder': A key frame is required after configure() or flush(). If you're using AVC ...
0
votes
2
answers
886
views
How to make WebM screen recording chunks independently processable (for audio extracting)
I am streaming screen recordings from the browser into 5-second WebM chunks using the MediaRecorder API.
The first chunk (root chunk) is independently processable because it contains the necessary ...
1
vote
2
answers
279
views
Is there any way to decode NALu in browser?
Environment
I am developing a product for a highly restricted environment (e.g., military, casinos) where installing my media server(for transcoding) is not allowed. As a result, I need to handle ...