Skip to content

fix: media playback on device (HLS + dev stream) - #6

Merged
jobinlawrance merged 2 commits into
developfrom
feature/playback-demo
Jun 28, 2026
Merged

jobinlawrance merged 2 commits into
developfrom
feature/playback-demo

Conversation

@jobinlawrance

Copy link
Copy Markdown

Media playback now works on the emulator — verified a real HLS frame rendering.

  • Add media3-exoplayer-hls to :shared androidMain — ExoPlayer was crashing (ClassNotFoundException HlsMediaSource$Factory) on the .m3u8 test stream. iOS AVPlayer plays HLS natively.
  • Dev fallbacks (remove with Translations update from Hosted Weblate MakD/AFinity#101): DetailViewModel -> sampleDetail so Detail renders with Play; PlayerViewModel -> sample Mux HLS stream when /playback/{id} 401s.

Verified: emulator Play -> ExoPlayer renders real video. CI: JVM + iOS.

ExoPlayer crashed with ClassNotFoundException HlsMediaSource$Factory — the HLS source
module was missing. Add androidx.media3.exoplayer.hls to :shared androidMain (AVPlayer
plays HLS natively on iOS, no change needed).

Dev fallbacks so the player is exercisable before the backend exists:
- DetailViewModel falls back to SampleData.sampleDetail(id) so Detail renders (incl. Play)
- PlayerViewModel falls back to SampleData.samplePlayback (public Mux HLS test stream) and
  starts the player when /playback/{id} 401s.
Verified: emulator plays real HLS video (Play -> ExoPlayer renders the stream). Remove fallbacks with MakD#101.
@jobinlawrance
jobinlawrance merged commit 4bbb3ab into develop Jun 28, 2026
2 checks passed
@jobinlawrance
jobinlawrance deleted the feature/playback-demo branch June 28, 2026 13:38
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