openframeworks / openframeworks/openFrameworks
Make emscripten examples video playback more robust
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Currently you have to allow auto-play via browser settings ( either globally or on the browser settings for your website ) to get video playback working.
However on mobile these settings don't exist ( at least on iPhone ), so that the video examples just don't load.
Ideal use case is if we can detect if auto-play is enabled and if not do something like ThreeJS which makes you click 'play' on the example before it loads see: https://threejs.org/examples/?q=video#webgl_materials_video
The play interaction is considered user input and therefore bypasses the blocking of the video.
In our case, enabling this only if video is included in a project would be ideal.
cc @Jonathhhan @themancalledjakob @artificiel
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the video examples in the emscripten build, especially on mobile browsers where autoplay is blocked. Compare the requested interaction with the ThreeJS video example linked in the issue, and consider the issue done when video examples can provide a user-initiated play path without affecting projects that do not include video.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100