getVideo static method

String getVideo({
  1. dynamic index = 1,
})

Implementation

static String getVideo({index = 1}) {
  String url;
  switch (index) {
    case 0:
      url = 'https://media.w3.org/2010/05/sintel/trailer.mp4';
      break;
    case 1:
      url = 'http://www.w3school.com.cn/example/html5/mov_bbb.mp4';
      break;
    case 2:
      url = 'https://www.w3schools.com/html/movie.mp4';
      break;
    case 3:
      url = 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4';
      break;
    case 4:
      url = 'https://player.vimeo.com/external/188350983.sd.mp4?'
          's=0bdf01fb5f5c66e43ddae76f573cef2a7786de64&profile_id=164';
      break;
    case 5:
      url = 'https://player.vimeo.com/external/188355959.sd.mp4?'
          's=e5eea0f749282013db81a7e5cd047c57e066e2b9&profile_id=164';
      break;
    case 6:
      url = 'https://player.vimeo.com/external/188365455.sd.mp4?'
          's=7343acee6a02371b4ffeb25760bcbf4b627ccadd&profile_id=164';
      break;
    case 7:
      url = 'https://player.vimeo.com/external/188421287.sd.mp4?'
          's=bdbf8a61c40502211971571fef384f52fe79dbbe&profile_id=164';
      break;
    default:
      url = 'https://media.w3.org/2010/05/sintel/trailer.mp4';
  }
  return url;
}