Unity, ImageTrackable. Video playback from OnTrackSuccess freeses application
Please provide your development details as below;
1. SDK Version: Downloaded latest MAXSTARSDK_Unity_4.1.3 from site
2. Development Environment: (eg. Unity-Android, Unity-iOS, Native Android, Native iOS) Unity Android
3. Tracker/Scanner:
4. License Type(Free / Pro-One Time Fee / Pro-Subscription / Enterprise): free
5. Target Device(Optional):
Unity version 2018.3.6f1
I'm trying to play video (using Unity video player) on image recognised.
So I've added some code to override void OnTrackSuccess function in ImageTrackableBehaviour
It executes something like
player.time = 0f;
player.Play();
But no video playing. Also application freese or crashes in few seconds. Usually first. At least AR-camera area stands still.
If video launches from some other function - than no problem.
What it could be?
Regards, Alexander.
within the update function
if (trackingResult.GetCount> 0)
{
player.time = 0f;
player.Play ();
}
else
{
player.pause ();
}
Don't use the function you told me, try running it this way.
It's simply a matter of figuring out if you're using the video with the Maxst SDK or if you're having problems playing the video in that function.
Thank you.
Leo
Maxst Support Team