I'm trying to implement streaming video in my Flutter app using HLS. I'm currently using AWS MediaConvert to transcode my video from mp4 into HLS. I want to restrict the ability to view a video to particular users so I'm using CloudFront Signed URLs. However, when I pass the presigned URL into Flutter's video_player it does not work.
final videoURL = await repo.getVideoURL(video);
videoController = VideoPlayerController.network(videoURL);
The presigned URL is in the form
https://xyz.cloudfront.net/video.m3u8?Policy=xyz&Key-Pair-Id=xyz
Is there another recommended way of setting up streaming video in a Flutter application?