Commit 501c553e authored by Soomin Lee's avatar Soomin Lee

VLCMediaLibraryManager: Add default parameter to Media getter

parent a83d2edc
......@@ -123,8 +123,8 @@ class VLCMediaLibraryManager: NSObject {
///
/// - Parameter type: Type of the media
/// - Returns: Array of VLCMLMedia
func media(ofType type: VLCMLMediaType) -> [VLCMLMedia] {
return type == .video ? medialib.videoFiles(with: .filename, desc: false) : medialib.audioFiles(with: .filename, desc: false)
func media(ofType type: VLCMLMediaType, sortingCriteria sort: VLCMLSortingCriteria = .filename, desc: Bool = false) -> [VLCMLMedia] {
return type == .video ? medialib.videoFiles(with: sort, desc: desc) : medialib.audioFiles(with: sort, desc: desc)
}
func addMedia(withMrl mrl: URL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment