aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/fullscreen.js
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1963 from gurupras/dblclick-fullscreen-custom-listenerSam Potts2020-10-191-1/+1
|\ | | | | Invoke custom listener on double-clicking on video (fullscreen)
| * Invoke custom listener on triggering fullscreen via double-clickGuru Prasad Srinivasa2020-09-231-1/+1
| |
* | chore: update packages and lintingSam Potts2020-08-301-5/+5
|/
* force fullscreen events to trigger on plyr element (media element in iOS) ↵Som Meaden2020-05-051-1/+3
| | | | and not fullscreen container
* Fix linting issuesSam Potts2020-04-241-1/+1
|
* Merge branch 'develop' into css-variablesSam Potts2020-04-241-2/+7
|\ | | | | | | | | | | | | | | | | # Conflicts: # src/js/captions.js # src/js/config/defaults.js # src/js/fullscreen.js # src/js/listeners.js # src/js/plyr.js
| * This is a PR to allow for contextual content to be included in fullscreen ↵Som Meaden2020-04-041-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* | Converted to 2 space indentationSam Potts2020-04-111-240/+237
|/
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2020-03-291-2/+3
|\ | | | | | | | | | | # Conflicts: # package.json # yarn.lock
| * Merge pull request #1739 from ydylla/ignore-internal-play-promisesSam Potts2020-03-291-1/+2
| |\ | | | | | | Ignore internal play promises
| | * silence all internal play promisesydylla2020-03-231-1/+2
| |/ |/|
| * Compare fullscreenElement with shadowroot host if player is in shadow DOMJesper2020-03-101-1/+1
|/
* Focus trap improvementsSam Potts2020-02-091-74/+99
|
* Manually port over change from PR #1616Sam Potts2020-01-131-1/+1
|
* File rename and clean upSam Potts2019-06-211-1/+0
|
* Repaint clean upSam Potts2019-06-031-3/+0
|
* Fullscreen fixesSam Potts2019-01-141-4/+22
|
* Improved fullscreen on iPhone X etcSam Potts2018-09-251-0/+33
|
* Remove 'video is playing' requirement for iosNative fullscreenJames2018-08-031-3/+1
|
* Formatting fixSam Potts2018-06-171-2/+2
|
* Merge branch 'develop' into a11y-improvementsSam Potts2018-06-171-24/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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 upgradeSam Potts2018-06-171-6/+18
| |
| * Remove line breaks in arraysAlbin Larsson2018-06-131-5/+1
| |
| * Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2018-06-131-4/+4
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/js/captions.js # src/js/controls.js # src/js/fullscreen.js # src/js/html5.js # src/js/listeners.js # src/js/plugins/youtube.js # src/js/plyr.js # src/js/utils.js
| | * remove event listeners in destroy, add once methodcky2018-06-121-2/+2
| | |
| * | Utils broken down into seperate files and exportsSam Potts2018-06-131-17/+18
| |/
* / WIPSam Potts2018-05-281-1/+1
|/
* Remove references to window.PlyrSam Potts2018-05-101-1/+1
|
* v3.2.4Sam Potts2018-04-271-1/+1
|
* Fix for iOS 9 throwing error for `name` property in fullscreen API (fixes #908)Sam Potts2018-04-251-5/+5
|
* Fullscreen aria-pressed event listened fix for ChromeAlbin Larsson2018-04-171-1/+1
|
* Fixes #873 Can't leave fullscreen in Chrome (using button)Albin Larsson2018-04-051-1/+1
|
* YouTube speed menu fixSam Potts2018-04-031-4/+6
|
* v3.0.5Sam Potts2018-03-271-4/+0
|
* Allow fullscreen in iframeSam Potts2018-03-271-3/+6
|
* Fixes for fast forward and issues with event.preventDefault()Sam Potts2018-03-271-1/+5
|
* Fix for Firefox fullscreen oddness (Fixes #821)Sam Potts2018-03-221-8/+12
|
* Fix for custom controlsSam Potts2018-02-131-0/+3
|
* Fullscreen API changes, color settings tweaksSam Potts2018-02-111-82/+156
|
* Converted to SASS/SCSSSam Potts2017-12-201-1/+7
|
* IE & Edge fixes, Storage & Console classesSam Potts2017-12-081-2/+2
|
* Moved to provider + type to make it cleaner in future, fix for multiple playersSam Potts2017-11-231-1/+1
|
* Updated data attributes to `data-plyr` namespace. Speed menu fixesSam Potts2017-11-231-11/+3
|
* Captions fixSam Potts2017-11-191-2/+2
|
* Moved console methods out of the root of the objectSam Potts2017-11-091-2/+2
|
* ES6-ifiedSam Potts2017-11-041-0/+129