openframeworks / openframeworks/openFrameworks

ofVideoPlayer not working on Android if OpenGL ES 2 is used

Open
#6,721 1 comment 0 reactions 1 assignee View on GitHub

@danoli3 is already working on this.

Since Aug 31, 2021.

android
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

If I use this code in main.cpp:

` ofGLESWindowSettings settings;
settings.setGLESVersion(2);
ofCreateWindow(settings);

ofRunApp( new ofApp() );
return 0;`

ofVideoPlayer is not drawn,just a black rectangle is shown.

But if I use:

ofSetupOpenGL(1024,768, OF_WINDOW); ofRunApp( new ofApp() ); return 0;
Then ofVideoPlayer is drawn on the screen without problem.

I need to draw ofVideoPlayer onto screen using OpenGL ES 2, how can I solve this problem?

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.