appBskyVideoUploadVideo function

Future<XRPCResponse<VideoUploadVideoOutput>> appBskyVideoUploadVideo({
  1. required Uint8List bytes,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $parameters,
})

Upload a video to be processed then stored on the PDS.

Implementation

Future<XRPCResponse<VideoUploadVideoOutput>> appBskyVideoUploadVideo({
  required Uint8List bytes,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $parameters,
}) async => await $ctx.post(
  ns.appBskyVideoUploadVideo,
  headers: {'Content-type': 'video/mp4', ...?$headers},
  parameters: $parameters,
  body: bytes,
  to: const VideoUploadVideoOutputConverter().fromJson,
);