1 ### ► Play Videos plugin for Shaarli
3 Adds 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...
5 <!-- TODO screenshot -->
7 This uses code from https://zaius.github.io/youtube_playlist/ and is currently only compatible with Youtube videos.
9 #### Installation and setup
11 This is a default Shaarli plugin, you just have to enable it. See https://github.com/shaarli/Shaarli/wiki/Shaarli-configuration/
16 If 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:
18 In `/etc/apache2/conf-available/shaarli-csp.conf`:
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'"
26 Then run `a2enconf shaarli-csp; service apache2 reload`
30 File: youtube_playlist.js
31 Copyright: (c) 2010-2014, David Kelso <david@kelso.id.au>
32 License: The ISC License (http://opensource.org/licenses/ISC)
35 License: MIT License (http://opensource.org/licenses/MIT)
36 Copyright: (C) jQuery Foundation and other contributors, https://jquery.com/download/
38 -----------------------------------------------------
40 The ISC License (http://opensource.org/licenses/ISC)
42 Copyright (c) 2010-2014, David Kelso (david at kelso dot id dot au)
43 Copyright (c) 2010-2014, nodiscc (nodiscc at gmail dot com)
45 Permission to use, copy, modify, and/or distribute this software for any
46 purpose with or without fee is hereby granted, provided that the above
47 copyright notice and this permission notice appear in all copies.
49 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
50 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
51 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
52 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
53 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
54 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
55 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE
57 ----------------------------------------------------
60 Permission is hereby granted, free of charge, to any person obtaining a copy
61 of this software and associated documentation files (the "Software"), to deal
62 in the Software without restriction, including without limitation the rights
63 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
64 copies of the Software, and to permit persons to whom the Software is
65 furnished to do so, subject to the following conditions:
67 The above copyright notice and this permission notice shall be included in
68 all copies or substantial portions of the Software.
70 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
71 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
72 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
73 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
74 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
75 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
78 ----------------------------------------------------