Media Acceleration & Efficiency Module for AMP iOS

Document created by Herberth Alvarado Champion on May 15, 2017Last modified by Miguel Lopez Valenciano on Aug 9, 2017
Version 3Show Document
  • View in full screen mode

Maintainers: David Cortes Saenz & Miguel Lopez Valenciano

 

Introduction

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

1 person found this helpful

Attachments

    Outcomes