Search Unity

Question How do I render a HTML Video Element inside of Unity WebGL?

Discussion in 'Web' started by unity_vfkLB8b0nY9jIg, Nov 17, 2022.

  1. unity_vfkLB8b0nY9jIg

    unity_vfkLB8b0nY9jIg

    Joined:
    Mar 11, 2021
    Posts:
    2
    Hey,

    I am attempting to take a HTMLVideoElement visible on my web page, and load it into Unity WebGL Scene. I was wondering if anyone had done this and could point me in the right direction.


    The sprite shows up as a black rectangle and never changes to my webcam.
     
    Last edited: Nov 17, 2022
  2. unity_vfkLB8b0nY9jIg

    unity_vfkLB8b0nY9jIg

    Joined:
    Mar 11, 2021
    Posts:
    2
    I fixed my issue, was with the sprite.
     
  3. himanshu6587

    himanshu6587

    Joined:
    Jul 25, 2022
    Posts:
    1
    how did you do it, could you explain?