aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/config/defaults.js
Commit message (Collapse)AuthorAgeFilesLines
* This is a PR to allow for contextual content to be included in fullscreen ↵Som Meaden2020-04-041-0/+3
| | | | | | | | | | | | | | | | | | (or fallback) mode. This means arbitrary elements (extensions to the basic player UI) can be overlaid and remain visible when the player switches to fullscreen. Example use-cases include: - display of video title or other metadata (see the included demo) - alternative access to menu items, such as a searchable captions list (in cases where many hundreds of languages are available) - custom share dialogs - integrated playlists with 'playing next' overlays This approach / PR is just an example of how this feature could work and aims to keep Plyr complexity to a minimum (while enabling some fairly interesting integrations). It utilises a single config option, and does away with the need for injecting bespoke APIs or elements into the player context on a per-project basis. Or trying to mess with what is a pretty slick, but tightly coupled system. For the user: A new `fullscreen.container` attribute is used to provide a container selector. The container must be an ancestor of the player, otherwise it's ignored. When toggling fullscreen mode, this container is now used in place of the player. Hovering over any children of the container is the same as hovering over the controls. The exception is where the player and the child share a common ancestor (that's not the fullscreen container) ... sounds complex but it's not. You can also gain pretty fine control this way with pointer events. Under the hood: it adds a `utils/elements/closest` helper method to find the right ancestor. If found this is returned as the fullscreen target in place of the player container. Fullscreen is instantiated slightly earlier in the setup so this container is available for the `listeners.controls` call. In here we add some more 'mouseenter/mouseleave' listeners to any direct descendants of the container, that aren't also ancestors of the player. And that's it. No extra classes, nothing else. There are some style changes to the demo (top margin on the player) but these would be project specific. Thanks for reading.
* v3.5.10Sam Potts2020-02-141-1/+1
|
* v3.5.9 deployedSam Potts2020-02-141-1/+1
|
* v3.5.8 deployedSam Potts2020-02-101-1/+1
|
* Added vimeo options to hide controls and set referrerPolicySam Potts2020-02-101-0/+5
|
* 3.5.7Sam Potts2020-02-091-1/+1
|
* CommentsSam Potts2020-02-091-1/+1
|
* Clean up speed options logicSam Potts2020-02-081-1/+3
|
* Deployed 3.5.7-beta.0Sam Potts2020-01-301-1/+1
|
* Manually merged PR #1607Sam Potts2020-01-141-0/+2
|
* Update defaults.jsBaskerville*2019-09-061-0/+1
| | | update defaults.i18n
* 3.5.6Sam Potts2019-06-211-1/+1
|
* v3.5.5 deployedSam Potts2019-06-211-1/+1
|
* Merge branch 'master' into developSam Potts2019-06-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # .eslintrc # demo/dist/demo.css # demo/dist/demo.js # demo/dist/demo.min.js # demo/dist/demo.min.js.map # dist/plyr.css # dist/plyr.js # dist/plyr.min.js # dist/plyr.min.js.map # dist/plyr.min.mjs # dist/plyr.min.mjs.map # dist/plyr.mjs # dist/plyr.polyfilled.js # dist/plyr.polyfilled.min.js # dist/plyr.polyfilled.min.js.map # dist/plyr.polyfilled.min.mjs # dist/plyr.polyfilled.min.mjs.map # dist/plyr.polyfilled.mjs # package.json # readme.md # src/js/listeners.js # yarn.lock
| * v3.5.4Sam Potts2019-04-251-1/+1
| |
* | Styling tweaks for demoSam Potts2019-06-201-1/+1
| |
* | Add duration (commented out) in defaultsSam Potts2019-06-031-0/+1
|/
* Clean up and API changeSam Potts2019-04-251-11/+2
|
* 3.5.3Sam Potts2019-04-121-1/+1
|
* Aspect ratio improvements (fixes #1042, fixes #1366)Sam Potts2019-04-121-2/+4
|
* Fixed issue where the preview thumbnail was present while scrubbingSam Potts2019-02-241-1/+1
|
* v3.5.1Sam Potts2019-02-231-1/+1
|
* Deployed v3.5.0Sam Potts2019-02-191-1/+1
|
* Fix linksSam Potts2019-02-191-1/+1
|
* Fix deploymentSam Potts2019-02-121-1/+1
|
* Ads bug fixesSam Potts2019-02-011-1/+1
|
* TweaksSam Potts2019-01-261-3/+9
|
* Merge branch 'develop' into issues/1316-allow-to-customize-vimeo-url-paramsSam Potts2019-01-261-1/+3
|\
| * Docs for preview thumbsSam Potts2019-01-261-0/+1
| |
| * Merge branch 'master' into developSam Potts2019-01-261-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # changelog.md # demo/dist/demo.js.map # demo/dist/demo.min.js # demo/dist/demo.min.js.map # demo/index.html # dist/plyr.js.map # dist/plyr.min.js # dist/plyr.min.js.map # dist/plyr.polyfilled.js # dist/plyr.polyfilled.js.map # dist/plyr.polyfilled.min.js # dist/plyr.polyfilled.min.js.map # package.json # readme.md # yarn.lock
| | * v3.4.8Sam Potts2019-01-171-1/+1
| | | | | | | | | | | | - Calling customized controls function with proper arguments (thanks @a60814billy)
| * | Plugin tweaks for ads and previewsSam Potts2019-01-261-0/+1
| | |
* | | Adds options for vimeo plugin #1316Christian Gambardella2019-01-241-0/+9
|/ / | | | | | | This adds replaces hard coded vimeo options with options that can be passed to the Plyr instance when initializing.
* | Style tweaks for preview pluginSam Potts2019-01-221-2/+4
| |
* | Preview design tweaksSam Potts2019-01-211-4/+7
| |
* | Fullscreen fixesSam Potts2019-01-141-1/+1
| |
* | Merge branch 'develop' into masterSam Potts2019-01-061-1/+12
|\ \
| * \ Merge pull request #1253 from jamesoflol/preview-thumbsSam Potts2018-12-151-0/+10
| |\ \ | | |/ | |/| Preview seek/scrubbing thumbnails
| | * Preview seek: Edge+IE11 fixesJames2018-12-151-2/+5
| | | | | | | | | | | | | | | - Fixed bug: Edge seek errors: Replaced array spread with Array.from() - Fixed IE11 bug: seek time was offset to the left. Required an extra container div to facilitate this
| | * Preview seek/scrubbing thumbnailsJames2018-11-121-0/+7
| | |
* | | support Youtube noCookie ModeOmar Khatib2018-12-131-0/+2
|/ /
* / v3.4.7Sam Potts2018-11-081-1/+1
|/ | | | - Fix for Vimeo fullscreen with non native aspect ratios (fixes #854)
* v3.4.6Sam Potts2018-10-251-1/+1
| | | | | - Added picture-in-picture support for Chrome 70+ - Fixed issue with versioning the SVG sprite in the gulp build script
* Allow custom download URL (for streaming, etc)Sam Potts2018-10-241-1/+2
|
* Added download buttonSam Potts2018-09-281-0/+5
|
* Removed YouTube quality controlsSam Potts2018-08-131-14/+3
|
* More work on menusSam Potts2018-06-181-0/+3
|
* Merge branch 'develop' into a11y-improvementsSam Potts2018-06-171-0/+7
| | | | | | | | | | | | | | | | | # Conflicts: # dist/plyr.js # dist/plyr.js.map # dist/plyr.min.js # dist/plyr.min.js.map # dist/plyr.polyfilled.js # dist/plyr.polyfilled.js.map # dist/plyr.polyfilled.min.js # dist/plyr.polyfilled.min.js.map # src/js/controls.js # src/js/fullscreen.js # src/js/plyr.js # src/js/ui.js # src/js/utils.js
* 120 line width, package upgradeSam Potts2018-06-171-1/+2
|
* Remove line breaks in arraysAlbin Larsson2018-06-131-14/+2
|