Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8ffc1871
Commit
8ffc1871
authored
Apr 08, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "luahttp: fix service discovery loading."
This reverts commit
a9e4799e
.
parent
a63042d4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
share/lua/http/dialogs/playlist
share/lua/http/dialogs/playlist
+1
-7
share/lua/http/js/functions.js
share/lua/http/js/functions.js
+2
-2
share/lua/http/requests/status.xml
share/lua/http/requests/status.xml
+3
-8
No files found.
share/lua/http/dialogs/playlist
View file @
8ffc1871
...
@@ -83,13 +83,7 @@ This dialog needs the following dialogs to be fully functional: <none>
...
@@ -83,13 +83,7 @@ This dialog needs the following dialogs to be fully functional: <none>
<?vlc
<?vlc
local sd = vlc.sd.get_services_names()
local sd = vlc.sd.get_services_names()
for n,ln in pairs(sd) do
for n,ln in pairs(sd) do
local sdname = string.gsub(n, "([^{]*)({.*)", "%1")
print([[<button onclick="pl_sd(']]..n..[[');hide_menu('menu_sd');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" class="menuout" title="Toggle ]]..ln..[[" >]]..ln..[[</button><br/>]])
local islua = 0
if(sdname == "lua") then
sdname = string.gsub(n, "(lua{sd=')([^']*)'(.*)", "%2")
islua = 1
end
print([[<button class="menuout" onclick='pl_sd("]]..sdname..[[", "]]..islua..[[");hide_menu("menu_sd");' onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" class="menuout" title="Toggle ]]..ln..[[" >]]..ln..[[</button><br/>]])
end
end
?>
?>
</div>
</div>
...
...
share/lua/http/js/functions.js
View file @
8ffc1871
...
@@ -360,9 +360,9 @@ function pl_repeat()
...
@@ -360,9 +360,9 @@ function pl_repeat()
{
{
loadXMLDoc
(
'
requests/status.xml?command=pl_repeat
'
,
parse_status
);
loadXMLDoc
(
'
requests/status.xml?command=pl_repeat
'
,
parse_status
);
}
}
function
pl_sd
(
value
,
islua
)
function
pl_sd
(
value
)
{
{
loadXMLDoc
(
'
requests/status.xml?command=pl_sd&val=
'
+
value
+
'
&islua=
'
+
islua
,
parse_status
);
loadXMLDoc
(
'
requests/status.xml?command=pl_sd&val=
'
+
value
,
parse_status
);
}
}
/* misc actions */
/* misc actions */
...
...
share/lua/http/requests/status.xml
View file @
8ffc1871
...
@@ -79,15 +79,10 @@ elseif command == "pl_loop" then
...
@@ -79,15 +79,10 @@ elseif command == "pl_loop" then
elseif command == "pl_repeat" then
elseif command == "pl_repeat" then
vlc.playlist.repeat_()
vlc.playlist.repeat_()
elseif command == "pl_sd" then
elseif command == "pl_sd" then
if
(_GET['islua'] == "1"
) then
if
vlc.sd.is_loaded(val
) then
sdname = "lua{sd='" .. val .. "'}"
vlc.sd.remove(val)
else
else
sdname = val
vlc.sd.add(val)
end
if vlc.sd.is_loaded(sdname) then
vlc.sd.remove(sdname)
else
vlc.sd.add(sdname)
end
end
elseif command == "fullscreen" then
elseif command == "fullscreen" then
vlc.fullscreen()
vlc.fullscreen()
...
...
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