aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* This is a PR to allow for contextual content to be included in fullscreen ↵Som Meaden2020-04-045-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 scriptSam Potts2020-03-291-4/+23
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2020-03-2913-38/+109
|\ | | | | | | | | | | # Conflicts: # package.json # yarn.lock
| * Merge pull request #1686 from lawchihon/masterSam Potts2020-03-291-0/+1
| |\ | | | | | | Added missing full screen options for type definition
| | * Added missing full screen options for type definitionJohn Law2020-02-121-0/+1
| | |
| * | Merge pull request #1697 from hug963/fix-vimeo-playback-rateSam Potts2020-03-291-0/+3
| |\ \ | | | | | | | | Fix vimeo playback rate
| | * | catch error in setPlaybackRate on VimeoHugues2020-02-201-0/+3
| | | |
| * | | Merge pull request #1724 from Steejo/ads-plugin-fixesSam Potts2020-03-291-12/+21
| |\ \ \ | | | | | | | | | | Ads plugin fixes to allow multiple VAST requests
| | * | | Ads plugin fixes to allow multiple VAST requestsSteejo2020-03-091-12/+21
| | | | |
| * | | | Merge pull request #1705 from doublex/masterSam Potts2020-03-291-7/+22
| |\ \ \ \ | | | | | | | | | | | | preview-thumbnails via src:callback()
| | * | | | Fixes2max2020-02-261-4/+4
| | | | | |
| | * | | | Fixesmax2020-02-261-6/+9
| | | | | |
| | * | | | preview-thumbnails via src:callback()max2020-02-251-7/+19
| |/ / / / |/| | | |
| * | | | Merge pull request #1739 from ydylla/ignore-internal-play-promisesSam Potts2020-03-296-10/+42
| |\ \ \ \ | | | | | | | | | | | | Ignore internal play promises
| | * | | | silence all internal play promisesydylla2020-03-236-10/+42
| | |/ / /
| * | | | Merge pull request #1727 from jnoordsij/fix_shadowrootSam Potts2020-03-292-2/+2
| |\ \ \ \ | | |/ / / | |/| | | Fix shadowroot
| | * | | Compare fullscreenElement with shadowroot host if player is in shadow DOMJesper2020-03-101-1/+1
| | | | |
| | * | | Fix prototype used for selector matcher functionJesper2020-03-101-1/+1
| | | | |
| * | | | Merge pull request #1706 from sampotts/masterSam Potts2020-02-261-4/+3
| |\| | | | | | | | | | | | | Merge back
| | * | | Use number instead of string in TS quality definitionsMorgan Zolob2020-02-241-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-typesSam Potts2020-02-261-0/+25
| |\ \ \ | | | | | | | | | | Add missing Typescripts types and options
| | * | | Add missing Typescripts types and optionsHugues2020-02-251-0/+25
| | |/ /
| * / / Completely hide SVG icons to screen readersBenoît Burgener2020-02-251-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 elementCzBiX2020-02-171-1/+2
|/ /
* | v3.5.10Sam Potts2020-02-143-3/+3
| |
* | v3.5.10Sam Potts2020-02-141-0/+6
| | | | | | | | - iOS volume display fix
* | v3.5.9 deployedSam Potts2020-02-143-3/+3
| |
* | Merge branch 'master' into developSam Potts2020-02-142-8/+8
|\ \
| * | Fix for regression with volume control widthSam Potts2020-02-141-8/+3
| | |
| * | Ensure poster image is not downloaded again for HTML5 videosSam Potts2020-02-141-0/+5
| |/
* / More styles clean upSam Potts2020-02-123-11/+8
|/
* v3.5.8 deployedSam Potts2020-02-103-3/+3
|
* Speed settings logic improvementsSam Potts2020-02-106-26/+22
|
* Menu border color tweakSam Potts2020-02-102-5/+3
|
* Comment clean upSam Potts2020-02-101-2/+2
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2020-02-102-5/+37
|\
| * Merge pull request #1670 from ydylla/previewThumbnails-setterSam Potts2020-02-102-4/+25
| |\ | | | | | | Add previewThumbnails source setter
| | * add previewThumbnails source setter #1369ydylla2020-02-012-4/+25
| | |
| * | Merge pull request #1678 from ydylla/fix-thumb-size-per-cssSam Potts2020-02-101-1/+12
| |\ \ | | | | | | | | Improve thumbnail size calculations when size is set per css
| | * | allows to set only width or height for thumb css sizeydylla2020-02-081-1/+12
| | |/ | | | | | | Also fixes sprites when css thumb size is used
* | | Added vimeo options to hide controls and set referrerPolicySam Potts2020-02-102-6/+14
| | |
* | | SASS orginasation clean up and flex-direction addedSam Potts2020-02-1010-225/+218
|/ /
* | 3.5.7Sam Potts2020-02-093-3/+3
| |
* | Docs updatesSam Potts2020-02-091-14/+49
| |
* | Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2020-02-091-5/+12
|\ \
| * \ Merge pull request #1490 from antonyoneill/developSam Potts2020-02-091-5/+12
| |\ \ | | | | | | | | Prevent default on settings control click
| | * | Prevent default on settings icon clickAntony O'Neill2019-07-041-5/+12
| | | |
* | | | Focus trap improvementsSam Potts2020-02-092-109/+99
| | | |
* | | | Set download attribute for HTML5 onlySam Potts2020-02-091-1/+5
|/ / /
* | | CommentsSam Potts2020-02-091-1/+1
| | |