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

Control video with "Set time" #842

Open
60-hz opened this issue Sep 3, 2024 · 4 comments
Open

Control video with "Set time" #842

60-hz opened this issue Sep 3, 2024 · 4 comments

Comments

@60-hz
Copy link

60-hz commented Sep 3, 2024

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

  • Issue: at start video display nothing (black), cannot seek in the file.
  • To-be able to seek, VideoTexture Op need to "play" first.

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

  • Chrome
@60-hz 60-hz added bug Something isn't working new labels Sep 3, 2024
@pandrr
Copy link
Member

pandrr commented Sep 3, 2024

Sorry, this patch is set to "view only"

@60-hz
Copy link
Author

60-hz commented Sep 3, 2024

Oh, ok, I allowed editor now.

@pandrr
Copy link
Member

pandrr commented Sep 3, 2024

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
Copy link
Author

60-hz commented Sep 3, 2024

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

  • There is no audio on my video... and it still doesn' display.
  • Could this be avoided with standalone, using "chrome.exe --autoplay-policy=no-user-gesture-required" ? (The VideoTexture op is still broken in the last 0.3.0-rc2 so I cannot try)

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

@steam0r steam0r removed new bug Something isn't working labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants