cacheVideo method
Implementation
Future<void> cacheVideo(int index) async {
if (!isCaching) return;
String url = videoList[index].url;
if (caching.contains(url)) return;
caching.add(url);
// No need for explicit caching here anymore
// The proxy server handles caching while streaming
// Just mark this URL as being handled
log('Video being cached through proxy: $index');
}