How rdkcentral/aamp works
AAMP is a native GStreamer-based video engine. An application initiates playback through the player, which coordinates stream abstraction, manifest/fragment collection, adaptive bitrate selection, downloading, and output; supporting branches handle ads, DRM, subtitles, and time-shift buffering. The README documents HLS, DASH, progressive playback, and DRM. Some subsystem links below rely on explicit README statements or SOURCE INDEX references; unsampled implementation details are not assumed.
Main entry points: priv_aamp.h Player runtime · StreamAbstractionAAMP.h Stream abstraction · main_aamp.cpp AAMP player · fragmentcollector_mpd.cpp DASH collection
Components 20
Playback orchestration
- AAMP player
main_aamp.cpp - Player runtime
priv_aamp.h - Configuration
AampConfig.h - Events
AampEvent.h
Streaming and selection
- Stream abstraction
StreamAbstractionAAMP.h - HLS collection
fragmentcollector_hls.cpp - DASH collection
fragmentcollector_mpd.cpp - Progressive playback
fragmentcollector_progressive.cpp - DASH manifest model
dash/mpd/MPDModel.cpp - HTTP downloader
downloader/AampCurlDownloader.cpp - Bitrate estimation
abr/abr.cpp - Hybrid ABR
support/aampabr/HybridABRManager.cpp
Playback services
- DASH ad insertion
admanager_mpd.cpp - DRM licensing
drm/AampDRMLicManager.cpp - WebVTT subtitles
subtitle/webvttParser.cpp - Time-shift session
AampTSBSessionManager.cpp - Time-shift storage
tsb/src/TsbStore.cpp
Media output
- Stream sink manager
AampStreamSinkManager.cpp - GStreamer pipeline
aampgstplayer.cpp
Other components
- Playback application
Connections 19
- Playback application → AAMP player: starts playback
README.md - AAMP player → Player runtime: coordinates
- Player runtime → Configuration: uses settings
priv_aamp.h - Player runtime → Events: uses events
priv_aamp.h - Player runtime → Stream abstraction: coordinates streams
priv_aamp.h - Stream abstraction → HLS collection: collects HLS
README.md - Stream abstraction → DASH collection: collects DASH
README.md - Stream abstraction → Progressive playback: collects progressive
README.md - DASH collection → DASH manifest model: parses manifest
- Player runtime → Bitrate estimation: uses ABR
priv_aamp.h - Bitrate estimation → Hybrid ABR: supports hybrid ABR
- Player runtime → DASH ad insertion: supports ad insertion
- Player runtime → DRM licensing: uses DRM
drm/AampDRMLicManager.cpp - Player runtime → Time-shift session: creates session
priv_aamp.h - Time-shift session → Time-shift storage: stores fragments
- Player runtime → Stream sink manager: manages sinks
AampStreamSinkManager.cpp - Stream sink manager → GStreamer pipeline: uses player
- Stream abstraction → WebVTT subtitles: supports subtitles
- Stream abstraction → HTTP downloader: downloads media