@Override
  public ImportResult importItem(
      UUID jobId,
      IdempotentImportExecutor idempotentImportExecutor,
      TokensAndUrlAuthData authData,
      VideosContainerResource data)
      throws Exception {
    if (data == null) {
      // Nothing to do
      return ImportResult.OK;
    }
    AppleMediaInterface mediaInterface = factory
      .getOrCreateMediaInterface(jobId, authData, appCredentials, exportingService, monitor);

    // Uploads album metadata
    final int albumCount =
        mediaInterface.importAlbums(
            jobId,
            idempotentImportExecutor,
            data.getAlbums().stream()
                .map(MediaAlbum::videoToMediaAlbum)
                .collect(Collectors.toList()),
          DataVertical.PHOTOS.getDataType());
    final Map<String, Long> importPhotosResult =
        mediaInterface.importAllMedia(
            jobId,
            idempotentImportExecutor,
            data.getVideos(),
          DataVertical.VIDEOS.getDataType());

    // generate import result
    final ImportResult result = ImportResult.OK;
    final Map<String, Integer> counts =
        new ImmutableMap.Builder<String, Integer>()
            .put(PhotosContainerResource.ALBUMS_COUNT_DATA_NAME, albumCount)
            .put(
                VideosContainerResource.VIDEOS_COUNT_DATA_NAME,
                importPhotosResult.get(ApplePhotosConstants.COUNT_KEY).intValue())
            .build();
    return result
        .copyWithBytes(importPhotosResult.get(ApplePhotosConstants.BYTES_KEY))
        .copyWithCounts(counts);
  }
An Apple importer to import the Videos into Apple iCloud-photos.
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/photos/AppleVideosImporter.java