appBskyVideoUploadVideo function

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

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

Implementation

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