Skip to main content

Configuring Media Sources

Configuring the media sources for video playback is a crucial first step in ensuring a seamless viewing experience. It involves selecting the appropriate source, bitrate, and resolution for the video being played. The source can be a local file or a remote server, and the bitrate and resolution should be chosen based on the viewer's internet speed and device capabilities. Choosing the wrong source, bitrate, or resolution can lead to buffering, pixelated images, or audio syncing issues. Therefore, it's essential to configure the stream sources correctly to ensure smooth playback and prevent frustration for the viewer. By taking the time to properly configure the stream sources, the viewer can fully immerse themselves in the content without any distractions or interruptions.

Generic Configuration

The token you obtain from MCP will let the Akta Token Exchange System (TKX) handle the media source configuration.

Manual Configuration

It is possible to play the content providing only a playback URL.

Example Code

Swift
let aktaMedia = AktaMedia()
aktaMedia.mediaUrl = contentUrl
self?.player?.load(media: aktaMedia, completion: { [weak self] loaded, error in
if loaded {
self?.player?.play()
}
})