Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Video Unity videoPlayer not working on android when using a URL

Discussion in 'Audio & Video' started by akash437, Feb 11, 2019.

  1. akash437

    akash437

    Joined:
    Jun 28, 2013
    Posts:
    5
    videoPlayer is not working in unity 2018.3.0f2 when using url on android (tested it on android 9), it works fine in the editor.I tried assigning a video clip and it works (on android and editor) but when I try to stream a video from url it doesn't work,

    I tried turning off auto graphic api and forcing GLES2 but it still doesn't work.

    tried using this url

    http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_640x360.m4v

    gives the following error

    androidVideoMedia: Error opening extractor: -10000
     
  2. AnttiKuusisto

    AnttiKuusisto

    Joined:
    Feb 27, 2019
    Posts:
    1
    Same problem here with some difference. Samsung Galaxy S8+ works fine, but OnePlus 5 does not work. iOS and Editor works fine.
     
  3. DMStudio_

    DMStudio_

    Joined:
    Feb 13, 2019
    Posts:
    2
    동일한 문제가 있습니다. 안드로이드 9 가 나오기 전에는 정상적으로 영상이 재생되었으나 안드로이드 9 업데이트 이후 해당 폰들은 모두 재생이 되지 않습니다.
     
  4. DMStudio_

    DMStudio_

    Joined:
    Feb 13, 2019
    Posts:
    2
    나도 같은 문제가있어. Android 9 업데이트 후에는 동영상을 재생할 수 없습니다.
     
  5. akash437

    akash437

    Joined:
    Jun 28, 2013
    Posts:
    5
    Code (xml):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest ...>
    3.     <uses-permission android:name="android.permission.INTERNET" />
    4.     <application
    5.         ...
    6.         android:usesCleartextTraffic="true"
    7.         ...>
    8.         ...
    9.     </application>
    10. </manifest>
    add android:usesCleartextTraffic="true" to your androidmanifest.xml
     
  6. jswami123

    jswami123

    Joined:
    Apr 15, 2019
    Posts:
    1
    Even i am facing this same issue. please suggest some way to sort. Device using one + 6.
     
  7. Makhkk

    Makhkk

    Joined:
    Sep 23, 2014
    Posts:
    3
    I am also facing this issue. Have anyone found a fix?
     
  8. ookk47oo

    ookk47oo

    Joined:
    Mar 17, 2017
    Posts:
    6
    Got the same error on my android phone. Works fine on PC and IOS
    UnityVersion: 2017.4.14f
    Video Format:MP4
     
    Last edited: Apr 22, 2019 at 3:38 AM