Skip to content

Add media playback enhancements: subtitle format expansion + audio track selection#14

Merged
jpcottin merged 1 commit into
masterfrom
feature/media-playback-enhancements
May 31, 2026
Merged

Add media playback enhancements: subtitle format expansion + audio track selection#14
jpcottin merged 1 commit into
masterfrom
feature/media-playback-enhancements

Conversation

@jpcottin

Copy link
Copy Markdown
Owner

Summary

This PR adds comprehensive media playback enhancements to SimpleTorrent:

  • Expanded subtitle support: Added support for .vtt, .ass, .ssa formats (in addition to existing .srt)
  • ISO 639 language code support: Handles 2-3 letter language codes for better international compatibility
  • Unified subtitle logic: Refactored duplicated directory scan logic into findSubtitleConfigs() helper
  • Audio track selection UI: Added dropdown menu for multi-audio files with language preference support
  • Audio track language detection: Supports language-tagged audio tracks for automatic selection

Test Plan

✅ Phone portrait and landscape orientations
✅ Tablet form factor with adaptive layout
✅ Foldable device (unfolded) with proper UI adaptation
✅ All unit tests pass (22 tests)
✅ All instrumented tests pass (67 on both emulators)
✅ Lint checks clean
✅ App builds and runs successfully

Testing Results

Verified media playback feature works correctly across:

  • Different device form factors (phone, foldable, tablet)
  • Different orientations (portrait and landscape)
  • Smooth transitions with proper UI reflow

…ack selection

- Expand subtitle support: add .vtt, .ass, .ssa formats (in addition to .srt)
- Support 2-3 letter ISO 639 language codes
- Unify duplicated directory scan logic into findSubtitleConfigs() helper
- Add audio track selection UI: shows dropdown only for multi-audio files
- Audio track selection via language preference (for language-tagged tracks)
- Tests: update PlayerScreenTest for new formats, move to androidTest for Uri mocking
- All unit tests pass (22), all instrumented tests pass (67 on both emulators)
- Lint clean, app builds and runs successfully
@jpcottin jpcottin merged commit fa5804f into master May 31, 2026
4 checks passed
@jpcottin jpcottin deleted the feature/media-playback-enhancements branch May 31, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant