pod_player
pod_player copied to clipboard
Vimeo private video is not working
`class _VodScreenState extends State<VodScreen> { late final PodPlayerController controller;
@override void initState() { super.initState();
String videoId = *****;
String token = *****;
final Map<String, String> headers = <String, String>{};
headers['Authorization'] = 'Bearer $token';
print(headers);
controller = PodPlayerController(
playVideoFrom: PlayVideoFrom.vimeoPrivateVideos(
videoId,
httpHeaders: headers,
),
)..initialise();
}
@override Widget build(BuildContext context) { return Scaffold( body: PodVideoPlayer(controller: controller), ); } } `
[POD] PodVideoPlayerType.vimeoPrivateVideos
flutter: ===== VIMEO API ERROR: type 'Null' is not a subtype of type 'List
I don't know How to solve this problem?
any news !
I have the same problem. I think the problem is that in the line 80 of video_apis.dart it refer to files but there is no this option in the json response of the endpoint: https://api.vimeo.com/videos/$videoId
Reading Vimeo docs I think this function is only available with Vimeo Standard (ex Pro) or greater