Download Events

Pre-requisite: The user has to be signed in to perform the following operations.


Download Events

To download events, The following method can be used:

  • m3u8Url (required): The URL of the M3U8 file to be downloaded.
  • fileName (required): The name of the file to be saved.
  • context (required): The context of the application.
  • path (required): The path where the file should be saved. Defaults to the Movies directory.
M3U8ToMP4Converter.convert(
  context = context,
  m3u8Url = url,
  onSuccess = {
    // A File object representing the downloaded file
  },
  onError = {
    // The error object contains the error code and message
  },
)