]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - plugins/playvideos/README.md
Merge pull request #812 from ArthurHoaro/theme/configure-valign
[github/shaarli/Shaarli.git] / plugins / playvideos / README.md
CommitLineData
b17c19ff 1### ► Play Videos plugin for Shaarli
b17c19ff 2
a33c5744 3Adds a `► Play Videos` button to [Shaarli](https://github.com/shaarli/Shaarli)'s toolbar. Click this button to play all videos on the page in an overlay HTML5 player. Nice for continuous stream of music, documentaries, talks...
4
5<!-- TODO screenshot -->
b17c19ff 6
a33c5744 7This uses code from https://zaius.github.io/youtube_playlist/ and is currently only compatible with Youtube videos.
b17c19ff
A
8
9#### Installation and setup
b17c19ff 10
a33c5744 11This is a default Shaarli plugin, you just have to enable it. See https://github.com/shaarli/Shaarli/wiki/Shaarli-configuration/
b17c19ff 12
b17c19ff
A
13
14#### Troubleshooting
a33c5744 15
b17c19ff 16If your server has [Content Security Policy](http://content-security-policy.com/) headers enabled, this may prevent the script from loading fully. You should relax the CSP in your server settings. Example CSP rule for apache2:
b17c19ff 17
8025c639 18In `/etc/apache2/conf-available/shaarli-csp.conf`:
19
20```apache
21<Directory /path/to/shaarli>
22 Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'"
23</Directory>
24```
25
26Then run `a2enconf shaarli-csp; service apache2 reload`
a33c5744 27
b17c19ff
A
28### License
29```
30File: youtube_playlist.js
31Copyright: (c) 2010-2014, David Kelso <david@kelso.id.au>
32License: The ISC License (http://opensource.org/licenses/ISC)
33
34Files: jquery*.js
35License: MIT License (http://opensource.org/licenses/MIT)
36Copyright: (C) jQuery Foundation and other contributors, https://jquery.com/download/
37
38-----------------------------------------------------
39
40The ISC License (http://opensource.org/licenses/ISC)
41
42Copyright (c) 2010-2014, David Kelso (david at kelso dot id dot au)
43Copyright (c) 2010-2014, nodiscc (nodiscc at gmail dot com)
44
45Permission to use, copy, modify, and/or distribute this software for any
46purpose with or without fee is hereby granted, provided that the above
47copyright notice and this permission notice appear in all copies.
48
49THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
50WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
51MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
52ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
53WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
54ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
55OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE
56
57----------------------------------------------------
58MIT LICENSE
59
60Permission is hereby granted, free of charge, to any person obtaining a copy
61of this software and associated documentation files (the "Software"), to deal
62in the Software without restriction, including without limitation the rights
63to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
64copies of the Software, and to permit persons to whom the Software is
65furnished to do so, subject to the following conditions:
66
67The above copyright notice and this permission notice shall be included in
68all copies or substantial portions of the Software.
69
70THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
71IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
72FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
73AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
74LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
75OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
76THE SOFTWARE.
77
78----------------------------------------------------
a33c5744 79```