void _pauseAllExceptCurrent()

in example/lib/pages/short_video/short_video_page.dart [225:235]


  void _pauseAllExceptCurrent(int currentIndex) {
    for (int i = 0; i < _itemKeys.length; i++) {
      if (i != currentIndex) {
        // 暂停非当前 item
        _itemKeys[i].currentState?.pause();
      } else if (i == currentIndex) {
        // 恢复当前 item
        _itemKeys[i].currentState?.resume();
      }
    }
  }