Media Acceleration & Efficiency
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?.play(url: YOUR_MEDIA_ACCELERATION_VIDEO_URL)
self.ampPlayer?.autoplay = true