dash.js
Open Source Media Player
Seamless and reliable DASH streaming on any browser-based device
View onGitHub
5495
1729
408.8k
Sponsors
Trusted by the industry leaders
Latest updates from GitHub
Auto-tune the quality, within the size of the containerOn mobile devices, 4k video is inserted.
Some smartphones just can't handle it...
Without limiting the maximum bitrate.
It is possible, when auto-selecting the quality, that dash adjusts the video quality relative to the aspect ratio of the video block or otherwise.
I found the setting, but in my opinion it's not it.
```
(dsh = dashjs.MediaPlayer().create()).updateSettings({
streaming: {
abr: {
usePixelRatioInLimitBitrateByPortal: true,
autoSwitchBitrate: {
video: true
}
}
}
});
```Opened by Zuldek1994822—yesterday
Subtitle rendering intermittently stopping during playback on Smart TVsHello ,
We are facing an occasional issue where subtitles stop displaying while video playback is still running normally. The behavior appears to be random and so far has been difficult to reproduce.
What we know so far:
- The issue has been reported on Smart TV devices
- We currently don’t have any logs that capture the moment when it happens
- The reports are based mainly on end-user feedback
- Subtitles only reappear after a user interaction, such as seeking in the content
We wanted to check whether this is something you have already encountered, and if you might have any ideas or hypotheses about what could cause this kind of behavior.
Any insight would be greatly appreciated.Opened by testeur-990—17 days ago
Reduce memory allocations in hot paths for Smart TV optimization## Description
Several hot code paths in dash.js use `Object.keys()` patterns that create unnecessary array allocations during playback. On resource-constrained devices like Smart TVs, these allocations contribute to garbage collection pressure, potentially causing playback stutters.
## Affected Areas
| File | Function | Frequency | Issue |
|------|----------|-----------|-------|
| `AbrController.js` | `_onVideoElementResized` | Every video resize | Nested `Object.keys().forEach()` |
| `EventController.js` | `_iterateAndTriggerCallback` | Every 100ms | `Object.keys()` in nested loops |
| `EventController.js` | `_removeOutdatedEventObjects` | Every 100ms | `Object.keys().length === 0` check |
| `HTTPLoader.js` | `_addPathwayCloningParameters` | Every HTTP request | `Object.keys().map()` |
## Proposed Solution
Replace `Object.keys()` patterns with `for..in` loops which iterate directly without creating intermediate arrays.
## Expected Impact
- Reduces ~30-50 array allocations per second during playback
- Lower GC pressure on memory-constrained devices
- More fluid playback on Smart TVs and embedded devices
## Related PR
#4937Opened by PascalThuet—17 days ago






