AMP Android SDK: Native basic mode restrictions

Document created by Herberth Alvarado Champion on Aug 12, 2016Last modified by Herberth Alvarado Champion on Apr 9, 2017
Version 6Show Document
  • View in full screen mode

Maintainer: Jason Gamboa

This document is part of AMP Android SDK 

 

MODE_NATIVE_BASIC bypasses the stream playback to the native media player of the Android system. Many of the methods and events implemented for other decoding modes are not available, as the Android system does not provide this information to the SDK.

 

This is a summary of the different restrictions per method/event existing in the API:

 

Unavailable methods:

  • isLive() //Always returns “false”
  • onPlayerExtendedEvent(eventType, arg1, arg2) //Extended events are not available
  • setHLSStartingAlgorithm(mode)
  • setMaxBitrate(bitrate)
  • switchBitrateUp()
  • swithBitrateDown()
  • setBitrateToPlay(bitrate)
  • setStartingBitrateIndex(index)
  • getBitratesCount()
  • getCurrentBitrate()
  • getBitrateByIndex(index)
  • getDVRLength()
  • getPositionInDVR()
  • getTimePositionAsDate()
  • seekToLive()
  • getBufferingPercentage()
  • getBytesLoaded()
  • getLastHttpErrorCode()
  • getRebuffers()
  • getRebufferingTime()
  • getStreamsInfo()
  • setMediaAnalyticsConfigUrl(configUrl)
  • setMediaAnalyticsCustomData(key, data)

 

Unavailable events:

  • PLAYER_EVENT_TYPE_START_REBUFFERING
    • Availability of this event depends on the device and Android version.
  • PLAYER_EVENT_TYPE_END_REBUFFERING
    • Availability of this event depends on the device and Android version.
  • PLAYER_EVENT_TYPE_SWITCH_REQUESTED
  • PLAYER_EVENT_TYPE_SWITCH
  • PLAYER_EXTENDED_EVENT_BANDWIDTH_MEASURE
  • PLAYER_EVENT_SEEKING_SUCCEDEED   
    • Android’s documentation states this event is implemented, but it doesn’t work on most of devices.

 

 

This document is part of AMP Android SDK 

Attachments

    Outcomes