openframeworks / openframeworks/openFrameworks

Make emscripten examples video playback more robust

Open
#7,828 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

emscripten
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.