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
8568f791
Commit
8568f791
authored
Aug 07, 2011
by
Akash Mehrotra
Committed by
Jean-Baptiste Kempf
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA: Aspect Ratio
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
7f47ba06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
share/lua/http/requests/README.txt
share/lua/http/requests/README.txt
+4
-0
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+6
-1
No files found.
share/lua/http/requests/README.txt
View file @
8568f791
...
...
@@ -61,6 +61,10 @@ status.xml or status.json
> set playback rate. must be > 0
?command=rate&val=<newplaybackrate>
> set aspect ratio. Must be one of the following values. Any other value will reset aspect ratio to default
?command=aspectratio&val=<newratio>
Valid aspect ratio values: 1:1 , 4:3 , 5:4 , 16:9 , 16:10 , 221:100 , 235:100 , 239:100
> sort playlist using sort mode <val> and order <id>:
?command=pl_sort&id=<id>&val=<val>
If id=0 then items will be sorted in normal order, if id=1 they will be
...
...
share/lua/intf/modules/httprequests.lua
View file @
8568f791
...
...
@@ -154,6 +154,10 @@ processcommands = function ()
if
vlc
.
object
.
input
()
then
vlc
.
var
.
set
(
vlc
.
object
.
input
(),
"spu-delay"
,
val
)
end
elseif
command
==
"aspectratio"
then
if
vlc
.
object
.
vout
()
then
vlc
.
var
.
set
(
vlc
.
object
.
vout
(),
"aspect-ratio"
,
val
)
end
end
local
input
=
nil
...
...
@@ -360,9 +364,10 @@ local aout = vlc.object.aout()
s
.
rate
=
1
s
.
subtitledelay
=
0
end
if
vout
then
s
.
fullscreen
=
vlc
.
var
.
get
(
vout
,
"fullscreen"
)
s
.
aspectratio
=
vlc
.
var
.
get
(
vout
,
"aspect-ratio"
);
if
s
.
aspectratio
==
""
then
s
.
aspectratio
=
"default"
end
else
s
.
fullscreen
=
0
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