sinsro
sinsro

Reputation: 915

Playing video in background of openGl application on iPhone

I found some tutorials about playing a fullscreen video on the iPhone, but I wonder if it is possible to play an embedded movie in the background of a openGl animated app?

The movie should just loop seamlessly and should not have any control buttons like play/pause/volume popping up while being played. If possible, then how about performance?

Upvotes: 0

Views: 736

Answers (1)

genpfault
genpfault

Reputation: 52090

  1. Decode next video frame
  2. Upload frame bitmap to texture
  3. Disable depth buffer reads/writes
  4. Draw screen-sized textured quad using frame texture
  5. Re-enable depth buffer reads/writes
  6. Render your regular scene
  7. Go to #1

Upvotes: 1

Related Questions