enrichVideoWithHardcodedThumbnail static method
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));
}