Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | This is a PR to allow for contextual content to be included in fullscreen ↵ | Som Meaden | 2020-04-04 | 5 | -5/+47 |
| | | | | | | | | | | | | | | | | | | (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 script | Sam Potts | 2020-03-29 | 1 | -4/+23 |
| | |||||
* | Merge branch 'develop' of github.com:sampotts/plyr into develop | Sam Potts | 2020-03-29 | 13 | -38/+109 |
|\ | | | | | | | | | | | # Conflicts: # package.json # yarn.lock | ||||
| * | Merge pull request #1686 from lawchihon/master | Sam Potts | 2020-03-29 | 1 | -0/+1 |
| |\ | | | | | | | Added missing full screen options for type definition | ||||
| | * | Added missing full screen options for type definition | John Law | 2020-02-12 | 1 | -0/+1 |
| | | | |||||
| * | | Merge pull request #1697 from hug963/fix-vimeo-playback-rate | Sam Potts | 2020-03-29 | 1 | -0/+3 |
| |\ \ | | | | | | | | | Fix vimeo playback rate | ||||
| | * | | catch error in setPlaybackRate on Vimeo | Hugues | 2020-02-20 | 1 | -0/+3 |
| | | | | |||||
| * | | | Merge pull request #1724 from Steejo/ads-plugin-fixes | Sam Potts | 2020-03-29 | 1 | -12/+21 |
| |\ \ \ | | | | | | | | | | | Ads plugin fixes to allow multiple VAST requests | ||||
| | * | | | Ads plugin fixes to allow multiple VAST requests | Steejo | 2020-03-09 | 1 | -12/+21 |
| | | | | | |||||
| * | | | | Merge pull request #1705 from doublex/master | Sam Potts | 2020-03-29 | 1 | -7/+22 |
| |\ \ \ \ | | | | | | | | | | | | | preview-thumbnails via src:callback() | ||||
| | * | | | | Fixes2 | max | 2020-02-26 | 1 | -4/+4 |
| | | | | | | |||||
| | * | | | | Fixes | max | 2020-02-26 | 1 | -6/+9 |
| | | | | | | |||||
| | * | | | | preview-thumbnails via src:callback() | max | 2020-02-25 | 1 | -7/+19 |
| |/ / / / |/| | | | | |||||
| * | | | | Merge pull request #1739 from ydylla/ignore-internal-play-promises | Sam Potts | 2020-03-29 | 6 | -10/+42 |
| |\ \ \ \ | | | | | | | | | | | | | Ignore internal play promises | ||||
| | * | | | | silence all internal play promises | ydylla | 2020-03-23 | 6 | -10/+42 |
| | |/ / / | |||||
| * | | | | Merge pull request #1727 from jnoordsij/fix_shadowroot | Sam Potts | 2020-03-29 | 2 | -2/+2 |
| |\ \ \ \ | | |/ / / | |/| | | | Fix shadowroot | ||||
| | * | | | Compare fullscreenElement with shadowroot host if player is in shadow DOM | Jesper | 2020-03-10 | 1 | -1/+1 |
| | | | | | |||||
| | * | | | Fix prototype used for selector matcher function | Jesper | 2020-03-10 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Merge pull request #1706 from sampotts/master | Sam Potts | 2020-02-26 | 1 | -4/+3 |
| |\| | | | | | | | | | | | | | Merge back | ||||
| | * | | | Use number instead of string in TS quality definitions | Morgan Zolob | 2020-02-24 | 1 | -4/+3 |
| |/ / / |/| | | | | | | | Using strings for the quality doesn't work, plyr expects numbers, so this fixes the definitions. | ||||
| * | | | Merge pull request #1704 from hug963/add-missing-ts-types | Sam Potts | 2020-02-26 | 1 | -0/+25 |
| |\ \ \ | | | | | | | | | | | Add missing Typescripts types and options | ||||
| | * | | | Add missing Typescripts types and options | Hugues | 2020-02-25 | 1 | -0/+25 |
| | |/ / | |||||
| * / / | Completely hide SVG icons to screen readers | Benoît Burgener | 2020-02-25 | 1 | -1/+1 |
| |/ / | | | | | | | | | | SVG icons should be ignored by screen readers since they have complimentary labels (aria-label or plyr__sr-only). The current « presentation » role simply makes the element behave like a « span » which is incorrect, aria-hidden prevents screen readers from taking care of these elements at all. | ||||
| * / | Fix issue when controls config is string or element | CzBiX | 2020-02-17 | 1 | -1/+2 |
|/ / | |||||
* | | v3.5.10 | Sam Potts | 2020-02-14 | 3 | -3/+3 |
| | | |||||
* | | v3.5.10 | Sam Potts | 2020-02-14 | 1 | -0/+6 |
| | | | | | | | | - iOS volume display fix | ||||
* | | v3.5.9 deployed | Sam Potts | 2020-02-14 | 3 | -3/+3 |
| | | |||||
* | | Merge branch 'master' into develop | Sam Potts | 2020-02-14 | 2 | -8/+8 |
|\ \ | |||||
| * | | Fix for regression with volume control width | Sam Potts | 2020-02-14 | 1 | -8/+3 |
| | | | |||||
| * | | Ensure poster image is not downloaded again for HTML5 videos | Sam Potts | 2020-02-14 | 1 | -0/+5 |
| |/ | |||||
* / | More styles clean up | Sam Potts | 2020-02-12 | 3 | -11/+8 |
|/ | |||||
* | v3.5.8 deployed | Sam Potts | 2020-02-10 | 3 | -3/+3 |
| | |||||
* | Speed settings logic improvements | Sam Potts | 2020-02-10 | 6 | -26/+22 |
| | |||||
* | Menu border color tweak | Sam Potts | 2020-02-10 | 2 | -5/+3 |
| | |||||
* | Comment clean up | Sam Potts | 2020-02-10 | 1 | -2/+2 |
| | |||||
* | Merge branch 'develop' of github.com:sampotts/plyr into develop | Sam Potts | 2020-02-10 | 2 | -5/+37 |
|\ | |||||
| * | Merge pull request #1670 from ydylla/previewThumbnails-setter | Sam Potts | 2020-02-10 | 2 | -4/+25 |
| |\ | | | | | | | Add previewThumbnails source setter | ||||
| | * | add previewThumbnails source setter #1369 | ydylla | 2020-02-01 | 2 | -4/+25 |
| | | | |||||
| * | | Merge pull request #1678 from ydylla/fix-thumb-size-per-css | Sam Potts | 2020-02-10 | 1 | -1/+12 |
| |\ \ | | | | | | | | | Improve thumbnail size calculations when size is set per css | ||||
| | * | | allows to set only width or height for thumb css size | ydylla | 2020-02-08 | 1 | -1/+12 |
| | |/ | | | | | | | Also fixes sprites when css thumb size is used | ||||
* | | | Added vimeo options to hide controls and set referrerPolicy | Sam Potts | 2020-02-10 | 2 | -6/+14 |
| | | | |||||
* | | | SASS orginasation clean up and flex-direction added | Sam Potts | 2020-02-10 | 10 | -225/+218 |
|/ / | |||||
* | | 3.5.7 | Sam Potts | 2020-02-09 | 3 | -3/+3 |
| | | |||||
* | | Docs updates | Sam Potts | 2020-02-09 | 1 | -14/+49 |
| | | |||||
* | | Merge branch 'develop' of github.com:sampotts/plyr into develop | Sam Potts | 2020-02-09 | 1 | -5/+12 |
|\ \ | |||||
| * \ | Merge pull request #1490 from antonyoneill/develop | Sam Potts | 2020-02-09 | 1 | -5/+12 |
| |\ \ | | | | | | | | | Prevent default on settings control click | ||||
| | * | | Prevent default on settings icon click | Antony O'Neill | 2019-07-04 | 1 | -5/+12 |
| | | | | |||||
* | | | | Focus trap improvements | Sam Potts | 2020-02-09 | 2 | -109/+99 |
| | | | | |||||
* | | | | Set download attribute for HTML5 only | Sam Potts | 2020-02-09 | 1 | -1/+5 |
|/ / / | |||||
* | | | Comments | Sam Potts | 2020-02-09 | 1 | -1/+1 |
| | | |