Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by NeoWatchowsky · Jun 16, 2015 at 05:44 AM · unity 5webglmovietexture

What to use instead of movie texture in Unity 5 webGL? Is there any workaround?

I've already done some searching but did not find a working example.

jonas echterhoff has some solution but it didn't work for me (I cannot send a message to him)

This is working only on desktop builds. But on WebGL the the problem is with MovieTexture.

 using UnityEngine;
 using System.Collections;
 
 public class Video : MonoBehaviour {
 
 public MovieTexture movie;
 // Use this for initialization
 void Start () {
 GetComponent<Renderer>().material.mainTexture = movie as MovieTexture;
 
 movie.Play();
 }
 
 }
Comment
Add comment · Show 5
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 Nerevar · Jun 16, 2015 at 07:32 AM 1
Share

There is a temporary solution : webgl movie texture see this post

the github sample project is here.

avatar image NeoWatchowsky · Jun 16, 2015 at 07:35 AM 0
Share

Thank you, but as I said I've already found this. The project is not working. I't brings up errors.

avatar image Nerevar · Jun 19, 2015 at 07:14 AM 1
Share

what exactly is not working? cause it is working for me.

EDIT: it is NOT working inside the editor ofc, only once your project is built and online!

avatar image fafase · Jun 19, 2015 at 07:27 AM 0
Share

If you plan on playing a movie over the whole viewport, you may want to consider running the movie in HT$$anonymous$$L. Could be way easier.

avatar image NeoWatchowsky · Jun 19, 2015 at 08:22 AM 0
Share

Nerevar! Could you send me your project file with the assets and scene files wich are working?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ofuscapreto · Aug 14, 2017 at 07:11 AM

You can try this free asset that deploy Movie Textures in WebGL:

https://www.assetstore.unity3d.com/en/#!/content/38369

I tried it but did not work with me... maybe you have better luck

I read a lot of things about WebGL and videos, both in documentation and here in Unity answers... read that WebGL doesn't support video clips, only URL videos... read that the best video format is .webm with VP8 codec... read that WebGL doesn't support Movie Textures... but nothing seems to work... I'm almost giving up with the idea of having video in my web game, because it works fine without videos...

Comment
Add comment · 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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

ExternalCall in WebGL not working 0 Answers

360 panorama in Browser, HTCVive, Oculus Rift 0 Answers

Publishing WebGL build 0 Answers

Unity WebGL websocket LLAPI alternatives? 0 Answers

Unity 5.5.4 WebGL always sticks on "Converting managed assemblies to C++" 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