scmpuff icon indicating copy to clipboard operation
scmpuff copied to clipboard

Website demo video doesn't play in Chrome

Open HaleTom opened this issue 7 years ago • 6 comments

On my laptop and phone, the demo at https://mroth.github.io/scmpuff/ does not play.

Does this support ls file shortcuts, like scm_breeze does?

HaleTom avatar Oct 13 '18 07:10 HaleTom

Hi @HaleTom -- what browser/OS for laptop/phone is this happening in?

mroth avatar Oct 19 '18 01:10 mroth

Latest Chrome on Android is one.

Latest Chrome on Arch Linux is the other.

HaleTom avatar Oct 20 '18 17:10 HaleTom

I can reproduce the website issue in Chrome on macOS. It looks like Chrome must have changed something about how video autostart functions.

Does this support ls file shortcuts, like scm_breeze does?

By design, by default we do not wrap any shell comments other than git. I consider wrapping cd, ls and/or other critical navigation commands to be too risky. You can wrap them yourself to use scmpuff expand if you desire though, see #41 for some ideas.

mroth avatar Dec 28 '18 15:12 mroth

Chrome issue may be related to: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

mroth avatar Dec 28 '18 15:12 mroth

I think the best approach for a variety of reasons would be to replace this entirely with an animated SVG, like I have on https://github.com/mroth/bump.

These are relatively easy to make now, but I would need to re-record the demo. (If someone wants to replicate the demo and record it for me, let me know and I can provide you with the steps!)

mroth avatar May 23 '19 17:05 mroth

@mroth add the controls attribute to video tag in index.html to show video controllers. Maybe it's a good temporary solution.

image

gucheen avatar Sep 27 '20 09:09 gucheen