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:
context,m3u8Url(required): The application context and the event’s playlist URL (it must carry theAuthorizationtoken — see Event Playback).shouldInterpolate(defaultfalse),minMp(default2_000_000),minWidth(1920),minHeight(1080): Scaling options, as for recording.hardwareConfig(defaultnull): Passdevice.getHardwareConfig()to get one MP4 per stitched sensor.
Callbacks fire on a background thread — post to the main thread before touching UI.
M3U8ToMP4Converter.convert(
context = context,
m3u8Url = url,
onSuccess = { files ->
// List<File> of MP4s in the app's cache directory — move them where you want them
},
onError = { message ->
// A String describing the failure
},
)