kribby 0 Posted January 16, 2019 Posted January 16, 2019 (edited) Whenever you start playing or resume a video, the initial "buffering" screen doesn't display correctly. If I remember correctly, it's suppose to display the backdrop image up until it starts playing, but all I get is 2 progress circles, and the backdrop flashes for a split second. I uploaded a GIF recording of the problem. This is happening on 2 different Chrome installations. Edited January 16, 2019 by kribby
Happy2Play 9783 Posted January 16, 2019 Posted January 16, 2019 I believe one is Emby and the other is the Chrome player. I will have to search for the option to disable the Chrome player option.
kribby 0 Posted January 16, 2019 Author Posted January 16, 2019 I believe one is Emby and the other is the Chrome player. I will have to search for the option to disable the Chrome player option. Yup, sounds like it. Tried it in Firefox, and it seems to display fine
Happy2Play 9783 Posted January 16, 2019 Posted January 16, 2019 The setting is chrome://flags/#enable-modern-media-controls
kribby 0 Posted January 16, 2019 Author Posted January 16, 2019 The setting is chrome://flags/#enable-modern-media-controls Changed it to disabled. I can see the backdrop now, but the old built-in video controls are still visible. See attached image
Luke 42083 Posted January 16, 2019 Posted January 16, 2019 The web app doesn't know if the browser will allow autoplay of the video. If it doesn't, then you'll need to press the native play button in order to start playback. That's why the native controls are there, only until playback successfully starts.
kribby 0 Posted January 16, 2019 Author Posted January 16, 2019 The web app doesn't know if the browser will allow autoplay of the video. If it doesn't, then you'll need to press the native play button in order to start playback. That's why the native controls are there, only until playback successfully starts. Is this fixable within the Web App? I'm seeing that you might be able to do something with CSS to block the built-in web player UI elements from displaying.
Luke 42083 Posted January 16, 2019 Posted January 16, 2019 But that's what I'm trying to tell you, if the video doesn't autoplay, then you will need those buttons so that you can press play.
kribby 0 Posted January 16, 2019 Author Posted January 16, 2019 But that's what I'm trying to tell you, if the video doesn't autoplay, then you will need those buttons so that you can press play. In what situations would you expect it to not autoplay? For example, I set the chrome://flags/#autoplay-policy item to 'Document user activation is required' (supposedly the most restrictive option), and the video still started up without extra interaction. Even tried with an extension called AutoplayStopper
Luke 42083 Posted January 16, 2019 Posted January 16, 2019 Normally on a desktop i would always expect it, at least traditionally, but the last several chrome and safari releases have made changes in this area. The current behavior is designed to be safe so that it will work on all platforms.
kribby 0 Posted January 16, 2019 Author Posted January 16, 2019 Normally on a desktop i would always expect it, at least traditionally, but the last several chrome and safari releases have made changes in this area. The current behavior is designed to be safe so that it will work on all platforms. I get what you're trying to say. However, what is Firefox doing differently that makes the starting of a video look like it flows properly? Is it possible that it could be a problem with Chrome and that the backdrop image is being layered in back of the media control UI (considering I can see the backdrop a split second before the video actually starts)?
Luke 42083 Posted January 16, 2019 Posted January 16, 2019 Because we do have some detection to try and predict if autoplay will be allowed, and that must be returning true for firefox. It is a little on the conservative side so that's why it may vary per browser.
Luke 42083 Posted January 16, 2019 Posted January 16, 2019 I think there is potential for this to improve in the future because it looks like an API will be added (at least to Chrome), to get this information.
kribby 0 Posted January 16, 2019 Author Posted January 16, 2019 I think there is potential for this to improve in the future because it looks like an API will be added (at least to Chrome), to get this information. I'm assuming you looked at https://sites.google.com/a/chromium.org/dev/audio-video/autoplay before. I could continue going on with "well, working in this code snippet with fix the issue", but you're the full-time coder here and I'm not, so..... Do you need me to create a issue report on your github?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now