pod_player icon indicating copy to clipboard operation
pod_player copied to clipboard

Vimeo private video is not working

Open yangsh91 opened this issue 2 years ago • 3 comments
trafficstars

`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' in type cast ========== [POD] ERROR ON POD_PLAYER: type 'Null' is not a subtype of type 'List' in type cast [POD] [#95632] Pod Player Controller failed to initialize

I don't know How to solve this problem?

yangsh91 avatar Sep 06 '23 02:09 yangsh91

any news !

Joseph-Nathan avatar Sep 16 '23 16:09 Joseph-Nathan

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

stormenergy91 avatar Oct 05 '23 15:10 stormenergy91

Reading Vimeo docs I think this function is only available with Vimeo Standard (ex Pro) or greater

stormenergy91 avatar Oct 05 '23 15:10 stormenergy91