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. Dismiss Notice

Bug Unity Video Player doesnt play from url on Windows 11

Discussion in 'Audio & Video' started by abarcacrespom, Feb 3, 2023.

  1. abarcacrespom

    abarcacrespom

    Joined:
    Feb 1, 2020
    Posts:
    9
    I'm using my own server to host a .mp4 file that its played on the Video Player (on a render texture). It works great on the editor and on the Windows 10 build, but when playing on Windows 11, the video just doesnt appear. On the log there is a error:
    "WindowsVideoMedia error unhandled Color Standard: 0 falling back to default this may result in rendering issues"
    I have checked and the Color Format on the render texture is compatible (
    SystemInfo.SupportsRenderTextureFormat(videoPlayer.targetTexture.format)
    ) but the video still not showing.
    It seems like a problem with the codec of the video, but the video is played perfectly on the computer from the file system. A solution seems to be activating the Transcode on the video, but this option only is possible with a video in the assets folder, and i have not found any way to activate if on videos from url.
    Im lost, i have tried a lot of things and nothing seems to work, does anybody know a way to solve this? pr a way to activate transcode on a video from url?
     
  2. abarcacrespom

    abarcacrespom

    Joined:
    Feb 1, 2020
    Posts:
    9
  3. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    It shouldn't impact anything other than the color so you don't have to bother with this.

    Can you check the editor log if you have any errors? If you play the video as a file instead of a URL do you get the same issue? On what Unity version are you on?