Skip to content

Commit

Permalink
include m3u8 files for video playback
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcakeday committed Sep 26, 2023
1 parent 476f525 commit 5fe11fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion damus/Views/NoteContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ func classify_url(_ url: URL) -> UrlType {
return .media(.image(url))
}

if str.hasSuffix(".mp4") || str.hasSuffix(".mov") {
if str.hasSuffix(".mp4") || str.hasSuffix(".mov") || str.hasSuffix(".m3u8") {
return .media(.video(url))
}

Expand Down

0 comments on commit 5fe11fd

Please sign in to comment.