Reputation: 201
Unable to find VideoTexture class in the latest rajawali revision(1.0.295-SNAPSHOT).
Please let me know is there any alternate for video texture? or exact repository location or url with VideoTexture file?
Upvotes: 0
Views: 259
Reputation: 527
You can use StreamingTexture
instead like this:
MediaPlayer mediaPlayer = MediaPlayer.create(this, R.raw.my_video);
StreamingTexture videoTexture = new StreamingTexture("video", mediaPlayer);
To update the texture image you have to call StreamingTexture#update()
:
@Override
protected void onRender(long elapsedRealTime, double deltaTime) {
super.onRender(elapsedRealTime, deltaTime);
if (videoTexture != null) {
// update texture from video content
videoTexture.update();
}
}
Upvotes: 0