FlutterAliPlayerGlobalSettings class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

methodChannel MethodChannel
getter/setter pair

Static Methods

disableCrashUpload(bool enable) Future<void>
播放器实例禁用crash堆栈上传
enableEnhancedHttpDns(bool enable) Future<void>
是否开启增强型httpDNS 默认不开启 开启后需要注意以下事项 1.该功能与Httpdns互斥,若同时打开,后开启的功能会实际生效; 2.需要申请license的高级httpdns功能,否则该功能不工作 3.需要通过接口添加cdn域名,否则会降级至local dns。
setAdaptiveDecoderGetBackupURLCallback(String getBackupUrlCallback(Object, Object, Object)) Future<void>
设置取BackupUrl回调。
setCacheUrlHashCallback(dynamic getUrlHashCallback(String)) Future<void>
设置加载url的hash值回调。如果不设置,SDK使用md5算法。
setGlobalEnvironment(int config) Future<void>
国际站环境集成 GlobalEnv
setNetworkCallback(bool onNetworkDataProcess(Object requestUrl, Object inData, Object inOutSize, Object outData)) Future<void>
设置网络数据回调。 requestUrl 数据归属的URL inData 输入数据buffer inOutSize 输入输出数据buffer大小,单位字节 outData 输出数据buffer,处理后的数据可写入这里,大小必须与inOutSize一样,其内存由sdk内部申请,无需管理内存
setOption(int opt1, Object opt2) Future<void>
设置特定功能选项