aliplayer_widget_lib library

AliPlayer Widget Library

A powerful and flexible vod component for Flutter applications. It integrates with flutter_aliplayer to provide high-quality video playback, seamless streaming, and a rich set of features for both live and on-demand video content. Whether you are building a video playback solution for education, entertainment, or any other application, it makes it easy to deliver an engaging video experience.

Classes

AliMediaInfo
Represents media metadata from Alibaba Cloud SDK. 阿里云 SDK 返回的媒体信息模型。
AliPlayerFullScreenWidget
AliPlayerGlobalSettings
GlobalSetting 特定功能
AliPlayerScreenFullWidgetState
AliPlayerView
AliPlayerWidget
一个用于播放视频的 Widget,支持自定义控制器和覆盖层。
AliPlayerWidgetController
播放器组件控制器,用于管理阿里云播放器的初始化、播放和销毁逻辑
AliPlayerWidgetData
播放器组件数据,用于存储播放器所需的视频数据
AliPlayerWidgetGlobalSetting
AliPlayer Widget Global Setting
AliPlayerWidgetState
播放器组件状态
AliTrackInfo
Represents a media track (audio, video, or subtitle) info. 媒体轨道(音视频或字幕)信息模型。
AlphaRenderMode
AlphaRenderMode
AVPConfig
AVPConfig设置
AVPFilterInfo
AVPMediaInfo
AVPThumbnailInfo
AVPTrackInfo
DownloadCompletedState
下载完成状态
DownloadErrorState
下载异常状态
DownloadEvent
下载事件回调
DownloadingState
下载中状态
DownloadState
EventChanneldef
FlutterAliplayer
FlutterAliPlayerFactory
FlutterAliPlayerGlobalSettings
FlutterAvpdef
GlobalEnv
设置环境Env
InfoCode
infoCode
LogLevel
Log 日志级别
MirrorMode
*@brief Mirroring mode/
PixelNumber
PlayerType
PlayState
播放器状态
RotateMode
*@brief Rotate mode/
ScaleMode
SeekMode
UnknownState
未知状态
UrlVideoSource
URL 类型的视频源
VidAuthVideoSource
VidAuth 类型的视频源
VideoSource
视频播放源基类
VideoSourceFactory
视频源工厂类
VidStsVideoSource
VidSts 类型的视频源

Enums

AliPlayerAudioSesstionType
播放器音频设置选择
AliPlayerViewTypeForAndroid
Android 渲染 View 类型
AVPIpResolveType
IP 解析类型
AVPOption
AVPPropertyKey
获取信息播放器的key
DocTypeForIOS
iOS 沙盒目录类型
EncryptionType
encryptionType
EncryptType
encryptType
SceneType
播放场景类型
SourceType
视频资源类型
SupportFeatureType
是否支持的功能的类型
TrackType
TrackInfo 获取current Type

Typedefs

AliPlayerViewCreatedCallback = void Function(int viewId)
OnCompletion = void Function(String playerId)
OnError = void Function(int errorCode, String? errorExtra, String? errorMsg, String playerId)
OnEventReportParams = void Function(Map params, String playerId)
OnInfo = void Function(int? infoCode, int? extraValue, String? extraMsg, String playerId)
OnLoadingBegin = void Function(String playerId)
OnLoadingEnd = void Function(String playerId)
OnLoadingProgress = void Function(int percent, double? netSpeed, String playerId)
OnLogInfoCallback = void Function(int level, String strlog)
OnPipStatusChanged = void Function(bool playing, String playerId)
OnPrepared = void Function(String playerId)
OnRenderingStart = void Function(String playerId)
OnSeekComplete = void Function(String playerId)
OnSeekLiveCompletion = void Function(int playTime, String playerId)
OnSeiData = void Function(int type, Uint8List uuid, Uint8List data, String playerId)
OnSnapShot = void Function(String path, String playerId)
OnStateChanged = void Function(int newState, String playerId)
OnStreamSwitchedFail = void Function(String url, int errorCode, String errorMsg)
OnStreamSwitchedSuccess = void Function(String url)
OnSubtitleExtAdded = void Function(int trackIndex, String url, String playerId)
OnSubtitleHeader = void Function(int trackIndex, String head, String playerId)
OnSubtitleHide = void Function(int trackIndex, int subtitleID, String playerId)
OnSubtitleShow = void Function(int trackIndex, int subtitleID, String subtitle, String playerId)
OnSubTrackReady = void Function(String playerId)
OnThumbnailGetFail = void Function(String playerId)
OnThumbnailGetSuccess = void Function(Uint8List bitmap, Int64List range, String playerId)
OnThumbnailPreparedFail = void Function(String playerId)
OnThumbnailPreparedSuccess = void Function(String playerId)
OnTimeShiftUpdater = void Function(int currentTime, int shiftStartTime, int shiftEndTime, String playerId)
OnTrackChanged = void Function(dynamic value, String playerId)
OnTrackReady = void Function(String playerId)
OnVideoRendered = void Function(int? timeMs, int? pts, String playerId)
OnVideoSizeChanged = void Function(int width, int height, int? rotation, String playerId)
OnWillStartPip = void Function(bool pipStatus, String playerId)
OnWillStopPip = void Function(bool pipStatus, String playerId)