Flutter video player wont accept self signed https connection
519
Enable CleartextTraffic in Android manifest
// android:usesCleartextTraffic="true"
<application
android:label="App Name"
android:requestLegacyExternalStorage="true"
android:usesCleartextTraffic="true"
android:icon="@mipmap/launcher_icon">
Author by
Dan
Updated on December 27, 2022Comments
-
Dan over 1 year
I'm working on a Flutter app that is connecting to assets in the cloud that are using self signed HTTPS.
In the Flutter app I am using Chewie and VideoPlayerController from the lib below:
import 'package:video_player/video_player.dart'; import 'package:chewie/chewie.dart';
The video playback crashes when it encounters the HTTPS asset using self signed SSL certificate. I don't see any options to ignore this "issue".
The error is somewhat generic but when I switch back to HTTP it works just fine. This is the error I get from the player when using the self signed HTTPS link.
PlatformException: Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error
There should be some way to use a self signed SSL but how can I go about doing that?
-
dheeraj reddy about 3 yearsSame issue. Any solution?
-