aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/ads.js
Commit message (Collapse)AuthorAgeFilesLines
* fix: use bound arrow functions in classesSam Potts2020-12-201-38/+38
|
* v3.6.3 (#2016)Sam Potts2020-11-141-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * force fullscreen events to trigger on plyr element (media element in iOS) and not fullscreen container * Fixing "missing code in detail" for PlyrEvent type When using typescript and listening for youtube statechange event, it is missing the code property definition inside the event (even though it is provided in the code). By making events a map of key-value, we can add easily custom event type for specific event name. Since YouTube "statechange" event differs from the basic PlyrEvent, I added a new Event Type "PlyrStateChangeEvent" having a code property corresponding to a YoutubeState enum defined by the YouTube API documentation. This pattern follows how addEventListener in the lib.dom.d.ts is defined. * Update link to working dash.js demo (was broken) * Fix PreviewThumbnailsOptions type According to the docs, the `src` should also accept an array of strings. * fix issue #1872 * Check if key is a string before attempt --plyr checking * Fix for Slow loading videos not autoplaying * Fix for Slow loading videos not autoplaying * Network requests are not cancelled after the player is destroyed * Fix for apect ratio problem when using Vimeo player on mobile devices (issue #1940) * chore: update packages and linting * Invoke custom listener on triggering fullscreen via double-click * Fix volume when unmuting from volume 0 * adding a nice Svelte plugin that I found * Add missing unit to calc in media query * Assigning player's lastSeekTime on rewind/fast forward to prevent immediate controls hide on mobile * Fix youtube not working when player is inside shadow dom * v3.6.2 * ESLint to use common config * add BitChute to users list * Fix aspect ratio issue * Revert noCookie change * feat: demo radius tweaks * fix: poster image shouldn’t receive click events * chore: package updates * chore: linting * feat: custom controls option for embedded players * Package upgrades * ESLint to use common config * Linting changes * Update README.md * chore: formatting * fix: revert pointer events change for poster * fix: hack for Safari 14 not repainting Vimeo embed on entering fullscreen * fix: demo using custom controls for YouTube * doc: Add STROLLÿN among the list of Plyr users * Fixes #2005 * fix: overflowing volume slider * chore: clean up CSS * fix: hide poster when not using custom controls * Package upgrades * ESLint to use common config * Linting changes * chore: revert customControls default option (to prevent breaking change) * docs: changelog for v3.6.3 Co-authored-by: Som Meaden <som@theprojectsomething.com> Co-authored-by: akuma06 <demon.akuma06@gmail.com> Co-authored-by: Jonathan Arbely <dev@jonathanarbely.de> Co-authored-by: Takeshi <iwatakeshi@users.noreply.github.com> Co-authored-by: Hex <hex@codeigniter.org.cn> Co-authored-by: Syed Husain <syed.husain@appspace.com> Co-authored-by: Danielh112 <Daniel@sbgsportssoftware.com> Co-authored-by: Danil Stoyanov <d.stoyanov@corp.mail.ru> Co-authored-by: Guru Prasad Srinivasa <gurupras@buffalo.edu> Co-authored-by: Stephane Fortin Bouchard <stephane.f.bouchard@gmail.com> Co-authored-by: Zev Averbach <zev@averba.ch> Co-authored-by: Vincent Orback <hello@vincentorback.se> Co-authored-by: trafium <trafium@gmail.com> Co-authored-by: xansen <27698939+xansen@users.noreply.github.com> Co-authored-by: zoomerdev <59863739+zoomerdev@users.noreply.github.com> Co-authored-by: Mikaël Castellani <mikael.castellani@gmail.com> Co-authored-by: dirkjf <d.j.faber@outlook.com>
* Converted to 2 space indentationSam Potts2020-04-111-560/+560
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2020-03-291-13/+21
|\ | | | | | | | | | | # Conflicts: # package.json # yarn.lock
| * 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
| |/ |/|
| * silence all internal play promisesydylla2020-03-231-1/+2
|/
* Fixed ads configurationSascha Greuel2019-08-271-1/+1
|
* File rename and clean upSam Potts2019-06-211-1/+1
|
* Linting changesSam Potts2019-06-011-4/+2
|
* Ads improvements for volume and race condition fixSam Potts2019-04-251-35/+50
|
* Jsdoc updatesSam Potts2019-02-231-8/+8
|
* Fix for cue points missingSam Potts2019-02-071-16/+21
|
* Ads bug fixesSam Potts2019-02-011-9/+10
|
* Plugin tweaks for ads and previewsSam Potts2019-01-261-6/+23
|
* Moved i18n to utilsSam Potts2018-08-131-1/+1
|
* Handle race condition for ads lib loading after source changeSam Potts2018-08-011-4/+5
|
* Linting, housekeeping, duration fix (fixes #1074)Sam Potts2018-06-291-7/+7
|
* Ads only on HTML5 and .is cleanupSam Potts2018-06-211-1/+3
|
* 120 line width, package upgradeSam Potts2018-06-171-1/+5
|
* Merge branch 'develop' of github.com:sampotts/plyr into developSam Potts2018-06-131-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | # 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
* | Utils broken down into seperate files and exportsSam Potts2018-06-131-17/+21
|/
* v3.3.5Sam Potts2018-05-061-1/+1
|
* Small bug fixesSam Potts2018-05-061-1/+4
|
* v3.3.0Sam Potts2018-05-061-3/+6
|
* Muted and autoplay fixes, small bug fixesSam Potts2018-03-301-15/+23
|
* Fixes for fast forward and issues with event.preventDefault()Sam Potts2018-03-271-1/+2
|
* 3.0.0-beta.20Sam Potts2018-03-131-2/+2
|
* Update adsSam Potts2018-03-131-18/+7
|
* Fix for null manager race conditionSam Potts2018-03-111-39/+41
|
* Normalised event names and removed unusedSam Potts2018-03-111-18/+20
|
* Add optional argument to Ads.trigger (currently only used for adblocker error)Albin Larsson2018-03-101-4/+5
|
* Event listener fixes, loadScript promise, ads tweaksSam Potts2018-03-111-48/+61
|
* Removed redundant wrappers within the adsmanager promises.Arthur Hulsman2018-03-091-3/+3
|
* Ad block detection would not work when calling play() right after creating ↵Arthur Hulsman2018-03-091-36/+31
| | | | the player instance, so the adsManager now also rejects on such a case. Also made sure that calling play() will wait for the adsManager promise to resolve or otherwise return the media.play() method.
* Resizing the ad container while having it on display none will return offset ↵Arthur Hulsman2018-03-071-5/+4
| | | | width and height of 0, which will cause ads not to play when ad sizes are set within the clients DSP. Also making sure that the inner containers of the ad container are full size. The container is now hidden/ displayed using z-index.
* Made sure that cue points for midrolls are not displayed when the ad rule ↵Arthur Hulsman2018-03-071-1/+1
| | | | for a midroll doesn't exceed the total play time of a video.
* Removed a double this.enabled variable and updated a comment in ads.js. Also ↵Arthur Hulsman2018-03-061-8/+5
| | | | made sure the adsmanager promise also can fail, so we can use it to wait for getting the advertisement ready when someone clicks the play button. Otherwise there it can look glitchy when the actual video starts playing and the video ad plays a few seconds later because the vast tag was slow to retrieve. Also fixed a typo.
* TypoSam Potts2018-03-031-1/+1
|
* Ready event fix, YouTube play event fix, docs updateSam Potts2018-03-031-1/+1
|
* Merge branch 'beta' into fix/ads-blockedSam Potts2018-01-301-10/+31
|\ | | | | | | | | | | | | | | # Conflicts: # dist/plyr.js # dist/plyr.js.map # src/js/plugins/ads.js # src/js/plyr.js
| * Attempt to fix YouTube message error, added ads references, changes to boolSam Potts2018-01-251-2/+18
| |
| * Restored “Ad” in labelSam Potts2018-01-241-1/+2
| |
* | Fix typo'sferdiemmen2018-01-291-2/+2
| |
* | fix(ads): Fixes media from playing when ads are blockedferdiemmen2018-01-291-1/+7
|/
* Renamed property, UI tweakSam Potts2018-01-231-8/+12
|
* Fix bug where ad would play on every play actionferdiemmen2018-01-221-3/+0
|
* Small tweaksSam Potts2018-01-221-3/+6
|
* Formatting, events and ad countdown addedSam Potts2018-01-221-80/+140
|
* Formatting and “ad” badgeSam Potts2018-01-191-92/+77
|