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.

How to stream video from URL

Discussion in 'Project Tiny' started by TrashestCoder, Jan 14, 2019.

  1. TrashestCoder

    TrashestCoder

    Joined:
    Jan 27, 2017
    Posts:
    14
    Hey, does someone know how to stream video from url? I'm creating an interactive site using project tiny (not the brightest idea but has cool capabilities) and .webm videos would greatly enhance user experience.
     
  2. TrashestCoder

    TrashestCoder

    Joined:
    Jan 27, 2017
    Posts:
    14
    So I found out that you can play html media using "VideoPlayer". So I created entity with "VideoClip", "VideoPlayer" and
    "RectTransform" components and through script specified .webm url like this:
    upload_2019-1-15_15-48-25.png

    But when I hit play, chrome responds with this:
    upload_2019-1-15_15-52-36.png
    "error while loading the media" and big black square. So I guess I'm doing something wrong, can someone shed some light on what I should do differently?
     
  3. nikhilmaurya10

    nikhilmaurya10

    Joined:
    Jan 25, 2019
    Posts:
    8
    Hi, did you find any solution for this issue
     
  4. TrashestCoder

    TrashestCoder

    Joined:
    Jan 27, 2017
    Posts:
    14