TrackInfoUtil class

A utility class for managing multi-track video playback with variable resolutions.

多视频轨播放(可变清晰度)工具类。

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

qualityDescriptions Map<String, String>
自定义清晰度描述
getter/setter pair
trackInfoResolutions Map<String, List<int>>
定义分辨率与对应宽高的映射
getter/setter pair

Static Methods

filterVideoTrackInfoList(List? trackInfoList) List<AVPTrackInfo>
过滤视频清晰度轨
findResolution(AVPTrackInfo? trackInfo) String
遍历最接近的清晰度
getIndexesFromTrackInfos(List<AVPTrackInfo> trackInfos) List<int>
从视频轨信息列表中提取索引
getQualitiesFromTrackInfos(List<AVPTrackInfo> trackInfos) List<String>
从视频轨信息列表中提取清晰度描述
getQuality(AVPTrackInfo? trackInfo) String
获取视频轨的清晰度
getTrackIndex(AVPTrackInfo? trackInfo) int
获取视频轨索引
getTrackInfoByIndex(List<AVPTrackInfo>? trackInfos, int? trackIndex) AVPTrackInfo?
根据索引获取视频轨信息