Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Android build experiencing crashes with network changes

Discussion in 'Editor & General Support' started by lucernagame, Jan 10, 2019.

  1. lucernagame


    Nov 5, 2018
    In some versions of Unity, the Android APK that is built will have the VideoPlayer fail when streaming a video over a slow network. On fast networks, it will play the video and move on to the next without issue. Once the bandwidth shrinks below 1mb/s and/or latency increases about 300~ ms, the video will collect and play the first few frames, then stop playing frames. The sound will continue, however. When it reaches the end of the video, I've coded it to automatically play another, and it appears to switch over as the audio changes to the next video, but the frame remains frozen on the texture.

    The versions where this happens are:


    I was thinking of using another version to deploy with, but in 2017.2.0f3 and earlier, it crashes instead.

    Since I have quite a modified environment, I've unable to discern if the problem is endemic to Unity or a product of my modifications. I understand that a bad network connection causes the stuttering and lagging, but I would like to know if there's a way to make the frames continue to update when possible instead of freeze permanently. Or at least if anyone knows if the problem is part of a bug with Unity, then I can stop spending so much time looking into my code, for which there is quite a lot.