jellyflood/Shared/ViewModels/VideoPlayerModel.swift

33 lines
680 B
Swift

//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import JellyfinAPI
import SwiftUI
struct Subtitle {
var name: String
var id: Int32
var url: URL?
var delivery: SubtitleDeliveryMethod
var codec: String
var languageCode: String
}
struct AudioTrack {
var name: String
var languageCode: String
var id: Int32
}
class PlaybackItem: ObservableObject {
@Published
var videoType: PlayMethod = .directPlay
@Published
var videoUrl = URL(string: "https://example.com")!
}