aboutsummaryrefslogtreecommitdiffstats
path: root/demo/dist/demo.js
Commit message (Collapse)AuthorAgeFilesLines
* This is a PR to allow for contextual content to be included in fullscreen ↵Som Meaden2020-04-041-10/+53
| | | | | | | | | | | | | | | | | | (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.
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2020-03-291-341/+633
|\ | | | | | | | | | | # Conflicts: # package.json # yarn.lock
| * BuildSam Potts2020-03-271-2069/+1766
|/
* v3.5.10Sam Potts2020-02-141-1/+1
|
* v3.5.9 deployedSam Potts2020-02-141-2/+7
|
* StylesSam Potts2020-02-131-3/+0
|
* v3.5.8 deployedSam Potts2020-02-101-768/+1190
|
* 3.5.7Sam Potts2020-02-091-907/+1063
|
* Deployed 3.5.7-beta.0Sam Potts2020-01-301-1/+3
|
* Prepare for 3.5.7 releaseSam Potts2020-01-301-830/+773
|
* Added local server, package upgradesSam Potts2020-01-131-645/+1132
|
* 3.5.6Sam Potts2019-06-211-583/+729
|
* v3.5.5 deployedSam Potts2019-06-211-1/+1
|
* Clean upSam Potts2019-06-211-3/+2
|
* Merge branch 'master' into developSam Potts2019-06-201-381/+510
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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-388/+507
| |
* | Styling tweaks for demoSam Potts2019-06-201-19/+21
| |
* | Demo tweaksSam Potts2019-06-031-5/+12
| |
* | Demo tweaksSam Potts2019-06-031-1/+5
| |
* | Demo clean upSam Potts2019-06-021-671/+12431
| |
* | Clean upSam Potts2019-06-011-21/+17
| |
* | Linting changesSam Potts2019-06-011-454/+582
|/
* 3.5.3Sam Potts2019-04-121-79/+171
|
* HousekeepingSam Potts2019-03-161-34/+55
|
* Fixed issue where the preview thumbnail was present while scrubbingSam Potts2019-02-241-4/+7
|
* v3.5.1Sam Potts2019-02-231-1776/+1561
|
* Deployed v3.5.0Sam Potts2019-02-191-1/+1
|
* Fix linksSam Potts2019-02-191-1/+1
|
* Update build processSam Potts2019-02-191-11/+5
|
* Added RangeTouch, updated Shr lib in demoSam Potts2019-02-191-278/+554
|
* Fix deploymentSam Potts2019-02-121-1/+1
|
* Fix for cue points missingSam Potts2019-02-071-74/+59
|
* Ads bug fixesSam Potts2019-02-011-51/+77
|
* Fix listeners for preview thumbs when changing sourceSam Potts2019-01-291-107/+159
|
* PathsSam Potts2019-01-271-1/+1
|
* Added ES buildsSam Potts2019-01-271-2/+8534
|
* Merge branch 'master' into developSam Potts2019-01-261-26/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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
| * Fix analyticsSam Potts2019-01-171-14/+1
| |
| * Fix GASam Potts2019-01-171-6/+2
| |
| * v3.4.8Sam Potts2019-01-171-18/+9
| | | | | | | | - Calling customized controls function with proper arguments (thanks @a60814billy)
* | Built filesSam Potts2019-01-261-4/+2
| |
* | Plugin tweaks for ads and previewsSam Potts2019-01-261-2/+4
| |
* | Preview design tweaksSam Potts2019-01-211-0/+4
|/
* v3.4.4Sam Potts2018-09-251-244/+230
| | | | | | - Fixed issue with double binding for `click` and `touchstart` for `clickToPlay` option - Improved "faux" fullscreen on iPhone X/XS phones with notch - Babel 7 upgrade (which reduced the polyfilled build by ~10kb!)
* v3.4.0Sam Potts2018-08-141-2/+3
| | | | | | | | | | | - Accessibility improvements (see #905) - Improvements to the way the controls work on iOS - Demo code clean up - YouTube quality selection removed due to their poor support for it. As a result, the `qualityrequested` event has been removed - Controls spacing improvements - Fix for pressed property missing with custom controls (Fixes #1062) - Fix #1153: Captions language fallback (thanks @friday) - Fix for setting pressed property of undefined (Fixes #1102)
* v3.4.0-beta.1Sam Potts2018-08-021-59/+13
|
* BuildSam Potts2018-08-011-3/+2
|
* Fix mergeSam Potts2018-07-301-0/+4416
|
* Merge branch 'develop' into a11y-improvementsSam Potts2018-07-301-4410/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # demo/dist/demo.css # dist/plyr.css # dist/plyr.js.map # dist/plyr.min.js # dist/plyr.min.js.map # dist/plyr.polyfilled.js.map # dist/plyr.polyfilled.min.js # dist/plyr.polyfilled.min.js.map # package.json # src/js/plyr.js
| * 3.3.17Sam Potts2018-07-181-2/+9
| |