Mercurial > libervia-web
annotate libervia/server/launcher.py @ 1344:472267dcd4d8
browser (alt_media_player): native player support + poster + flags + restricted area:
- alt_media_player will now use native player when possible. This allows to use its controls
and behaviour instead of native ones.
- a poster can be specified when instanciated manually
- video is not preloaded anymore
- handle events propagation to plays nicely when used in slideshow
- a "restricted area" mode can be used to let click propagation on video border, and thus
catch only play/pause in the center. This is notably useful when used in the slideshow,
as border can be used to show/hide slideshow controls
- player can be reset, in which case the play button overlay is put back, and video
is put at its beginning
- once video is played at least once, a `in_use` class is added to the element, play
button overlay is removed then. This fix a bug when the overlay was still appearing when
using bottom play button.
- VideoPlayer has been renamed to MediaPlayer
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 24 Aug 2020 23:04:35 +0200 |
parents | 3a3f3bccd65b |
children | 822bd0139769 |
rev | line source |
---|---|
1272
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 #!/usr/bin/env python3 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 # Libervia: a Salut à Toi frontend |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 # Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org) |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 # This program is free software: you can redistribute it and/or modify |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 # it under the terms of the GNU Affero General Public License as published by |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 # the Free Software Foundation, either version 3 of the License, or |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 # (at your option) any later version. |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 # This program is distributed in the hope that it will be useful, |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 # GNU Affero General Public License for more details. |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 # You should have received a copy of the GNU Affero General Public License |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 """Script launching Libervia server""" |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 from sat.core import launcher |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 from libervia.server.constants import Const as C |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 class Launcher(launcher.Launcher): |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 APP_NAME=C.APP_NAME |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 APP_NAME_FILE=C.APP_NAME_FILE |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
28 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
29 |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
30 if __name__ == '__main__': |
3a3f3bccd65b
server: Libervia server is now launched with a Python script, following backend change
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
31 Launcher.run() |