- Home /
error CS0246: The type or namespace name `MovieTexture' could not be found. Are you missing a using directive or an assembly reference?
so im trying to make a build of my app for android. I keep running into different issues but this one i just cant figure out. Every time i try to save my apk file it begins to make the player, then immediately stops and gives me that error. I know that MovieTextures are not supported on android (yes i have movietextures in this), however, im using a plugin from the asset store called SPlugins MovieTexture For Mobile which, is supposed to make movietextures work on mobile devices. Also, when i try to run this on my pc it runs fine, no errors. How do i get my movie texture to import on my mobile device?
once read this documentation page Link check this code too
#if UNITY_ANDROID
Handheld.PlayFullScreen$$anonymous$$ovie("");
#else
$$anonymous$$ovieTexture stuff;
#endif
thank you for the reply, however PlayFullScreen$$anonymous$$ovie() will not work for this, its a google cardboard app and needs to have motion controls similar to how oculus works. Hence why i need this plugin to watch the video as a $$anonymous$$ovieTexture
So i figured out how to fix the error and actually set up the plugin, however the problem still remains. Now the new error im getting is '$$anonymous$$ovieTexture' is not supported when building for Android. This does not make any sense to me as i am no longer using a movie texture (this error is not from my script anymore, the error is saying that it cannot build because of the movie file itself). Even if i was using Handheld.PlayFullScreen$$anonymous$$ovie(), i would still be getting this same error. I have the Video in my Strea$$anonymous$$gAssets folder, but it still wont let me build. (the video was .ogv, now it is mp4). So i guess my new question is, how do i actually build a project for android if it has a video file in it?
once see this link.here they also tried.may be u should put ur file in some database.then use WWW and display.its best way to save size of project. try with WWW.