Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websites
Manage
Activity
Members
Labels
Plan
Issues
25
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN organization
websites
Compare revisions
80c2873b4f09de46ee8115c028a08342ef8ed7bd to 247776bf75dfbd9a4e09ce8cc68176b6b8316b04
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
VideoLAN.org/websites
Select target project
No results found
247776bf75dfbd9a4e09ce8cc68176b6b8316b04
Select Git revision
Branches
3.0.18-release
master
Swap
Target
VideoLAN.org/websites
Select target project
VideoLAN.org/websites
Freso/websites
ePirat/websites
DimStar77/websites
lemourin/websites
kwizart/websites
cmassiot/websites
fcartegnie/websites
mfkl/websites
chouquette/websites
maybesamuel43/websites
xslidian/websites
realRojSerbest/websites
Aza/websites
azchohfi/websites
VegaMex/websites
m/websites
fkuehne/websites
Roman-Gemini95/websites
Jamesguru/websites
dillmo71/websites
anodsaod/websites
jill/websites
Garf/websites
atas70835/websites
mahdiabdolahi01234/websites
pbo-linaro/websites
OctopusET/websites
28 results
80c2873b4f09de46ee8115c028a08342ef8ed7bd
Select Git revision
Branches
3.0.18-release
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Added ARM64 version verification on the home page.
· 5a7c6505
Alexandre Zollinger Chohfi
authored
4 years ago
and
Jean-Baptiste Kempf
committed
4 years ago
5a7c6505
Applied error handling, per feedback.
· 247776bf
Alexandre Zollinger Chohfi
authored
4 years ago
and
Jean-Baptiste Kempf
committed
4 years ago
247776bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
www.videolan.org/include/os-specific.php
+28
-3
28 additions, 3 deletions
www.videolan.org/include/os-specific.php
with
28 additions
and
3 deletions
www.videolan.org/include/os-specific.php
View file @
247776bf
<?php
$win32version
=
'3.0.11'
;
$winArm64version
=
'4.0.0-dev-20180508'
;
$macosxversion
=
'3.0.11.1'
;
$oldmacosxversion
=
'2.0.10'
;
$version
=
'3.0.11'
;
...
...
@@ -11,6 +12,7 @@ $winrtversion = '3.1.2';
$dlBase
=
"//get.videolan.org/vlc"
;
$windowsLocation
=
"
$dlBase
/
$win32version
/win32/vlc-
$win32version
-win32.exe"
;
$windows64Location
=
"
$dlBase
/
$win32version
/win64/vlc-
$win32version
-win64.exe"
;
$windowsArm64Location
=
"http://people.videolan.org/~jb/Builds/ARM/vlc-
$winArm64version
-aarch64.zip"
;
$osxLocation
=
"
$dlBase
/
$macosxversion
/macosx/vlc-
$macosxversion
.dmg"
;
function
replaceDLinfos
(
$downloadButton
=
"#downloadButton"
)
...
...
@@ -49,9 +51,24 @@ function replaceDLinfos( $downloadButton = "#downloadButton" )
navigator
.
userAgent
.
indexOf
(
'
AMD64
'
)
>-
1
||
navigator
.
userAgent
.
indexOf
(
'
WOW64
'
)
>-
1
))
OS
=
"
windows64
"
;
else
OS
=
"
windows
"
;
{
OS
=
"
windows64
"
;
}
else
{
if
(
window
.
external
&&
window
.
external
.
getHostEnvironmentValue
&&
window
.
external
.
getHostEnvironmentValue
(
'
os-architecture
'
).
indexOf
(
"
ARM64
"
)
!==
-
1
)
{
OS
=
"
windowsarm64
"
;
}
else
{
try
{
var
canvas
=
document
.
createElement
(
'
canvas
'
);
var
gl
=
canvas
.
getContext
(
'
webgl
'
);
var
debugInfo
=
gl
.
getExtension
(
'
WEBGL_debug_renderer_info
'
);
var
renderer
=
gl
.
getParameter
(
debugInfo
.
UNMASKED_RENDERER_WEBGL
);
if
(
renderer
.
indexOf
(
"
Qualcomm
"
)
!==
-
1
)
OS
=
"
windowsarm64
"
;
}
catch
(
e
)
{
}
}
}
}
if
(
navigator
.
appVersion
.
indexOf
(
"
Mac
"
)
!=-
1
)
{
if
(
navigator
.
platform
.
indexOf
(
"
MacPPC
"
)
!=
-
1
||
navigator
.
platform
.
indexOf
(
"
PowerPC
"
)
!=
-
1
)
OS
=
"
osxPPC
"
;
...
...
@@ -113,8 +130,10 @@ function downloadButton()
function
getOS
(
$os
=
null
,
$offset
=
0
,
$count
=
null
,
$encode
=
null
)
{
global
$windowsLocation
;
global
$windows64Location
;
global
$windowsArm64Location
;
global
$osxLocation
;
global
$win32version
;
global
$winArm64version
;
global
$version
;
global
$macosxversion
;
global
$oldmacosxversion
;
...
...
@@ -136,6 +155,12 @@ function getOS($os = null, $offset = 0, $count = null, $encode = null) {
"latestVersion"
=>
$win32version
,
"location"
=>
$windows64Location
),
"windowsarm64"
=>
array
(
"name"
=>
"Windows ARM 64"
,
"size"
=>
'58 MB'
,
"latestVersion"
=>
$winArm64version
,
"location"
=>
$windowsArm64Location
),
"windowsphone"
=>
array
(
"name"
=>
"Windows Phone"
,
"latestVersion"
=>
$winrtversion
,
...
...
This diff is collapsed.
Click to expand it.