Adaptive Media Player

AmpMediaAcceleration Docs

Media Acceleration & Efficiency

Home / Media Acceleration &


The Media Acceleration & Efficiency module does a lot of work under the hood, configuring and initializing the necessary services for you, binding their functionality to the AmpPlayer automatically, and it also makes sure that the deinitialization is handled correctly to avoid leaks in your app.

Integration

import AmpCore

import AmpMediaAcceleration

var ampPlayer:AmpPlayer?

var ampMediaAcceleration:AmpMediaAcceleration?

self.ampPlayer = AmpPlayer(parentView: videoView)

self.ampMediaAcceleration = AmpMediaAcceleration(ampPlayer: self.ampPlayer!)

self.ampMediaAcceleration?.handleUrl(YOUR_MEDIA_ACCELERATION_VIDEO_URL)

self.ampPlayer?.autoplay = true