getByTrackIndex method
根据轨道索引获取字幕。
返回所有匹配指定 trackIndex 的字幕列表。
Returns all subtitles matching the given trackIndex.
Implementation
List<Subtitle> getByTrackIndex(int trackIndex) {
return subtitles.where((subtitle) => subtitle.index == trackIndex).toList();
}