Commit c7167a21 authored by Soomin Lee's avatar Soomin Lee

VLCEditController: Create playlist initial

parent 6971af0b
......@@ -65,7 +65,16 @@ extension VLCEditController: VLCEditControllerDataSource {
extension VLCEditController: VLCEditToolbarDelegate {
func createPlaylist() {
if let model = category as? PlaylistModel {
model.create(name: "new playlist")
} else if let model = category as? VideoModel {
let playlist = model.medialibrary.createPlaylist(with: "new playlist videomo")
for indexPath in selectedCellIndexPaths {
if let media = dataSet[indexPath.row] as? VLCMLMedia {
playlist.appendMedia(withIdentifier: media.identifier())
}
}
}
}
func delete() {
......
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