Media Acceleration & Efficiency Module for AMP iOS

Document created by Herberth Alvarado Champion on May 15, 2017Last modified by B-3-1EM85XD on Aug 9, 2017
Version 3Show Document
  • View in full screen mode

Maintainers: David Cortes Saenz & Miguel Lopez Valenciano



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.



import AmpCore

import AmpMediaAcceleration



var ampPlayer:AmpPlayer?

var ampMediaAcceleration:AmpMediaAcceleration?


self.ampPlayer = AmpPlayer(parentView: videoView)

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


self.ampPlayer?.autoplay = true

1 person found this helpful