obsproject / obsproject/obs-browser
Webm in Browser source local file cannot use currenttime
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 904
- Forks
- 267
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Description
Operating System Info
Windows 11
Other OS
No response
OBS Studio Version
29.1.3
OBS Studio Version (Other)
No response
OBS Studio Log URL
NA
OBS Studio Crash Log URL
No response
Expected Behavior
Cannot use a video in webm and set the currenttime. Always go to the beginning of the video and does not assume the currenttime. if we use other video codec it works, only webm doesn't.
In this case the video should forward to 5s and on local file starts from the beginning, on internet file starts on 5s.
Problem In the last versions 29.x, 28.x and 27.x. It works on 26.x
This works on chrome versions tested on v75 and v114. Only fails on OBS.
Just need's to comment the local file and uncomment the internet file to test it.
Tks
Current Behavior
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<video width="100%" height="100%" muted="muted">
<!-- Same Video on the Web -->
<!-- <source src="https://test-videos.co.uk/vids/bigbuckbunny/webm/vp9/1080/Big_Buck_Bunny_1080_10s_1MB.webm"> -->
<!-- Same Video Local file -->
<source src="video/Big_Buck_Bunny_1080_10s_1MB.webm">
</video>
<script>
var video = document.querySelector('video');
video.currentTime = 5.00;
video.play();
console.log(video.currentTime);
</script>
</body>
</html>
Steps to Reproduce
- Use the html example.
- Just need's to comment the local file and uncomment the internet file to test it. to see the different behaver.
...
Anything else we should know?
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the supplied HTML example in OBS Studio 29.1.3, comparing the local WebM source with the internet source and checking whether currentTime reaches 5 seconds. Then trace the OBS browser plugin's media handling for local WebM files; done means the local file seeks to 5 seconds like the remote file without breaking the existing playback behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, html, javascript
- Domain
- desktop, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100