我以下是莫格在这篇文章中的建议:
这是我的代码片段
onSurfaceCreated()方法中,我初始化一个纹理并将其绑定到GL,并创建一个与它们相关联的曲面和mediaplayer。

onNewFrame()方法中,我按照Mog在文章中所说的更新纹理

我在原始文件夹中将我的短视频保存为small.mp4,但是,启动我的应用程序后,两边都是空白的,视频的声音实际上正在播放。
发布于 2015-08-12 10:06:50
为了完成这个任务,我遇到了一个类似的问题,我使用了伟大的RajawaliVR库。
我使用的代码:
streamingTexture = new StreamingTexture("video", mediaPlayer);
Material material = new Material();
material.setColor(0);
try {
material.addTexture(texture);
} catch (ATexture.TextureException e) {
throw new RuntimeException(e);
}
Sphere sphere = new Sphere(50, 64, 32);
sphere.setScaleX(-1);
sphere.setMaterial(material);
getCurrentScene().addChild(sphere);https://stackoverflow.com/questions/31945630
复制相似问题