Landscape mode for mobile on fullscreen videos; autoplay

This commit is contained in:
Nicolò P 2021-09-20 13:06:18 +02:00
parent e10e343b3b
commit a7b631231b
7 changed files with 13 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
spectre*/
*.zip
*.ttf
*_old*
*_old*
*_bak*

View File

@ -75,7 +75,7 @@
Con la partecipazione degli <strong>abitanti di Fara in Sabina</strong>.
</p>
<p>
<strong>Fonica:</strong> Alessandro Rosato (Teatro Potlach), Daniele Ferdani (CR ISPC)
<strong>Fonica:</strong> Alessandro Rosato (Teatro Potlach), Daniele Ferdani (CNR ISPC)
</p>
<p>
<strong>Aiuto alla produzione:</strong> Alfonsina Pagano, Daniele Ferdani (CNR ISPC)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 759 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 762 KiB

After

Width:  |  Height:  |  Size: 657 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 KiB

After

Width:  |  Height:  |  Size: 762 KiB

View File

@ -72,4 +72,13 @@ if (window.location.href.includes('credits')) {
document.addEventListener('readystatechange', () => {
Farapp.slideshow();
});
}
/**
* Landscape orientation when fullscreen?!
* @todo Reliable check for mobile???
*/
if ("maxTouchPoints" in navigator) {
document.addEventListener('fullscreenchange', () => {
screen.orientation.lock('landscape');
});
}

View File

@ -19,7 +19,7 @@
</div>
</div>
<div class="container">
<video class="video-responsive" controls>
<video class="video-responsive" controls autoplay>
<source src="" type="video/mp4">
Il browser non supporta i video integrati
</video>