element-meta
element-meta copied to clipboard
Video player do not allow to play from the middle.
Description
I want to skim through a video and play from the middle like in youtube. But the player in Riot only plays from the begining.
Steps to reproduce
- Upload a video and start playing it in any chat.
- Try to fast forward and play from the middle of the video, you cannot
We should have a better media player for audio and video which allows to play from the middle of the video file.
Log: not sent.
Version information
- Platform: desktop
For the desktop app:
- OS: Windows 8.1 32 bit
- Version: 0.10.2
Huh, it's like this on Chrome too; I guess I never noticed.
With the autoplay feature, it would also be nice to be able to click on the video to unmute - much like facebook/everything else.
Seconding this, it's still a problem (even in chrome)
I think the problem is that Synapse doesn't add "Accept-Ranges: bytes" to the headers so the browser thinks it doesn't support partial content (and rightly so). I'm gonna take a look at this as the issue is pretty annoying. It also prevents MP4 videos from playing instantly until the full video is downloaded because some metadata is often located at the end of file.
Stupid question, but does the HTML5 video player by default support ranges? Or is that going to have to be something we modify?
Regardless of whether or not Accept-Ranges: bytes is set, Chrome should buffer the media locally, which would allow the user to seek. This appears to be an issue in Chrome—not Riot itself—as you can seek just fine if you use Riot in other browsers like Firefox. Interestingly, Chrome appears to be buffering the audio locally, it simply isn't allowing the user to seek.
Even setting the Accept-Ranges: bytes header without actually supporting partial content in Synapse seems to make it work just fine, which is very strange to me. I set the header in my nginx config and all works as expected.
I've opened an issue in the Synapse repo, as that would be the more appropriate place for this issue; thus, this one should likely be closed.
I encounter this pretty often when watching videos, and it makes it almost unusable for me, as i like to scrub through instead of watching the whole thing.
Every other major messenger supports this, im kinda baffled this isnt required by the spec (https://github.com/matrix-org/matrix-doc/issues/1885 is related to that)
I keep seeing this problem too. Almost no videos allow fast forward, rewinding, or seeking. The same videos posted e.g. on Discord or Slack work as expected.