I found some tutorials about playing a fullscreen video on the iPhone, but I wond开发者_StackOverflower 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?
- Decode next video frame
- Upload frame bitmap to texture
- Disable depth buffer reads/writes
- Draw screen-sized textured quad using frame texture
- Re-enable depth buffer reads/writes
- Render your regular scene
- Go to #1
精彩评论