Log in or register to post comments

Errors when trying to run ios build

August 22, 2016 - 8:07am #1

Hello!

 

So I have built a video playback project which works fine with Android. Now Im trying to export same project to run on ios. I thought it would be streight forward to just export and run it through XCode and it would be happy days. However, the videos do not display, they only show the white square with the X in, similar to when you try and run a video through Unity play mode.

 

I am using Vuforia 6 and Unity PRO 5.3

 

It seems to find the trackers, but it also complains about audio track, the thing is that my videos do not have any audio, will this matter in the "real" version?

I should also mention that I changed the:

// Get the video width and height

                int videoWidth = mVideoPlayer.GetVideoWidth();

                int videoHeight = mVideoPlayer.GetVideoHeight();

                if (videoWidth > 0 && videoHeight > 0) <--- THIS BIT on Android in order to increase the size of the videos on Android, which seems to work.

                {

                    // Scale the video plane to match the video aspect ratio

                    float aspect = videoHeight / (float)videoWidth;

                    // Flip the plane as the video texture is mirrored on the horizontal

                    transform.localScale = new Vector3(-0.1f, 0.1f, 0.1f * aspect);

                }

 

The errors I get are:

 

2016-08-22 15:23:40.269 ios[214:4744] Video width not available in current state

2016-08-22 15:23:40.269 ios[214:4744] Video height not available in current state

InitVideoTexture with size: -1 x -1

VideoPlaybackBehaviour:InitVideoTexture(Boolean)

<PrepareVideo>c__Iterator5:MoveNext()

UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)



(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

2016-08-22 15:23:40.270 ios[214:4744] Video width not available in current state

2016-08-22 15:23:40.273 ios[214:4744] Video height not available in current state

2016-08-22 15:23:40.760 ios[214:4744] Error - AVAssetReader not in reading state

2016-08-22 15:23:40.761 ios[214:4744]  No audio tracks in asset

2016-08-22 15:23:40.761 ios[214:4744] Error - Unable to prepare media for playback

VideoPlayer ready.

<PrepareVideo>c__Iterator5:MoveNext()

UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)



(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

2016-08-22 15:23:40.767 ios[214:4744] Video width not available in current state

2016-08-22 15:23:40.767 ios[214:4744] Video height not available in current state

InitVideoTexture with size: -1 x -1

VideoPlaybackBehaviour:InitVideoTexture(Boolean)

<PrepareVideo>c__Iterator5:MoveNext()

UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)



(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

2016-08-22 15:23:40.768 ios[214:4744] Video width not available in current state

2016-08-22 15:23:40.773 ios[214:4744] Video height not available in current state

Trackable marker1 found

TrackableEventHandler:OnTrackingFound()

Vuforia.TrackableBehaviour:OnTrackerUpdate(Status)

Vuforia.DataSetTrackableBehaviour:OnTrackerUpdate(Status)

Vuforia.StateManagerImpl:UpdateTrackablePoses(Transform, TrackableResultData[], VuMarkTargetResultData[], IdPair, Int32)

Vuforia.VuforiaManagerImpl:UpdateTrackers(FrameState)

Vuforia.VuforiaManagerImpl:Update(ScreenOrientation, Boolean)

Vuforia.VuforiaAbstractBehaviour:UpdateStatePrivate(Boolean, Boolean)



(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Trackable marker1 lost

Vuforia.TrackableBehaviour:OnTrackerUpdate(Status)

Vuforia.DataSetTrackableBehaviour:OnTrackerUpdate(Status)

Vuforia.StateManagerImpl:UpdateTrackablePoses(Transform, TrackableResultData[], VuMarkTargetResultData[], IdPair, Int32)

Vuforia.VuforiaManagerImpl:UpdateTrackers(FrameState)

Vuforia.VuforiaManagerImpl:Update(ScreenOrientation, Boolean)

Vuforia.VuforiaAbstractBehaviour:UpdateStatePrivate(Boolean, Boolean)



(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

 

 

Any ideas what I am doing wrong?

Im just build it as ios, run through Xcode and try it on my ios device (where we have tried other apps on before).

 

Cheers

 

Log in or register to post comments