playerOfIndex method

VPVideoController? playerOfIndex(
  1. int index
)

获取指定index的player

Implementation

VPVideoController? playerOfIndex(int index) {
  if (index < 0 || index > playerList.length - 1) {
    return null;
  }
  return playerList[index];
}