Unity3d playback high-quality video solution, unity3d high-quality
Unity3d playback high-quality video solution ~
A video game is being played recently. It is really a video game. The main background of the game is a large video. Three or four videos may be switched, and seamless switching is required.
The platform is Android, and the movie is rockclip. Various plug-ins have been found.
However, there are some problems. Here, let's talk about it for those who need it:
Playback mode. I first played 6 videos from two vvpns, a played 1, B played 2, a played 3, and so on. later, the crash happened .. omg. this problem does not occur when I directly use mediaplayer on Android.
So I infer that the memory side is exposed ~ Later I changed to 6 vvpns to play 6 videos. Because I had to play 6 different videos multiple times in this scenario, it seems that the crash is only a matter of time.
I asked at the vuforia forum again, and naturally no one was born. (PS: I saw a problem with a screen copy on the vurofria forum .....)
Karo ~ Things are too many, and CD is not going up, but it is still stuck. in all aspects, VVP is also a direction. The solution behind it will not be stuck.
The final solution:
Unity3d 4.2 is used. This version can be used in eclipse to set u3d subfaceview to transparent, so as to display it with native elements.
Well, I thought of the above scheme, and GG came out with the result.
I would like to thank our predecessors for carrying trees. Otherwise, I would like to plant the =. = iron, which is a variety of unstable factors.
I set subfaceview transparency in eclipse, which is easy to achieve. then a videoview is added under the view. after the jar is generated, it is thrown into u3d. (Well, everyone should be there. if not, leave a message and I will drop the code)
In videoview, you can load various videos with high quality, without flashing back, and play videos on the SD card. The performance is also improved. The performance is 300% stable.
If you want to use a video in a small area, you can use code to control the video location. Of course, this is my assumption. There should be other problems in implementation.
OLE: The first time I wrote an article in the blog Park, I wrote it here. c u.
PS: The editor here is really not easy to use, and there is no u3d Category =. =