Search Unity

[Unity 5.6.0b4] Issues with Video Player in WebGL

Discussion in 'Web' started by vjb, Jan 20, 2017.

  1. vjb

    vjb

    Joined:
    Nov 15, 2013
    Posts:
    6
    I'm getting this warning in the browser console when trying to play a mp4 video onto a texture.

    "Cannot play media. No decoders for requested formats: video/x-ms-wmv"

    Here is the video settings:



    I also tried the default which was nothing checked but got the same warning in the browser and no video.

    Here is the object that is holding the video player.



    It works in the editor but not in the WebGL export. It's a .mp4 should I try using something else or is there something wrong with my settings?
     

    Attached Files:

  2. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
    Video clips are not supported for webgl, only URL videos.
     
    charmseer likes this.
  3. vjb

    vjb

    Joined:
    Nov 15, 2013
    Posts:
    6
    Ah! I must've missed that when going through the doc, sorry. Thanks!
     
  4. Jelmer123

    Jelmer123

    Joined:
    Feb 11, 2019
    Posts:
    243
    charmseer likes this.
  5. ykswobel

    ykswobel

    Joined:
    Apr 5, 2018
    Posts:
    57
    does it work now? because url videos don't play in webgl... kind of annoying
     
    charmseer likes this.
  6. GrimZard999

    GrimZard999

    Joined:
    Feb 17, 2020
    Posts:
    8
    I got my videos in webgl to work only with the AVProVideo asset.
     
  7. DryreL

    DryreL

    Joined:
    Feb 23, 2020
    Posts:
    49
    Could you share your codes? I have AVPro but video doesn't play, it's freezed.
     
  8. SeanWebber

    SeanWebber

    Joined:
    Jun 17, 2020
    Posts:
    6
    Took a while hunting but I think this was solved by mjamie on another thread: https://forum.unity.com/threads/videoplayer-webgl-url-not-working.467391/

    I tried it and it worked, although the video looped (which wasn't what I wanted) however the video did play on my webGL build