2022-05-19 07:29:25 -06:00
|
|
|
struct TextTrack {
|
|
|
|
let type: String
|
|
|
|
let language: String
|
|
|
|
let title: String
|
|
|
|
let uri: String
|
2023-12-07 00:47:40 -07:00
|
|
|
|
2022-05-19 07:29:25 -06:00
|
|
|
let json: NSDictionary?
|
2023-12-07 00:47:40 -07:00
|
|
|
|
2022-05-19 07:29:25 -06:00
|
|
|
init(_ json: NSDictionary!) {
|
|
|
|
guard json != nil else {
|
|
|
|
self.json = nil
|
|
|
|
self.type = ""
|
|
|
|
self.language = ""
|
|
|
|
self.title = ""
|
|
|
|
self.uri = ""
|
|
|
|
return
|
|
|
|
}
|
|
|
|
self.json = json
|
|
|
|
self.type = json["type"] as? String ?? ""
|
|
|
|
self.language = json["language"] as? String ?? ""
|
|
|
|
self.title = json["title"] as? String ?? ""
|
|
|
|
self.uri = json["uri"] as? String ?? ""
|
|
|
|
}
|
|
|
|
}
|