Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions VidLoader/VidLoader/Sources/VidLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ public final class VidLoader: VidLoadable {
guard let item = activeItems[identifier] else { return .unknown }
return item.state
}

public func itemInformation(for identifier: String) -> ItemInformation? {
guard let item = activeItems[identifier] else { return nil }
return item
}

public func items() -> [ItemInformation] {
return Array(activeItems.values)
}


public func asset(location: URL) -> AVURLAsset? {
let urlAsset = AVURLAsset(url: location)
Expand Down