Skip to content

Tag: video

Adding subtitles in React Player?

i am trying to add subtitles in React Player component , Here is the code for react player component i cant understand what i am doing wrong as they are not appearing on the video. kindly help Answer ive figured out the issue, the subtitles url was giving me CORS policy issue , The above code is fine it should

Javascript: frame precise video stop

I would like to be able to robustly stop a video when the video arrives on some specified frames in order to do oral presentations based on videos made with Blender, Manim… I’m aware of this question, but the problem is that the video does not stops exactly at the good frame. Sometimes it continues forward for one frame and

Get data URL from video stream?

I have a video (webm) capture script that works fine. It records video then offers it as a download. The pertinent part of the code is this: This works, as I say. However, the console says that passing media streams to URL.createObjectURL is deprecated, and I should use HTMLMediaElement srcObject instead. So I changed it to: …and although everything still

Detecting video resolution changes

With some codecs and containers, it’s possible for a video to change resolution mid-stream. This is particularly common with RTC-style video streams where resolution can scale up/down based on available bandwidth. In other cases, the recording device might be rotated and the video may flip from portrait to landscape or vice versa. When playing these […]