Every API  maps one on one to a public method on the PlayerInstanceAAMP class declared in main_aamp.h in Aamp source code.


JSON-RPC methodAamp Player Instance MethodParameterResultSummary
Player.Tune
Tune
url : StringautoPlay : booleancontentType : StringtraceUUID : String
success : boolean
Instructs the AAMP  to tune to the given URL.
Player.Stop
Stop
None
success :boolean
Stops the current playback and releases decoder resources. The player returns to the idle state.
Player.Seek
Seek
position : numberkeepPaused : boolean
success : boolean
Seeks to an absolute position in the stream
Player.SeekToLive
SeekToLive
keepPaused : boolean

success : 
boolean
Seek to the live edge
Player.SetRate
SetRate
rate : number
overshootCorrection : integer
success: 
boolean
Set playback rate / trick-play speed
Player.SetPlaybackSpeed
SetPlaybackSpeed
speed : number

success: 
boolean
Sets the playback speed directly 
Player.PauseAt
PauseAt
position : number

success : 
boolean
Schedule a pause at a future position
Player.SetRateAndSeek
SetRateAndSeek
rate : integer
position : number
success:
boolean
Atomically set rate and seek