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 method | Aamp Player Instance Method | Parameter | Result | Summary |
|---|---|---|---|---|
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 |
Player.GetState | GetState | None | state : PlayerState | Get current player state |
Player.GetPlaybackPosition | GetPlaybackPosition | None | position : Number | Get current playback position |
Player.GetPlaybackDuration | GetPlaybackDuration | None | duration : Number | Get total stream duration |
Player.GetPlaybackRate | GetPlaybackRate | None | rate : Number | Get current playback rate |
Player.IsLive | IsLive | None | isLive : Boolean | Check if stream is live |
Player.SetVideoMute | SetVideoMute | muted : boolean | success : | Mute or unmute the video plane |
Player.GetVideoMute | GetVideoMute | None | muted : | Get video mute state |
Player.SetAudioVolume | SetAudioVolume | volume : integer | success : | Set audio volume |
Player.GetAudioVolume | GetAudioVolume | None | volume : | Get audio volume |