Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f0e61014
Commit
f0e61014
authored
Feb 13, 2010
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rc intf.
parent
859ebb87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
share/lua/intf/rc.lua
share/lua/intf/rc.lua
+10
-1
No files found.
share/lua/intf/rc.lua
View file @
f0e61014
...
@@ -366,6 +366,15 @@ function is_playing(name,client)
...
@@ -366,6 +366,15 @@ function is_playing(name,client)
if
vlc
.
input
.
is_playing
()
then
client
:
append
"1"
else
client
:
append
"0"
end
if
vlc
.
input
.
is_playing
()
then
client
:
append
"1"
else
client
:
append
"0"
end
end
end
function
get_title
(
name
,
client
)
local
item
=
vlc
.
input
.
item
()
if
item
then
client
:
append
(
item
:
name
())
else
client
:
append
(
""
)
end
end
function
ret_print
(
foo
,
start
,
stop
)
function
ret_print
(
foo
,
start
,
stop
)
local
start
=
start
or
""
local
start
=
start
or
""
local
stop
=
stop
or
""
local
stop
=
stop
or
""
...
@@ -508,7 +517,7 @@ commands_ordered = {
...
@@ -508,7 +517,7 @@ commands_ordered = {
{
"stats"
;
{
func
=
stats
;
help
=
"show statistical information"
}
};
{
"stats"
;
{
func
=
stats
;
help
=
"show statistical information"
}
};
{
"get_time"
;
{
func
=
get_time
(
"time"
);
help
=
"seconds elapsed since stream's beginning"
}
};
{
"get_time"
;
{
func
=
get_time
(
"time"
);
help
=
"seconds elapsed since stream's beginning"
}
};
{
"is_playing"
;
{
func
=
is_playing
;
help
=
"1 if a stream plays, 0 otherwise"
}
};
{
"is_playing"
;
{
func
=
is_playing
;
help
=
"1 if a stream plays, 0 otherwise"
}
};
{
"get_title"
;
{
func
=
ret_print
(
vlc
.
item
():
name
())
;
help
=
"the title of the current stream"
}
};
{
"get_title"
;
{
func
=
get_title
;
help
=
"the title of the current stream"
}
};
{
"get_length"
;
{
func
=
get_time
(
"length"
);
help
=
"the length of the current stream"
}
};
{
"get_length"
;
{
func
=
get_time
(
"length"
);
help
=
"the length of the current stream"
}
};
{
""
};
{
""
};
{
"volume"
;
{
func
=
volume
;
args
=
"[X]"
;
help
=
"set/get audio volume"
}
};
{
"volume"
;
{
func
=
volume
;
args
=
"[X]"
;
help
=
"set/get audio volume"
}
};
...
...
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