setMasterPlaylistPreloaderCallback static method

Future<void> setMasterPlaylistPreloaderCallback({
  1. List<TTMasterPreloadURLInfo>? onMasterM3U8PlaylistSelectPreloadUrls(
    1. TTMasterPlaylist playlist
    )?,
})

Implementation

static Future<void> setMasterPlaylistPreloaderCallback(
    {List<TTMasterPreloadURLInfo>? Function(TTMasterPlaylist playlist)?
        onMasterM3U8PlaylistSelectPreloadUrls}) async {
  if (onMasterM3U8PlaylistSelectPreloadUrls != null) {
    _onMasterM3U8PlaylistSelectPreloadUrls = onMasterM3U8PlaylistSelectPreloadUrls;
  }
}