- Sort Posts
- 12 replies
- Last post
"Easy Movie Texture" can't play video in Vuforia, pls help!
"Easy Movie Texture" can't play video in Vuforia, pls help!
"Easy Movie Texture" can't play video in Vuforia, pls help!
hi jove
im trying to add the GetComponentInChildren<MediaPlayerCtrl>().Play(); to In the DefaultTrackableEventHandler.cs OnTrackingFound() of Vuforia,
but i keep getting the error that play or pause are not definitions contained within Mediaplayer[]
do you have examples of how you altered DefaultTrackableEventHandler.cs? was it only one line of code that you added.
in general im just concerned if there is an elegant way to use movie texture with out have the videos on autoplay and being in control of when the spawned
if you could fill me in on your thoughts i would appreciate it greatly
"Easy Movie Texture" can't play video in Vuforia, pls help!
Hi,
I'm trying to play a video using Easy Video Texture and Vuforia.The demo version of Easy Video Texture works... until I import Vuforia package then I got errors that APK can't be build.
Any advices ?
Thanks
Attachment | Size |
---|---|
![]() | 34.13 KB |
"Easy Movie Texture" can't play video in Vuforia, pls help!
Hi guys i was trying to sort this problem for whole day and finally came to a solution.
just follow these steps if you are using AR with EasyMovieTexture with unity.
* Unity - V5.3.4 pro Version.
* Vuforia - vuforia-unity-5-5-9.
* EasyMovieTexture - Easy Movie Texture Video Texture v3.20.
Procedure:
1 . In EasyMovieTexture Activate the Patch given for IOS.
2 . Remove PostProcessBuildPlayer.cs from Assets->Vuforia->Editor->Scripts.
3 . Add this block of script which is given below in DataBaseLoadBehaviour.cs in ARCamera. // this action will let normal AR with 3D models to work.
#if UNITY_IOS
AddExternalDatasetSearchDir(Application.dataPath + "/Raw/QCAR/");
#endif
4 . Modify block of code in CustomVideoPlayer.mm // this is for fixing VideoTexture Errors.
AVPlayerStatus status = (AVPlayerStatus) [[change objectForKey: NSKeyValueChangeNewKey] integerValue];
lastFrameTimestamp = _curFrameTimestamp;
size_t w, h;
w = (int) _videoSize.width;
h = (int) _videoSize.height;
curTex = CMVideoSampling_SampleBuffer (& _ videoSampling, _cmSampleBuffer, & w, & h);
5 . Build the IOS project file by checking LinkLib in Build properties in Unity.
6 . After building open the XCode in Built file.
7 . Add Team in general Setting.
8 . in Build Setting enable BitCode to NO.
9 . ARC In objective C in should be turned to Yes(by Default). // if you Disable ARC for the whole project ,it will leade to other errors at that time of executing the output.
10. In Build phase ADD Security.framework in LinkBinary with Library.
11. In Build Phase ADD -fno-objc-arc to disable ARC effect on CustomVideoPlayer.mm & VideoPlayerPlugin.mm. (To disable ARC for selected files)
12. Built Success.
"Easy Movie Texture" can't play video in Vuforia, pls help!
"Easy Movie Texture" can't play video in Vuforia, pls help!
Hi
I am using easy movies texture plugin it is playing video on texture in ios and android both. But i am getting issue in iphone6 video is displaying but there is no sound in the app while it is working fine in other device.Please help how to reslove this issue.
Thanks.
"Easy Movie Texture" can't play video in Vuforia, pls help!
"Easy Movie Texture" can't play video in Vuforia, pls help!
It sounds like you said you have it working - but it's not *quite* what you want. I'm a little lost on where exactly you are in this process. What is it doing now and what is the behavior you're looking for?
I've used Vuforia & EasyMovieTexture on Android for sure (without significant problems) and I feel like I've used them together on iOS but I'm less sure. It *was* autoplaying though, and it sounds like maybe you're looking for it to load paused but not start playing?
"Easy Movie Texture" can't play video in Vuforia, pls help!
GetComponentInChildren<MediaPlayerCtrl>().Play();
GetComponentInChildren<MediaPlayerCtrl>().Pause();
Attachment | Size |
---|---|
![]() | 58.07 KB |
Hi there,
You probably worked it out by now being a year ago, but for anyone else stumbling on this page, I just amended the DefaultTrackableEventHandler.cs script as follows:
Please note that I've use singular GetComponentInChildren<MediaPlayerCtrl>() because I only had of these components per ImageTarget. Also note that I implemented a pause on tracking lost, which is the same principle but with Pause () as opposed to Play () - Schimples!