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
c0fe636d
Commit
c0fe636d
authored
Mar 15, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"[PATCH] http interface workaround to make the play/pause button work well" by Laurent Mutricy.
parent
9769a897
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
THANKS
THANKS
+1
-0
share/http/js/functions.js
share/http/js/functions.js
+10
-2
share/http/requests/status.xml
share/http/requests/status.xml
+5
-1
No files found.
THANKS
View file @
c0fe636d
...
...
@@ -78,6 +78,7 @@ Jonas Larsen <jonas at vrt.dk> - Danish translation
Julien Blache <jb at technologeek.org> - disc ejection code
kty0ne - WinAmp 5 skin for VLC
Laurent Jonqueres <laurent_jonqueres at yahoo.fr> - Occitan localization
Laurent Mutricy <laurent.mutricy at ecl2005 dot ec-lyon dot fr> - HTTP interface fixes
Lorena Gomes - Catalan translation
Marc Nolette <nolette at videotron.ca> - PVR support in DirectShow input
Marco Munderloh <Marco.Munderloh at web.de> - HTTP fix for Win32 to URL filenames
...
...
share/http/js/functions.js
View file @
c0fe636d
...
...
@@ -21,9 +21,12 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
/* global variables */
/**********************************************************************
* Global variables
*********************************************************************/
var
old_time
=
0
;
var
pl_cur_id
;
/**********************************************************************
* Slider functions
...
...
@@ -273,11 +276,12 @@ function in_enqueue()
function
pl_play
(
id
)
{
loadXMLDoc
(
'
requests/status.xml?command=pl_play&id=
'
+
id
,
parse_status
);
pl_cur_id
=
id
;
setTimeout
(
'
update_playlist()
'
,
1000
);
}
function
pl_pause
()
{
loadXMLDoc
(
'
requests/status.xml?command=pl_pause
'
,
parse_status
);
loadXMLDoc
(
'
requests/status.xml?command=pl_pause
&id=
'
+
pl_cur_id
,
parse_status
);
}
function
pl_stop
()
{
...
...
@@ -478,6 +482,9 @@ function parse_playlist()
var
pos
=
document
.
createElement
(
"
div
"
);
var
pos_top
=
pos
;
var
elt
=
answer
.
firstChild
;
pl_cur_id
=
0
;
/* changed to the current id is there actually
* is a current id */
while
(
elt
)
{
if
(
elt
.
nodeName
==
"
node
"
)
...
...
@@ -513,6 +520,7 @@ function parse_playlist()
clear_children
(
nowplaying
);
nowplaying
.
appendChild
(
document
.
createTextNode
(
elt
.
getAttribute
(
'
name
'
)
)
);
pl
.
appendChild
(
document
.
createTextNode
(
'
*
'
));
pl_cur_id
=
elt
.
getAttribute
(
'
id
'
);
}
pl
.
setAttribute
(
'
title
'
,
elt
.
getAttribute
(
'
uri
'
));
pl
.
appendChild
(
document
.
createTextNode
(
elt
.
getAttribute
(
'
name
'
)
)
);
...
...
share/http/requests/status.xml
View file @
c0fe636d
...
...
@@ -42,8 +42,12 @@
<vlc
id=
"rpn"
param1=
"id value vlc_play"
/>
<vlc
id=
"end"
/>
<vlc
id=
"if"
param1=
"command value 'pl_pause' strcmp 0 ="
/>
<vlc
id=
"if"
param1=
"stream_state value 'stop' strcmp 0 = id value 0 = ! &"
/>
<vlc
id=
"rpn"
param1=
"id value vlc_play"
/>
<vlc
id=
"else"
/>
<vlc
id=
"rpn"
param1=
"vlc_pause"
/>
<vlc
id=
"end"
/>
<vlc
id=
"end"
/>
<vlc
id=
"if"
param1=
"command value 'pl_stop' strcmp 0 ="
/>
<vlc
id=
"rpn"
param1=
"vlc_stop"
/>
<vlc
id=
"end"
/>
...
...
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