Search Unity

Video Unity Video Player not working in Chrome WebGL

Discussion in 'Audio & Video' started by Mudassar, Feb 15, 2019.

  1. Mudassar

    Mudassar

    Joined:
    Aug 22, 2012
    Posts:
    10
    I have a video in StreamingAssets its working fine in firefox and other browsers but not playing in chrome only

    Code (CSharp):
    1.   GameObject cam = GameObject.Find("Main Camera");
    2.         videoPlayer = cam.AddComponent<UnityEngine.Video.VideoPlayer>();
    3.  
    4.         // Obtain the location of the video clip.
    5.         videoPlayer.url = System.IO.Path.Combine(Application.streamingAssetsPath, "avc_dj.mp4");
    6.  
    7.      
    8.         videoPlayer.Play();
    here is my code please help me out what is the problem
     
  2. Lee-OReilly

    Lee-OReilly

    Joined:
    Dec 17, 2015
    Posts:
    2
  3. ismaelnascimentoash

    ismaelnascimentoash

    Joined:
    Apr 2, 2017
    Posts:
    30
  4. blabberbytes

    blabberbytes

    Joined:
    Nov 22, 2014
    Posts:
    13
    Yeah this is V annoying. Going at it for a few days now.
     
  5. ismaelnascimentoash

    ismaelnascimentoash

    Joined:
    Apr 2, 2017
    Posts:
    30
  6. Robin18

    Robin18

    Joined:
    May 21, 2020
    Posts:
    1
    Last edited: May 22, 2020
  7. ismaelnascimentoash

    ismaelnascimentoash

    Joined:
    Apr 2, 2017
    Posts:
    30
    My video, not help you ?

    Link: