Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video player do not allow to play from the middle. #1362

Open
abugandar opened this issue Jun 10, 2017 · 8 comments
Open

Video player do not allow to play from the middle. #1362

abugandar opened this issue Jun 10, 2017 · 8 comments
Labels
A-Media O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-Synapse

Comments

@abugandar
Copy link

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
@lampholder
Copy link
Member

Huh, it's like this on Chrome too; I guess I never noticed.

@lampholder lampholder added T-Defect S-Minor Impairs non-critical functionality or suitable workarounds exist P1 labels Jun 20, 2017
@turt2live
Copy link
Member

With the autoplay feature, it would also be nice to be able to click on the video to unmute - much like facebook/everything else.

@Edszx
Copy link

Edszx commented Aug 30, 2017

Seconding this, it's still a problem (even in chrome)

@rkfg
Copy link

rkfg commented Feb 23, 2018

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.

@Half-Shot
Copy link
Member

Stupid question, but does the HTML5 video player by default support ranges? Or is that going to have to be something we modify?

@k80w
Copy link

k80w commented Mar 2, 2019

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.

@ShadowJonathan
Copy link

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)

@SimonBrandner SimonBrandner added O-Occasional Affects or can be seen by some users regularly or most users rarely and removed P1 labels Nov 3, 2021
@t3chguy t3chguy transferred this issue from element-hq/element-web Apr 4, 2023
@nukeop
Copy link

nukeop commented Apr 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Media O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-Synapse
Projects
None yet
Development

No branches or pull requests