enrichVideoUsngHerokuapp static method
Implementation
static Future<VideoWithThumbnail> enrichVideoUsngHerokuapp(String baseName,
String thumbnailBaseName, Uint8List imgBytes, String url) async {
print('url: $url');
var thumbNailData = await getThumbnailUsingHerokuapp(url);
// 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));
}