How mplakalovi1/pyhas works
PyHAS is a command-line HTTP adaptive-streaming emulation client. Its main workflow reads configuration, fetches and parses an MPD manifest, downloads initialization data, then selects and downloads media segments while tracking bandwidth and buffer state. The player coordinates these stages and chooses either Lsrb or Osrb adaptation. The README provides only the product name; the graph’s implementation links are based on the sampled source, so undocumented capabilities are not inferred.
Main entry points: player.py Playback controller · HTTP.py HTTP client · xmlparser.py MPD parser · algorithm.py Lsrb selector
Components 8
Playback orchestration
- Stream configuration
config.ini - Playback controller
player.py
Manifest and transport
- MPD parser
xmlparser.py - HTTP client
HTTP.py
Adaptive selection
- Lsrb selector
algorithm.py - Osrb selector
algorithm.py
Other components
- Client operator
- Streaming server
Connections 12
- Client operator → Playback controller: runs client
- Playback controller → Stream configuration: reads settings
player.py - Playback controller → HTTP client: requests manifest
player.py - HTTP client → Streaming server: fetches resources
HTTP.py - HTTP client → Playback controller: returns response
HTTP.py - Playback controller → MPD parser: parses manifest
player.py - MPD parser → Playback controller: provides stream metadata
player.py - Playback controller → Lsrb selector: selects when configured
player.py - Playback controller → Osrb selector: selects when configured
player.py - Playback controller → HTTP client: downloads initialization and segments
player.py - Playback controller → Lsrb selector: updates selection
player.py - Playback controller → Osrb selector: updates selection
player.py