aboutsummaryrefslogtreecommitdiffstats
path: root/demo
Commit message (Collapse)AuthorAgeFilesLines
* This is a PR to allow for contextual content to be included in fullscreen ↵Som Meaden2020-04-045-12/+145
| | | | | | | | | | | | | | | | | | (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.
* Added prettier scriptSam Potts2020-03-291-1/+1
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2020-03-294-345/+637
|\ | | | | | | | | | | # Conflicts: # package.json # yarn.lock
| * BuildSam Potts2020-03-274-2073/+1770
|/
* v3.5.10Sam Potts2020-02-143-3/+3
|
* v3.5.10Sam Potts2020-02-141-1/+1
| | | | - iOS volume display fix
* v3.5.9 deployedSam Potts2020-02-143-4/+9
|
* v3.5.9Sam Potts2020-02-143-3/+3
| | | | | - Fix for regression with volume control width - Ensure poster image is not downloaded again for HTML5 videos
* Merge branch 'master' into developSam Potts2020-02-134-6/+3
|\
| * StylesSam Potts2020-02-134-6/+3
| |
* | Removed redundant keys propertySam Potts2020-02-121-4/+1
|/
* v3.5.8 deployedSam Potts2020-02-104-772/+1194
|
* Update demo videoSam Potts2020-02-102-2/+3
|
* Demo packages updatedSam Potts2020-02-101-2/+2
|
* Set referrerPolicy in the demoSam Potts2020-02-101-0/+4
|
* 3.5.7Sam Potts2020-02-093-910/+1066
|
* Deployed 3.5.7-beta.0Sam Potts2020-01-303-3/+5
|
* Prepare for 3.5.7 releaseSam Potts2020-01-305-835/+778
|
* Merge pull request #1653 from thatrobotdev/patch-2Sam Potts2020-01-221-1/+1
|\ | | | | Patch 2
| * Change vimeo demo videoJames Kerrane2020-01-211-1/+1
| | | | | | Change vimeo video to a more general video, fix #1626.
* | Added local server, package upgradesSam Potts2020-01-136-650/+1139
|/
* Update index.htmlFilip Petrovic2019-07-111-1/+1
|
* 3.5.6Sam Potts2019-06-216-601/+747
|
* v3.5.5 deployedSam Potts2019-06-213-3/+3
|
* File rename and clean upSam Potts2019-06-211-1/+1
|
* Clean upSam Potts2019-06-213-5/+4
|
* Merge branch 'master' into developSam Potts2019-06-204-384/+513
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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
| * Linting changesSam Potts2019-04-301-1/+1
| |
| * v3.5.4Sam Potts2019-04-254-391/+510
| |
* | Styling tweaks for demoSam Potts2019-06-2014-48/+71
| |
* | Demo tweaksSam Potts2019-06-035-9/+16
| |
* | Demo tweaksSam Potts2019-06-0312-23/+44
| |
* | Demo clean upSam Potts2019-06-0217-885/+12632
| |
* | Fixed cite displaySam Potts2019-06-022-16/+4
| |
* | Packages for demo separatedSam Potts2019-06-024-21/+47
| |
* | Clean upSam Potts2019-06-016-27/+22
| |
* | Linting changesSam Potts2019-06-016-457/+597
|/
* Use polyfill.io v3Sam Potts2019-04-221-1/+1
|
* 3.5.3Sam Potts2019-04-124-82/+174
|
* HousekeepingSam Potts2019-03-163-36/+57
|
* Fixed issue where the preview thumbnail was present while scrubbingSam Potts2019-02-243-6/+9
|
* v3.5.1Sam Potts2019-02-234-1779/+1564
|
* Deployed v3.5.0Sam Potts2019-02-193-3/+3
|
* Fix linksSam Potts2019-02-193-3/+3
|
* Update build processSam Potts2019-02-195-24/+11
|
* Added RangeTouch, updated Shr lib in demoSam Potts2019-02-195-293/+561
|
* Fix deploymentSam Potts2019-02-123-3/+3
|
* Fix for cue points missingSam Potts2019-02-073-76/+61
|
* Ads bug fixesSam Potts2019-02-014-55/+88
|
* Fix listeners for preview thumbs when changing sourceSam Potts2019-01-294-120/+161
|