51e22abfe3
* fix(ts): onPlaybackRateChangeData was not correctly typed * fix: ensure tracks are well displayed in the sample * fix(ios): text tracks selection by index. regression due to codegen rework * chore: make selection by index testable (need a small manual patch) * chore(ios): fix linter warning
19 lines
414 B
Swift
19 lines
414 B
Swift
struct SelectedTrackCriteria {
|
|
let type: String
|
|
let value: String?
|
|
|
|
let json: NSDictionary?
|
|
|
|
init(_ json: NSDictionary!) {
|
|
guard json != nil else {
|
|
self.json = nil
|
|
self.type = ""
|
|
self.value = nil
|
|
return
|
|
}
|
|
self.json = json
|
|
self.type = json["type"] as? String ?? ""
|
|
self.value = json["value"] as? String
|
|
}
|
|
}
|