Search Unity

Video How to set VideoPlayer timeout?

Discussion in 'Audio & Video' started by chico_barnstorm, Oct 13, 2021.

  1. chico_barnstorm

    chico_barnstorm

    Joined:
    Jun 11, 2014
    Posts:
    10
    Hi all! So that's the question for which we have not found any answers yet.

    We have a VideoPlayer that we use to play videos off the Internet given their URL. It works fine under normal circumstances. However, when the video cannot be played (e.g. no Internet connection), there is currently a timeout of ~30s before VideoPlayer.errorReceived is posted, which feels way too long.

    We're struggling to find a field/function that we can use to set a smaller value for the timeout. Any clues would be really appreciated! Thanks!
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,408
    if nothing else comes up, can you set own timer, that checks if video.isPlaying or something similar?

    and could check for internet connection at start, using manual ping
    or i think asset store has ready plugins too.