Hello Everyone! I am running new app using Vuforia and videoplay in Unity. I have huge problem as: I made an Input where Customer can write his own URL to video. When I put link: http://2dsandbox.com/videoplayback.url directly to VideoPlay script it works. But When I try to make it by void Update in c# it shows: It looks like it can't take "http://" in input. It shows only text to http:/ without later things: I was trying to make code where: public void Update (){ videoPlayer.url = "http://" + fieldInput.text; } But it not works as well. Even if customer has to write everything after http:// : (in VidePlayer it updated with http://) Then it shows that error: And now... I don't know what to do. Video is not showing. As I said, it works when I put link directly to VideoPlayer url, but when I try to update it using inputfield.text it not working. Even if I put videoPlayer.url = "http://" + inputField.text; Is it because Unity didn't make it yet? Or maybe Is there a way to make input and working url? THANKS!
I would recommend that you post your entire script so we can help. I would also avoid changing the url in the Update Method, it is unnecessary, you don't want to update that information every frame, just when you really have to input the new information. Also try using https or else you will have problems in iOS versions. Without reading more of your code I can't figure out why it doesn't work. Just to be on the safe side define the VideoSource before changing the url and debug it. Code (CSharp): private void MethodName() { videoPlayer.source = VideoSource.Url; string newUrl = "https://" + fieldInput.text; Debug.Log(newUrl); videoPlayer.url = newUrl; }