newtaDev / pod_player

Video player for flutter web & mobile devices, Play video from youtube or vimeo or network in flutter using pod player
https://pub.dev/packages/pod_player
MIT License
106 stars 202 forks source link

videoQuality cannot be empty #225

Open nikunjshaligram opened 3 months ago

nikunjshaligram commented 3 months ago

var token = 'token'; final Map<String, String> headers = <String, String>{}; headers['Authorization'] = 'Bearer ${token}';

print("Video URL: ${widget.video.url}");
print("Headers: $headers");

_controller = PodPlayerController(
    playVideoFrom: PlayVideoFrom.vimeoPrivateVideos(
      '${widget.video.url}',
      httpHeaders: headers,
    ),
    podPlayerConfig: const PodPlayerConfig(
      autoPlay: true,
      isLooping: true,
    ))
  ..initialise().then((_) {
    print('PodPlayerController initialized successfully.');
  }).catchError((error) {
    print('Initialization error: $error');
  });

I have to implement this code but I get an error using pod player with vimeo url. Url worked in browser properly, but in mobile app side not work.

Initialization error: Exception: videoQuality cannot be empty