Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
d06bfc8a
Commit
d06bfc8a
authored
Mar 16, 2004
by
Xavier Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move playlist item in the interface http
parent
77fa4675
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
modules/control/http.c
modules/control/http.c
+17
-1
share/http/index.html
share/http/index.html
+10
-2
No files found.
modules/control/http.c
View file @
d06bfc8a
...
...
@@ -1254,6 +1254,7 @@ enum macroType
MVLC_SEEK
,
MVLC_KEEP
,
MVLC_SORT
,
MVLC_MOVE
,
MVLC_VOLUME
,
MVLC_FULLSCREEN
,
...
...
@@ -1297,6 +1298,7 @@ StrToMacroTypeTab [] =
{
"delete"
,
MVLC_DEL
},
{
"empty"
,
MVLC_EMPTY
},
{
"sort"
,
MVLC_SORT
},
{
"move"
,
MVLC_MOVE
},
/* admin control */
{
"close"
,
MVLC_CLOSE
},
...
...
@@ -1798,7 +1800,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
{
playlist_SortAuthor
(
p_sys
->
p_playlist
,
i_order
);
msg_Dbg
(
p_intf
,
"requested playlist sort by author (%d)"
,
i_order
);
}
else
if
(
!
strcmp
(
type
,
"
S
huffle"
)
)
}
else
if
(
!
strcmp
(
type
,
"
s
huffle"
)
)
{
playlist_Sort
(
p_sys
->
p_playlist
,
SORT_RANDOM
,
ORDER_NORMAL
);
msg_Dbg
(
p_intf
,
"requested playlist shuffle"
);
...
...
@@ -1806,6 +1808,20 @@ static void MacroDo( httpd_file_sys_t *p_args,
break
;
}
case
MVLC_MOVE
:
{
char
psz_pos
[
6
];
char
psz_newpos
[
6
];
int
i_pos
;
int
i_newpos
;
uri_extract_value
(
p_request
,
"psz_pos"
,
psz_pos
,
6
);
uri_extract_value
(
p_request
,
"psz_newpos"
,
psz_newpos
,
6
);
i_pos
=
atoi
(
psz_pos
);
i_newpos
=
atoi
(
psz_newpos
);
playlist_Move
(
p_sys
->
p_playlist
,
i_pos
,
i_newpos
+
1
);
msg_Dbg
(
p_intf
,
"requested move playlist item %d to %d"
,
i_pos
,
i_newpos
);
break
;
}
/* admin function */
case
MVLC_CLOSE
:
...
...
share/http/index.html
View file @
d06bfc8a
...
...
@@ -10,7 +10,7 @@
<meta
http-equiv=
"refresh"
content=
"0;URL=/"
/>
<vlc
id=
"end"
/>
<vlc
id=
"control"
param1=
"stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort"
/>
<vlc
id=
"control"
param1=
"stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort
,move
"
/>
<vlc
id=
"set"
param1=
"sout"
param2=
"string"
/>
</head>
<body>
...
...
@@ -85,6 +85,14 @@
</form>
</div>
<div
class=
"sectitle"
>
Move Item
</div>
<div
class=
"section"
>
<form
method=
"get"
action=
""
>
Move the item number
<input
type=
"text"
name=
"psz_pos"
size=
"5"
/>
to
<input
type=
"text"
name=
"psz_newpos"
size=
"5"
/>
<input
type=
"submit"
name=
"control"
value=
"move"
/>
</form>
</div>
</div>
<div
class=
"sectitle"
>
VLC Playlist
</div>
<div
class=
"section"
>
<form
method=
"get"
action=
""
>
...
...
@@ -96,7 +104,7 @@
<option
value=
"title"
>
title
</option>
<option
value=
"group"
>
group
</option>
<option
value=
"author"
>
author
</option>
<option
value=
"
Shuffle"
>
S
huffle
</option>
<option
value=
"
shuffle"
>
s
huffle
</option>
</select>
with
<select
name=
"order"
>
<option
value=
"0"
>
normal order
</option>
...
...
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