mirror of
https://github.com/dirtydishes/dreamio.git
synced 2026-06-06 13:37:24 +00:00
add native audio track selection
This commit is contained in:
parent
87686d16e9
commit
ea5132c4d3
7 changed files with 568 additions and 7 deletions
|
|
@ -40,6 +40,8 @@ struct SubtitleTrack: Equatable {
|
|||
let name: String
|
||||
}
|
||||
|
||||
typealias AudioTrack = SubtitleTrack
|
||||
|
||||
#if DEBUG
|
||||
enum SubtitleDebugFormatter {
|
||||
static func candidateSummary(_ candidates: [SubtitleCandidate]) -> String {
|
||||
|
|
@ -93,6 +95,12 @@ enum SubtitleOptionMapper {
|
|||
}
|
||||
}
|
||||
|
||||
enum AudioOptionMapper {
|
||||
static func options(from tracks: [AudioTrack]) -> [AudioTrack] {
|
||||
tracks.filter { $0.id >= 0 }
|
||||
}
|
||||
}
|
||||
|
||||
struct StreamClassification {
|
||||
let sourceKind: StreamSourceKind
|
||||
let containerGuess: StreamContainerGuess
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue