Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by bsebag · Apr 11, 2018 at 11:52 PM · playervideovuforiaurlimage target

VIDEO PLAYER ISSUE - UNITY 2017.4.0f1 - VUFORIA VIDEO DOES NOT PLAY WHEN THE URL (WEBSERVER) IS ASSIGNED VIA A VARIABLE

I am experiencing a very weird issue. The video player accepts the URL when directly assigned to it. Check below:

vidPlayer.url = "http://www.arcards.net/videos/VuforiaSizzle.mp4";

But, it does not accept the video when it is assigned via a variable. Check the code below. 'w' comes from a PHP file (via Jason). I'm using a web form.

When I print the url variable on the console it is perfectly printed without ANY errors. Please check the result below:

http://www.arcards.net/videos/VuforiaSizzle.mp4

url = w.text; url = url.Replace("\"",""); url = url.Replace("\\",""); vidPlayer.url = url;

  The Video Player is not accepting the URL via a variable. Please check the ERRORS below:

1) Player failed to load "file:///Users/benysebag/ARinvitationCard03/http://www.arcards.net/videos/VuforiaSizzle.mp4%0A%0A"

2) VideoPlayer cannot play url : http://www.arcards.net/videos/VuforiaSizzle.mp4

3) Error: VuforiaSizzle Error Message: Player failed to load "file:///Users/benysebag/ARinvitationCard03/http://www.arcards.net/videos/VuforiaSizzle.mp4%0A%0A" UnityEngine.Debug:LogError(Object) VideoController:HandleVideoError(VideoPlayer, String) (at Assets/SamplesResources/SceneAssets/ImageTargets/Scripts/VideoController.cs:151) UnityEngine.Video.VideoPlayer:InvokeErrorReceivedCallback_Internal(VideoPlayer, String)

4)Error: VuforiaSizzle Error Message: VideoPlayer cannot play url : http://www.arcards.net/videos/VuforiaSizzle.mp4 UnityEngine.Debug:LogError(Object) VideoController:HandleVideoError(VideoPlayer, String) (at Assets/SamplesResources/SceneAssets/ImageTargets/Scripts/VideoController.cs:151) UnityEngine.Video.VideoPlayer:InvokeErrorReceivedCallback_Internal(VideoPlayer, String)

Please let me know if you have any hint for this issue to be solved. Thanks, Beny.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by bsebag · May 21, 2018 at 07:06 PM

The issue was finally solved. The string contained a few blank spaces that were not easily viewed. As soon as I removed the blank spaces from the string, the URL was correctly identified by the video player.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image marshalmuhammad · Jan 11, 2021 at 02:14 PM 0
Share

sorry, I still can't handle it, can you make a video tutorial. thank you

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

93 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Have both canvas' buttons and Vuforia video canvas' button working in the same scene? 0 Answers

Streaming videos from web server in android 0 Answers

Error with URL video for AR 0 Answers

Videoplayer basic controls guide.. 0 Answers

I cant get a Video to play on an imported object from Blender 2.8 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges