Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exeception : videoQuality cannot be empty (vimeo private videos) #226

Open
UrvishShaligram opened this issue Aug 27, 2024 · 2 comments
Open

Comments

@UrvishShaligram
Copy link

Here is my podplayercontroller for playing vimeo private videos :

late final controller = PodPlayerController(
playVideoFrom: PlayVideoFrom.vimeoPrivateVideos("393556569",
httpHeaders:{'Authorization': 'Bearer $token'}),
podPlayerConfig: const PodPlayerConfig(
isLooping: true,videoQualityPriority: [1080, 720, 360]),
);

when I checkout the library code, the vimeoVideoUrls is empty and its coming from API , there is no parameter with the matching key written in library code, so library needs to update the code.

Anyone have any solution to solve this issue?

image

image

image

@UllashPodder
Copy link

I have played private videos using pod player for a client's project. I believe Vimeo's documentation is not detailed enough, this only works with Vimeo account with Pro account subscription. Free or starter accounts doesn't work. While creating the Vimeo app check private and video files

image

@yashgandhishaligram
Copy link

yashgandhishaligram commented Sep 12, 2024

Here is the solution of this error,
You just have to Generate New Personal Access Tokens with given Scopes in the Screenshot.
Reference Link : https://help.vimeo.com/hc/en-us/articles/12427789081745-How-do-I-generate-a-personal-access-token
Note : Do not forget to copy the new access token.

accestoken

Also, Initialize your PodPlayerController using below code in your app

String accessToken = 'YOURACCESSTOKEN';

late final controller = PodPlayerController(
playVideoFrom: PlayVideoFrom.vimeoPrivateVideos(widget.video.url,
httpHeaders:{'Authorization': 'Bearer $accessToken'}),
podPlayerConfig: const PodPlayerConfig(autoPlay: false),
);

Your vimeo private video will be played successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants