Albin Larsson
|
213cfe8c84
|
Replace switch in media.js with simpler conditions
|
2018-06-15 15:57:10 +02:00 |
|
Albin Larsson
|
87ea5e14b4
|
Replace provider switch plyr.js with conditions
|
2018-06-15 15:57:10 +02:00 |
|
Albin Larsson
|
2aa967aba9
|
Replace switch in source.js with destructuring
|
2018-06-15 12:33:30 +02:00 |
|
Albin Larsson
|
19e412a73a
|
Add 'passive' flag to internal captions methods to avoid overriding user preferences, support multiple browser languages (get first match) and improve comments
|
2018-06-15 06:07:04 +02:00 |
|
Albin Larsson
|
cf5f77c709
|
Fix menu transitionend event listener
|
2018-06-15 05:51:23 +02:00 |
|
Albin Larsson
|
8257857075
|
Wrap caption toggle event listener callback to avoid sending event
|
2018-06-15 02:44:00 +02:00 |
|
Albin Larsson
|
6ce9a94932
|
Move internal event listeners for captions with direct handling in the captions object
|
2018-06-14 16:41:16 +02:00 |
|
Albin Larsson
|
fa5d0ad316
|
Move toggleCaption internals to captions object
|
2018-06-14 15:58:35 +02:00 |
|
Albin Larsson
|
6bff6b317d
|
Remove line breaks in arrays
|
2018-06-13 23:27:35 +02:00 |
|
Albin Larsson
|
99ac8d4c52
|
Remove array-newline rule
|
2018-06-13 22:07:32 +02:00 |
|
Albin Larsson
|
2fe98f3721
|
Fix condition in events.toggleListener to allow non-elements
|
2018-06-13 14:29:55 +02:00 |
|
Albin Larsson
|
927326f715
|
Also remove 'once' event listeners when destroying (they may still be waiting)
|
2018-06-12 20:00:41 +02:00 |
|
Albin Larsson
|
53933dff7e
|
Use toggleListener in trapFocus
|
2018-06-12 19:39:26 +02:00 |
|
Albin Larsson
|
f15c1344b0
|
Removed support for multiple elements in toggleListener
|
2018-06-12 19:10:00 +02:00 |
|
Albin Larsson
|
fb48b330cc
|
typo
|
2018-06-12 17:41:17 +02:00 |
|
Albin Larsson
|
db95b3234f
|
Move uniqueness filter from getQualityOptions to setQualityMenu
|
2018-06-12 02:31:18 +02:00 |
|
Albin Larsson
|
6d2dad5810
|
Trigger qualityrequested event unconditionally when trying to set it (needed for streaming libraries to be able to listen)
|
2018-06-12 02:31:18 +02:00 |
|
Albin Larsson
|
81ee3f759c
|
Remove todo comment about Vimeo support for setting quality (they don't support it)
|
2018-06-12 02:31:18 +02:00 |
|
Albin Larsson
|
ed606c28ab
|
Filter out unsupported mimetypes in getSources() instead of the quality setter
|
2018-06-12 02:31:18 +02:00 |
|
Albin Larsson
|
f15e07f7f5
|
Simplify logic in youtube.mapQualityUnit (not that it matters much now)
|
2018-06-12 02:31:04 +02:00 |
|
Albin Larsson
|
62c263bda3
|
Replace quality setter conditions with Array.find()
|
2018-06-11 08:23:08 +02:00 |
|
Albin Larsson
|
4c1337b4c5
|
Assure type safety in getSources() and getQualityOptions() (always return arrays), and remove external conditions and type conversion no longer needed
|
2018-06-11 08:23:08 +02:00 |
|
Albin Larsson
|
cc97d7be6a
|
Fix synthetic event bubble/proxy loses detail
|
2018-06-11 08:00:46 +02:00 |
|
Albin Larsson
|
37a3ab202a
|
Remove wrapper function around utils.is.element in Plyr.setup() (no lnger needed)
|
2018-06-11 05:44:57 +02:00 |
|
Albin Larsson
|
b148adc0af
|
Avoid using this to refer to utils or utils.is, since that means methods can't be used statically
|
2018-06-11 05:44:57 +02:00 |
|
Albin Larsson
|
16828e975a
|
Move utils.is.getConstructor() to utils.getConstructor()
|
2018-06-11 05:44:57 +02:00 |
|
Albin Larsson
|
94699f3255
|
Fix problem with YouTube and Vimeo seeking while playing
|
2018-06-11 02:21:00 +02:00 |
|
Albin Larsson
|
d3e98eb27e
|
Vimeo: Assure state is updated with autoplay (fixes #1016)
|
2018-06-11 00:00:16 +02:00 |
|
Albin Larsson
|
41012a9843
|
Typo
|
2018-06-10 22:00:15 +02:00 |
|
Albin Larsson
|
c83487a293
|
Fix #1017, fix #980, fix #1014: Captions rewrite (use index internally)
|
2018-06-10 19:00:07 +02:00 |
|
Albin Larsson
|
1fab4919c0
|
controls.createMenuItem: Change input to object (too many params made it hard to read)
|
2018-06-10 18:57:19 +02:00 |
|
Albin Larsson
|
9dc0f28800
|
Avoid condition in getTracks
|
2018-06-10 18:57:19 +02:00 |
|
Albin Larsson
|
b57784d1a5
|
Change debug warn 'Unsupported language option' to log 'Language option doesn't yet exist' since it doesn't have to be an error
|
2018-06-10 18:56:13 +02:00 |
|
Albin Larsson
|
a80b31bf98
|
Fix #1003: Formatted captions issue
|
2018-06-10 18:56:13 +02:00 |
|
Albin Larsson
|
b12eeb0eb7
|
Merge captions setText and setCue into updateCues (fixes #998 and vimeo cuechange event)
|
2018-06-08 11:44:15 +02:00 |
|
Albin Larsson
|
16624b90d3
|
Clarifications due to recent non-constructive comments in #1001
|
2018-06-07 14:30:05 +02:00 |
|
Albin Larsson
|
ed14b656a8
|
Add contributing document
|
2018-06-07 11:47:51 +02:00 |
|
Albin Larsson
|
1d0cf16254
|
Readme: Replace streaming section with codepen templates for all supported formats and libraries (and updated code)
|
2018-06-07 11:47:34 +02:00 |
|
Albin Larsson
|
4bf678fe6c
|
Proposed changes to PR template (develop as base branch, exclude build and typo fix)
|
2018-05-30 19:52:15 +02:00 |
|
Albin Larsson
|
359acd6bb9
|
Lint and build in travis
|
2018-05-30 19:40:17 +02:00 |
|
Albin Larsson
|
2fce385691
|
Add npm scripts for linting and building
|
2018-05-30 19:40:17 +02:00 |
|
Albin Larsson
|
a82c61c539
|
Gulp: Add option to build only
|
2018-05-30 19:39:57 +02:00 |
|
Albin Larsson
|
9d798893b5
|
Call duration update method manually if user config has duration
|
2018-05-29 16:06:07 +02:00 |
|
Albin Larsson
|
64399e0717
|
Defer initial captions update to next tick, to avoid event being triggered to early
|
2018-05-28 17:54:25 +02:00 |
|
Albin Larsson
|
f58e23b325
|
Change to using addtrack and removetrack listeners since 'change' didn't trigger in firefox for embedded captions (may also be a hls.js issue)
|
2018-05-28 16:19:44 +02:00 |
|
Albin Larsson
|
812e07b734
|
Replace browser language detection in defaults.js with explicit 'auto' option
|
2018-05-28 07:43:37 +02:00 |
|
Albin Larsson
|
c9298fde76
|
Fix typo
|
2018-05-28 07:08:38 +02:00 |
|
Albin Larsson
|
0109454a34
|
Ensure language is set in case the track is added after initialization, and trigger languagechange event when language is initially set
|
2018-05-28 06:08:03 +02:00 |
|
Albin Larsson
|
813f703211
|
Add option to watch caption track changes and update language options
|
2018-05-28 06:08:03 +02:00 |
|
Albin Larsson
|
7aad747c25
|
Optimize captions code reused and ensure captionsenabled/captionsdisabled
will be sent on initial setup
|
2018-05-28 05:44:54 +02:00 |
|
Albin Larsson
|
6391ced99f
|
If storage is disabled, disable get as well, not just set
|
2018-05-28 01:58:06 +02:00 |
|
Albin Larsson
|
fac8a185ba
|
Simplify currentTime setter and bail when media hasn't loaded
|
2018-05-28 00:57:07 +02:00 |
|
Albin Larsson
|
c69aa8a42b
|
Avoid duration getter returning NaN before element has loaded
|
2018-05-28 00:57:01 +02:00 |
|
Albin Larsson
|
f34bf22125
|
Restore utils.is.cue()
|
2018-05-27 20:28:48 +02:00 |
|
Albin Larsson
|
121093ae71
|
Prevent durationchange events from showing time when invertTime is false
|
2018-05-19 04:27:45 +02:00 |
|
Albin Larsson
|
aa8fc313a9
|
Fix #966: Add 'seeked' event listener to update progress (seeking doesn't have the correct time)
|
2018-05-19 04:23:22 +02:00 |
|
Albin Larsson
|
723298a07b
|
Fix #921: Trigger seeked event in youtube plugin if either playing or paused
|
2018-05-19 04:18:27 +02:00 |
|
Albin Larsson
|
f8c89e3e95
|
Fix #876: YouTube and Vimeo autoplays on seek
|
2018-05-19 04:18:27 +02:00 |
|
Albin Larsson
|
333435a9c2
|
Fix playback state (paused) and events (play/pause)
|
2018-05-19 04:18:27 +02:00 |
|
Albin Larsson
|
37c5fbfe16
|
toggleControls() rewrite
|
2018-05-18 16:19:38 +02:00 |
|
Albin Larsson
|
d7356726a1
|
Remove ui.checkFailed() and error class
|
2018-05-16 23:21:06 +02:00 |
|
Albin Larsson
|
4db6bf7a2e
|
Make utils.toggleClass() compatible with Element.classList.toggle (rename toggle argument to 'force' and make it optional)
|
2018-05-16 23:21:06 +02:00 |
|
Albin Larsson
|
28826f6402
|
Add 'video only' caveat to toggleControls() doc (current behavior)
|
2018-05-16 23:21:06 +02:00 |
|
Albin Larsson
|
c845558d96
|
Youtube poster: Set css backgroundSize to 'cover' for padded youtube thumbnails
|
2018-05-15 16:41:51 +02:00 |
|
Albin Larsson
|
16c3a7d9e5
|
Rewrite ui.setPoster to check that images arent broken or youtube fallback images. Only show poster element when valid
|
2018-05-15 16:21:36 +02:00 |
|
Albin Larsson
|
90d5b48845
|
Add async method to utils for loading/checking images
|
2018-05-15 13:27:55 +02:00 |
|
Albin Larsson
|
d1acc4abb3
|
Add event before seeking via mouse interaction to set alternative 'value' for the input matching the tooltip time
|
2018-05-14 19:50:08 +02:00 |
|
Albin Larsson
|
7ca2169790
|
Expose defaults (enable overriding)
|
2018-05-14 06:49:04 +02:00 |
|
Albin Larsson
|
054f522aa9
|
Enable importing Plyr in node.js without errors (resulting in an empty object)
|
2018-05-14 05:35:13 +02:00 |
|
Albin Larsson
|
f2fc3f5ea5
|
Fix the seek tooltip time difference from seek time
|
2018-05-12 00:10:39 +02:00 |
|
Albin Larsson
|
069065ea3a
|
Fix #946 - poster getting click events
|
2018-05-08 16:50:40 +02:00 |
|
Albin Larsson
|
1672e78041
|
Fix poster being stretched
|
2018-05-08 16:49:32 +02:00 |
|
Albin Larsson
|
9e19b526b9
|
Only add hideControls class if config.hideControls is truthy
|
2018-04-26 17:51:14 +02:00 |
|
Albin Larsson
|
042b1a8294
|
Fullscreen aria-pressed event listened fix for Chrome
|
2018-04-17 20:28:47 +02:00 |
|
Albin Larsson
|
6d79b8cd4c
|
Don't require captions toggle button to be enabled in order to show captions
|
2018-04-17 18:59:19 +02:00 |
|
Albin Larsson
|
3082d0d128
|
Fixes #873 Can't leave fullscreen in Chrome (using button)
|
2018-04-05 20:29:01 +02:00 |
|
Albin Larsson
|
ed9e0c13d7
|
Fix #867: Add custom property fallback
|
2018-04-05 00:33:09 +02:00 |
|
Albin Larsson
|
10be94fa99
|
Fix 'null' being appended after the video if controls is empty array
|
2018-04-04 21:33:14 +02:00 |
|
Albin Larsson
|
536c65e82c
|
Fix loading data-plyr-config when initiating Plyr without any options
|
2018-04-04 03:16:25 +02:00 |
|
Albin Larsson
|
ef27ba16f4
|
Add optional argument to Ads.trigger (currently only used for adblocker error)
|
2018-03-10 16:20:33 +01:00 |
|
Albin Larsson
|
98adb8e784
|
Fix harmless but annoying IE error 'IndexSizeError'
|
2018-02-06 02:39:01 +01:00 |
|
Albin Larsson
|
a59dcb2f53
|
Gulp js build: create both minified and non-minified outputs
|
2018-02-06 01:57:27 +01:00 |
|
Albin Larsson
|
ce1d5a60d6
|
Remove eslint-rule 'no-shadow' (common variable names should be able to exist in different scopes)
|
2018-02-05 23:22:20 +01:00 |
|
Albin Larsson
|
58d942e737
|
Fix gulp build for user who doesn't have aws.json
|
2018-01-08 02:01:39 +01:00 |
|
Albin Larsson
|
1e7a60ee5c
|
Add .editorconfig file
|
2017-11-04 14:16:00 +01:00 |
|
Albin Larsson
|
0715d3ae67
|
Restore up/down arrow behavior from v2 (10 steps between min and max instead of one)
|
2017-10-25 14:25:10 +02:00 |
|
Albin Larsson
|
542095f5eb
|
Add instanceof wrapper that avoids TypeError when second argument is undefined
|
2017-10-25 14:10:38 +02:00 |
|
Albin Larsson
|
ebd13c63e8
|
Avoid multiple errors when initiating plyr without 'settings' in controls
|
2017-09-27 05:09:56 +02:00 |
|
Albin Larsson
|
ec091266aa
|
Prevent buttons from submitting form
|
2017-09-27 02:34:23 +02:00 |
|
Albin Larsson
|
c84f666b55
|
Fix 'TypeError: Cannot read property 'kind' of null' in captions feature detection if video lacks captions
|
2017-09-27 00:24:54 +02:00 |
|