Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
c7167a21
Commit
c7167a21
authored
Aug 09, 2018
by
Soomin Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCEditController: Create playlist initial
parent
6971af0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Sources/VLCEditController.swift
Sources/VLCEditController.swift
+10
-1
No files found.
Sources/VLCEditController.swift
View file @
c7167a21
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment