Play video from a server on iOS in unity 3D

1

I'm trying to play video from a server on iOS in unity 5.5.1, xcode 8.2.1, iOS 10.2.1

I have tried the following ways:

1- with Easy Movie Texture, I get the following error Use of undeclared indentifier 'GLES_CHK' I include the library and it remains the same.

2- downloading it with www, in android it works perfect but in iOS this is in the log:

(<OpenGL ES 2.0> ; Context handle 375690592
Initialize engine version: 5.5.1f1 (88d00a7498cd)
-------- Shader compilation failed), compila pero no reproduce y dice(WARNING: 0:4: 
extension 'GL_EXT_frag_depth' is not supported

ERROR: 0:38: Use of undeclared identifier 'gl_FragDepthEXT'). You are using download 
over http. Currently unity adds NSAllowsArbitraryLoads to Info.plist to simplify 
transition, but it will be removed soon. Please consider updating to https.

So try to configure the info.plist as I found in stack overflow forums.

What do you recommend, I can do the implementation by downloading the video and then reproducing it, or streaming.

    
asked by Estebanhiguita 03.04.2017 в 17:18
source

1 answer

0

I do not have a Mac on hand but the plugin you mention has not given me problems so far, the part of the OpenGL initialization may be that you are using Metal instead of OpenGl2, Unity must already support Metal for iOS but, pot now I'm still using OpenGl2.

Sometimes using Metal generates problems, Vuforia for example, but I'm not entirely sure if it has the same effect with Easy movie texture.

You can change it in Build Setings - > Player Setings - > Other setings and there is the option "Autographics API", if it is selected deselect and remove Metal.

The alert of the infoplist regarding the download can be ignored for now however, and as the message says, before long we will have to implement everything with https.

Greetings.

    
answered by 04.04.2017 в 17:26