Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Video Clips in AssetBundles not being loaded on WebGL

Discussion in 'Asset Bundles' started by emanmomot, Sep 24, 2019.

  1. emanmomot

    emanmomot

    Joined:
    Mar 17, 2014
    Posts:
    3
    When calling LoadAsset<VideoClip> on an AssetBundle, null is returned on WebGL. There is no exception, just a return value of null.

    It works in the Editor on Windows. I am able to load other asset types such as Sprite from the bundle on WebGL. I can see the video file listed when I call AllAssetNames() on the asset bundle. I have tried the VP8 codec as well as auto. The AssetBundle is loaded using WWW.LoadFromCacheOrDownload.

    I am using 2019.3.0b1.
     
  2. I_Jemin

    I_Jemin

    Joined:
    Jul 31, 2014
    Posts:
    11
    same here for addressable asset. I couldn't fix it.

    There is similar issues on a android. I just workaround that problem by using no cache, no compression for asset bundle containing video clip. But that doesn't works on WebGL.

    So instead of asset bundle, I'm using URL field of video player component but that's really inconvenient.