cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
45 stars 16 forks source link

Control video with "Set time" #842

Open 60-hz opened 2 months ago

60-hz commented 2 months ago

Link to simple, reproducible example patch

https://cables.gl/edit/e80Qum

*This video is encoded with a keyframe distance of 1 for smooth frame by frame reading

Describe the bug

Attended behavior: The video should display the first frame on load and wait for "set time" number or "play".

How To Reproduce

  1. Open Patch
  2. No video is playing despite "Set time"

Platform

pandrr commented 2 months ago

Sorry, this patch is set to "view only"

60-hz commented 2 months ago

Oh, ok, I allowed editor now.

pandrr commented 2 months ago

it is not possible to autplay videos. google does not want you to. https://developer.chrome.com/blog/autoplay

maybe try to remove an audio track if there is one. but it is not a cables thing

60-hz commented 2 months ago

Ok, I understand. "autoplay" is precisely what I try to avoid here... I guess Chrome prevent any frame to display without user interaction... but :

I need to port some exercices with basic non linear video and this is not possible within cables because of this limitation.