shared/utils/converters library
Functions
-
fetchVideoAsUint8List(
String videoUrl) → Future< Uint8List> - Fetches an video from a network URL as a Uint8List.
-
fetchVideoToFile(
String videoUrl, String filePath) → Future< File> - Fetches a video from a given URL and saves it to a specified file path.
-
loadAssetVideoAsUint8List(
String assetPath) → Future< Uint8List> - Loads an video asset as a Uint8List.
-
readFileAsUint8List(
File file) → Future< Uint8List> - Reads a file as a Uint8List.
-
writeAssetVideoToFile(
String assetPath, String filePath) → Future< File> - Writes a video asset to a file on the local file system.
-
writeMemoryVideoToFile(
Uint8List bytes, String filePath) → Future< File> - Writes a video file from memory to the specified file path.