cables-gl / cables_docs

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

Control video with "Set time" #842

Open 60-hz opened 1 month ago

60-hz commented 1 month 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 1 month ago

Sorry, this patch is set to "view only"

60-hz commented 1 month ago

Oh, ok, I allowed editor now.

pandrr commented 1 month 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 1 month 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.