enrichVideoWithHardcodedThumbnail static method

Future<VideoWithThumbnail> enrichVideoWithHardcodedThumbnail(
  1. String baseName,
  2. String thumbnailBaseName,
  3. Uint8List imgBytes
)

Implementation

static Future<VideoWithThumbnail> enrichVideoWithHardcodedThumbnail(
    String baseName, String thumbnailBaseName, Uint8List imgBytes) async {
  var thumbNailData = await getThumbnailFromAsset(videoImage);

  // return the data
  return VideoWithThumbnail(
      videoData: VideoData(
          baseName: baseName,
          data: imgBytes), // we don't know the size of the video... todo
      thumbNailData: ImageData(
          baseName: thumbnailBaseName,
          width: thumbnailSize,
          height: thumbnailSize,
          data: thumbNailData));
}