Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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

Discussion in 'WebGL' 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?