cached_video_player_plus icon indicating copy to clipboard operation
cached_video_player_plus copied to clipboard

Error: HttpException Invalid statusCode 206

Open lucasfcardozo opened this issue 11 months ago • 1 comments

My code:

final url = "https://domain.com/..../..../video.mp4";
final _videoController = CachedVideoPlayerPlusController.networkUrl(
  Uri.parse(url),
  httpHeaders: {
    'Range': 'bytes=0-4999',
  }
);
E/flutter (22082): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: HttpException: 
Invalid statusCode: 206, uri = https://domain.com/..../..../video.mp4
E/flutter (22082): #0      WebHelper._manageResponse (package:flutter_cache_manager/src/web/web_helper.dart:123:7)
E/flutter (22082): <asynchronous suspension>
E/flutter (22082): #1      WebHelper._updateFile (package:flutter_cache_manager/src/web/web_helper.dart:97:5)
E/flutter (22082): <asynchronous suspension>
E/flutter (22082): #2      WebHelper._downloadOrAddToQueue (package:flutter_cache_manager/src/web/web_helper.dart:64:7)
E/flutter (22082): <asynchronous suspension>```

Even with this error, the video plays. 

The question is: will the rest of the video be downloaded progressively? Or is it fully downloaded?

lucasfcardozo avatar Nov 18 '24 17:11 lucasfcardozo