diff --git a/src/cds/core/src/main/kotlin/org/icpclive/cds/adapters/AdvancedPropertiesAdapter.kt b/src/cds/core/src/main/kotlin/org/icpclive/cds/adapters/AdvancedPropertiesAdapter.kt index d60767c08..06d2a825f 100644 --- a/src/cds/core/src/main/kotlin/org/icpclive/cds/adapters/AdvancedPropertiesAdapter.kt +++ b/src/cds/core/src/main/kotlin/org/icpclive/cds/adapters/AdvancedPropertiesAdapter.kt @@ -29,6 +29,10 @@ private fun String.applyTemplate(valueProvider: (String) -> String?) = private fun MediaType.applyTemplate(valueProvider: (String) -> String?) = when (this) { is MediaType.Photo -> copy(url = url.applyTemplate(valueProvider)) is MediaType.Video -> copy(url = url.applyTemplate(valueProvider)) + is MediaType.HLSVideo -> copy( + url = url.applyTemplate(valueProvider), + jwtToken = jwtToken?.applyTemplate(valueProvider) + ) is MediaType.Object -> copy(url = url.applyTemplate(valueProvider)) is MediaType.WebRTCProxyConnection -> copy(url = url.applyTemplate(valueProvider)) is MediaType.WebRTCGrabberConnection -> copy( @@ -384,4 +388,4 @@ private fun List.mergeTeams(overrides: Map?) ) } -private val logger = getLogger(AdvancedPropertiesAdapter::class) \ No newline at end of file +private val logger = getLogger(AdvancedPropertiesAdapter::class)