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 | 1 | -0/+22 |
| | | | | | | | | | | | | | | | | | | (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 develop | Sam Potts | 2020-03-29 | 3 | -2/+16 |
|\ | | | | | | | | | | | # Conflicts: # package.json # yarn.lock | ||||
| * | Merge pull request #1739 from ydylla/ignore-internal-play-promises | Sam Potts | 2020-03-29 | 1 | -0/+27 |
| |\ | | | | | | | Ignore internal play promises | ||||
| | * | silence all internal play promises | ydylla | 2020-03-23 | 1 | -0/+27 |
| |/ |/| | |||||
| * | Fix prototype used for selector matcher function | Jesper | 2020-03-10 | 1 | -1/+1 |
|/ | |||||
* | Speed settings logic improvements | Sam Potts | 2020-02-10 | 1 | -8/+0 |
| | |||||
* | Focus trap improvements | Sam Potts | 2020-02-09 | 1 | -35/+0 |
| | |||||
* | Clean up speed options logic | Sam Potts | 2020-02-08 | 1 | -0/+8 |
| | |||||
* | Bail out of focus trap if fullscreen is not active | Kimberley Jensen | 2020-02-07 | 1 | -1/+2 |
| | | | | - detailed in https://github.com/sampotts/plyr/issues/1665 | ||||
* | Merge branch 'develop' of github.com:sampotts/plyr into develop | Sam Potts | 2020-01-26 | 1 | -1/+1 |
|\ | |||||
| * | Merge pull request #1655 from laukstein/patch-1 | Sam Potts | 2020-01-22 | 1 | -1/+1 |
| |\ | | | | | | | Uncaught RangeError: Maximum call stack size exceeded | ||||
| | * | Uncaught RangeError: Maximum call stack size exceeded | Binyamin Laukstein | 2020-01-22 | 1 | -1/+1 |
| | | | | | | | | | Fix formatTime infinite loop #1621 | ||||
* | | | Audio style fix | Sam Potts | 2020-01-26 | 1 | -2/+3 |
|/ / | |||||
* / | Fix linting issues | Sam Potts | 2020-01-13 | 1 | -3/+1 |
|/ | |||||
* | File rename and clean up | Sam Potts | 2019-06-21 | 3 | -0/+0 |
| | |||||
* | Aspect ratio tweaks | Sam Potts | 2019-06-03 | 2 | -14/+4 |
| | |||||
* | Repaint clean up | Sam Potts | 2019-06-03 | 1 | -6/+10 |
| | |||||
* | Linting changes | Sam Potts | 2019-06-01 | 6 | -12/+5 |
| | |||||
* | Fix merging class | Sam Potts | 2019-04-25 | 1 | -7/+8 |
| | |||||
* | Ratio improvements | Sam Potts | 2019-04-25 | 1 | -2/+8 |
| | |||||
* | Increase speed limits | Sam Potts | 2019-04-15 | 1 | -0/+17 |
| | |||||
* | Aspect ratio improvements (fixes #1042, fixes #1366) | Sam Potts | 2019-04-12 | 1 | -14/+53 |
| | |||||
* | Jsdoc updates | Sam Potts | 2019-02-23 | 1 | -2/+2 |
| | |||||
* | Ads bug fixes | Sam Potts | 2019-02-01 | 1 | -0/+2 |
| | |||||
* | Tweaks | Sam Potts | 2019-01-26 | 1 | -4/+4 |
| | |||||
* | Fullscreen fixes | Sam Potts | 2019-01-14 | 2 | -0/+41 |
| | |||||
* | fix: Use Math.trunc instead of parseInt | Jimmy Jia | 2018-12-20 | 1 | -3/+3 |
| | |||||
* | Prevent scroll on focus | Sam Potts | 2018-11-03 | 1 | -1/+1 |
| | |||||
* | Allow custom download URL (for streaming, etc) | Sam Potts | 2018-10-24 | 1 | -0/+5 |
| | |||||
* | Moved hardcoded resources to i18n | Sam Potts | 2018-09-28 | 1 | -0/+13 |
| | |||||
* | Clean up | Sam Potts | 2018-09-25 | 2 | -4/+2 |
| | |||||
* | Moved i18n to utils | Sam Potts | 2018-08-13 | 1 | -0/+34 |
| | |||||
* | Fix issue where enter key wasn’t setting focus correctly | Sam Potts | 2018-08-05 | 1 | -18/+4 |
| | |||||
* | Escape closes menu | Sam Potts | 2018-08-01 | 1 | -0/+2 |
| | |||||
* | Linting | Sam Potts | 2018-08-01 | 1 | -71/+10 |
| | |||||
* | Click to play fix, poster fix, iOS controls fixes | Sam Potts | 2018-07-30 | 1 | -4/+10 |
| | |||||
* | Keyboard and focus improvements | Sam Potts | 2018-07-15 | 2 | -28/+94 |
| | |||||
* | Merge branch 'develop' into a11y-improvements | Sam Potts | 2018-07-02 | 1 | -1/+1 |
|\ | |||||
| * | Linting, housekeeping, duration fix (fixes #1074) | Sam Potts | 2018-06-29 | 1 | -1/+1 |
| | | |||||
* | | Work on key bindings for menu | Sam Potts | 2018-06-28 | 1 | -0/+15 |
| | | |||||
* | | Merge branch 'develop' into a11y-improvements | Sam Potts | 2018-06-25 | 1 | -58/+54 |
|\| | | | | | | | | | | | | | | | | | | | | | | | | | # 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/listeners.js | ||||
| * | Ads only on HTML5 and .is cleanup | Sam Potts | 2018-06-21 | 1 | -58/+54 |
| | | |||||
* | | Merge branch 'develop' into a11y-improvements | Sam Potts | 2018-06-18 | 2 | -1/+2 |
|\| | | | | | | | | | | | | | # Conflicts: # dist/plyr.js.map # dist/plyr.min.js # dist/plyr.min.js.map | ||||
| * | v3.3.14 | Sam Potts | 2018-06-18 | 2 | -1/+2 |
| | | |||||
* | | Work on controls | Sam Potts | 2018-06-18 | 1 | -1/+12 |
|/ | |||||
* | Merge branch 'develop' into a11y-improvements | Sam Potts | 2018-06-17 | 2 | -23/+1 |
| | | | | | | | | | | | | | | | | | # 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 upgrade | Sam Potts | 2018-06-17 | 4 | -6/+18 |
| | |||||
* | Add 'ready' promise | Albin Larsson | 2018-06-15 | 1 | -0/+6 |
| | |||||
* | Filter out null / undefined in elements.setAttributes | Albin Larsson | 2018-06-15 | 1 | -3/+5 |
| | |||||
* | Remove line breaks in arrays | Albin Larsson | 2018-06-13 | 2 | -8/+2 |
| |