Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MediaTransferHandler

deprecated

Deprecated as of v1.5.1. Agora recommends that you do not use it.

Interface for managing the upload or download of a file or image.

Hierarchy

  • MediaTransferHandler

Index

Properties

Optional cancelSignal

cancelSignal: AbortSignal

Whether the upload or download task is cancelled.

Optional onOperationProgress

onOperationProgress: undefined | function

Reports the progress of the upload or download task once every second. This callback is triggered when the createMediaMessageByUploading method or the downloadMedia method is called. The triggering frequency is once every second. If the upload or download task pauses, this callback also pauses until the task continues. When the upload or download task is complete, the SDK does not save the callback value, so you need to save the value yourself.