This topic provides answers to some frequently asked questions about Player SDK for Flutter.
License-related issues
For issues such as invalid or expired licenses, see License FAQ.
Common issues across platforms
Issues that may occur across platforms are summarized in FAQ about Player SDK.
If you have development experience, you can also troubleshoot playback errors yourself.
Compilation issues
What do I do if packaging and compilation by using Player SDK for Flutter fail on an Android device?
In the Gradle Scripts directory, create a proguard-rules.pro file, and disable flutter_aliplayer-related obfuscation. Sample code:
-keep class com.alivc.**{*;}
-keep class com.aliyun.**{*;}
-keep class com.cicada.**{*;}
-dontwarn com.alivc.**
-dontwarn com.aliyun.**
-dontwarn com.cicada.**Add the configurations to the build.gradle(:app) file. Sample code:
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), '../proguard-rules.pro'
}
}Playback issues
What do I do if an Android device cannot play RTS streams when Player SDK for Flutter uses a single player as the SDK kernel?
Configure RTS properties on the playback page. Sample code:
import 'package:flutter_aliplayer/flutter_aliplayer_factory.dart';
// This method applies only to Android devices.
FlutterAliPlayerFactory.loadRtsLibrary(true);