MediaConfiguration

data class MediaConfiguration

Configures the behavior of the media frontend by providing a PolicyProvider for SourceId.

Media configuration is useful for creating custom media Frontend. Use asMediaConfiguration in FrontendBuilder to create media configuration from MediaPolicyFrontendExtensions.

Example

val mediaConfiguration = getFrontendExtensionsByType<MediaPolicyFrontendExtension>()
.asMediaConfiguration()

Functions

Link copied to clipboard
fun getPolicyProvider(sourceId: SourceId?): PolicyProvider

Maps the requested sourceId to a PolicyProvider.