Search Unity

Video Unity video player on iOS WebGL

Discussion in 'Audio & Video' started by dixonich, May 30, 2019.

  1. dixonich

    dixonich

    Joined:
    May 30, 2019
    Posts:
    1
    use unity with WebGL. VideoPlayer is ok on desktop browsers, but on iOS - don't play, only black screen :(

    I tried mp4, ogv, webm...

    My phone is iphone X, ios 12.2

    Code (CSharp):
    1.  
    2.         GameObject camera = GameObject.Find("Main Camera");
    3.         var videoPlayer = camera.AddComponent<UnityEngine.Video.VideoPlayer>();
    4.         videoPlayer.url = System.IO.Path.Combine (Application.streamingAssetsPath, "last-scene_all2.ogv");
    5.         videoPlayer.Play();
     
  2. jackerlo

    jackerlo

    Joined:
    Sep 19, 2018
    Posts:
    4
    struggling on same
     
  3. leedongwon

    leedongwon

    Joined:
    Jun 20, 2019
    Posts:
    6
    After building with WebGl, a videoPlayer appears in the browser of Desktop and Android, but the sound is played in IOS, but the screen is not played.

    How did you solve it?
     
    Last edited: Sep 20, 2019
  4. IvanBeneurope

    IvanBeneurope

    Joined:
    Mar 12, 2019
    Posts:
    3
    I have ran into the same, any advice or something new on this? :)
     
  5. fireicerailgun

    fireicerailgun

    Joined:
    Sep 6, 2018
    Posts:
    5
    I met the same issue. Can you solved it? Please help me!
     
  6. fireicerailgun

    fireicerailgun

    Joined:
    Sep 6, 2018
    Posts:
    5
    Can you sovled it? Please help me!
     
  7. fireicerailgun

    fireicerailgun

    Joined:
    Sep 6, 2018
    Posts:
    5
    Can you sovled it? Please help me!
     
  8. fireicerailgun

    fireicerailgun

    Joined:
    Sep 6, 2018
    Posts:
    5
    Can you sovled it? Please help me!
     
  9. fireicerailgun

    fireicerailgun

    Joined:
    Sep 6, 2018
    Posts:
    5
    Can you sovled it? Please help me!
     
  10. IvanBeneurope

    IvanBeneurope

    Joined:
    Mar 12, 2019
    Posts:
    3
    I am still looking for options, unluckily I did not find a solution yet :/
     
  11. xintao

    xintao

    Joined:
    Jan 24, 2018
    Posts:
    1
    I also encountered the same problem, tried a lot of plugins did not solve.Hope for a good solution
     
  12. IvanBeneurope

    IvanBeneurope

    Joined:
    Mar 12, 2019
    Posts:
    3
    If you find a solution please share it . Thanks :D
     
unityunity