FlutterAliPlayerFactory class
Constructors
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
-
instanceMap
↔ Map<
String, FlutterAliplayer> -
getter/setter pair
Static Methods
-
checkFloatViewPermission(
) → Future< bool> - 检查悬浮窗权限 (仅 Android)
-
createAliListPlayer(
{dynamic playerId}) → FlutterAliListPlayer - 创建短视频列表播放
-
createAliLiveShiftPlayer(
{dynamic playerId}) → FlutterAliLiveShiftPlayer -
createAliPlayer(
{dynamic playerId}) → FlutterAliplayer - 创建普通播放器
-
hideFloatViewForAndroid(
) → void - 隐藏悬浮窗(仅 Android)
-
initLicenseServiceForIOS(
) → Future< void> - 初始化license证书服务 仅对iOS系统有效
-
initService(
Uint8List byteData) → Future< void> - 初始化下载秘钥信息
-
loadRtsLibrary(
bool isAliPlayerSDK) → void - 选择sdk
-
requestFloatViewPermission(
) → Future< bool> - 请求悬浮窗权限(仅 Android)
-
setFloatViewIcon(
{String? closeButton, String? backButton}) → void - 设置悬浮窗图标(仅 Android)
-
setFloatViewUIVisible(
bool enable) → void - 设置悬浮窗图标是否显示(仅 Android)
-
showFloatViewForAndroid(
int viewId) → void - 显示悬浮窗(仅 Android)
Constants
- methodChannel → const MethodChannel