Commit 788e51e
committed
fix(downloads): resolve format mismatch errors and improve playback
- Use downloadUri directly for playback instead of ExoPlayer downloadCache
to prevent format mismatch errors (MatroskaExtractor parsing M4A data)
- Check targetItag before cache in DownloadUtil to respect user format selection
- Clear playerCache when specific format requested to ensure fresh fetch
- Fix URL cache expiry check (was using wrong comparison operator)
- Reorder ExtractorsFactory: FragmentedMp4Extractor first for M4A files
- Add detailed logging for download and cache resolution debugging1 parent 675e668 commit 788e51e
File tree
2 files changed
+57
-16
lines changed- app/src/main/kotlin/com/metrolist/music/playback
2 files changed
+57
-16
lines changedLines changed: 34 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | | - | |
137 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
138 | 163 | | |
139 | 164 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 165 | + | |
143 | 166 | | |
144 | 167 | | |
145 | 168 | | |
| |||
150 | 173 | | |
151 | 174 | | |
152 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
153 | 179 | | |
154 | 180 | | |
155 | 181 | | |
| |||
Lines changed: 23 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2627 | 2627 | | |
2628 | 2628 | | |
2629 | 2629 | | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
2630 | 2633 | | |
2631 | | - | |
2632 | | - | |
2633 | | - | |
2634 | | - | |
2635 | | - | |
2636 | | - | |
2637 | | - | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
2638 | 2649 | | |
2639 | 2650 | | |
2640 | 2651 | | |
2641 | 2652 | | |
| 2653 | + | |
2642 | 2654 | | |
| 2655 | + | |
2643 | 2656 | | |
2644 | 2657 | | |
2645 | 2658 | | |
| |||
2731 | 2744 | | |
2732 | 2745 | | |
2733 | 2746 | | |
2734 | | - | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
2735 | 2750 | | |
2736 | 2751 | | |
2737 | 2752 | | |
| |||
0 commit comments