]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - plugins/playvideos/README.md
**General rewording, proof-reading, deduplication, shortening, reordering, simplifica...
[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
91a21c27 11This is a default Shaarli plugin, you just have to enable it. See [Shaarli configuration](../../doc/md/Shaarli-configuration.md).
b17c19ff 12
b17c19ff
A
13
14#### Troubleshooting
a33c5744 15
91a21c27 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:
8025c639 17
18```apache
19<Directory /path/to/shaarli>
91a21c27 20 # Required for playvideos plugin
8025c639 21 Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'"
22</Directory>
23```
24
91a21c27 25You may place the `Header` directive in the `<Directory...` section of your [webserver configuration](../../doc/md/Server-configuration.md)/virtualhost file, or write the above snippet to `/etc/apache2/conf-available/shaarli-csp.conf`; then run `a2enconf shaarli-csp; service apache2 reload`.
a33c5744 26
b17c19ff
A
27### License
28```
29File: youtube_playlist.js
30Copyright: (c) 2010-2014, David Kelso <david@kelso.id.au>
31License: The ISC License (http://opensource.org/licenses/ISC)
32
33Files: jquery*.js
34License: MIT License (http://opensource.org/licenses/MIT)
35Copyright: (C) jQuery Foundation and other contributors, https://jquery.com/download/
36
37-----------------------------------------------------
38
39The ISC License (http://opensource.org/licenses/ISC)
40
41Copyright (c) 2010-2014, David Kelso (david at kelso dot id dot au)
42Copyright (c) 2010-2014, nodiscc (nodiscc at gmail dot com)
43
44Permission to use, copy, modify, and/or distribute this software for any
45purpose with or without fee is hereby granted, provided that the above
46copyright notice and this permission notice appear in all copies.
47
48THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
49WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
50MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
51ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
52WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
53ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
54OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE
55
56----------------------------------------------------
57MIT LICENSE
58
59Permission is hereby granted, free of charge, to any person obtaining a copy
60of this software and associated documentation files (the "Software"), to deal
61in the Software without restriction, including without limitation the rights
62to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
63copies of the Software, and to permit persons to whom the Software is
64furnished to do so, subject to the following conditions:
65
66The above copyright notice and this permission notice shall be included in
67all copies or substantial portions of the Software.
68
69THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
71FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
72AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
73LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
74OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
75THE SOFTWARE.
76
77----------------------------------------------------
a33c5744 78```