Commit acf6598c authored by Soomin Lee's avatar Soomin Lee

VLCMediaLibraryManager: Add playlist methods

parent 994c7125
...@@ -176,6 +176,15 @@ extension VLCMediaLibraryManager { ...@@ -176,6 +176,15 @@ extension VLCMediaLibraryManager {
// MARK: MediaLibrary - Playlist methods // MARK: MediaLibrary - Playlist methods
extension VLCMediaLibraryManager { extension VLCMediaLibraryManager {
func createPlaylist(with name: String) -> VLCMLPlaylist {
return medialib.createPlaylist(withName: name)
}
func deletePlaylist(with identifier: VLCMLIdentifier) -> Bool {
return medialib.deletePlaylist(withIdentifier: identifier)
}
func getPlaylists(sortingCriteria sort: VLCMLSortingCriteria = .default, desc: Bool = false) -> [VLCMLPlaylist] { func getPlaylists(sortingCriteria sort: VLCMLSortingCriteria = .default, desc: Bool = false) -> [VLCMLPlaylist] {
return medialib.playlists(with: sort, desc: desc) return medialib.playlists(with: sort, desc: desc)
} }
......
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