Follow

Offline

OFFLINE

Remember that your HTML might run in either an online or offline state. Use Javascript to detect the online state as in the example below (this only works on some browsers - a better way is to try to fetch a URL):

  if(navigator.onLine){
     video.play();
   }
   else{
     alert("Please go online to view the video");

   

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk