Albin Larsson
|
f9ac98bc6d
|
Lowercase contributing.md (like the other docs)
|
2018-07-23 06:21:25 +02:00 |
|
Albin Larsson
|
2cf5a22c85
|
Fix internal link for the source setter
|
2018-07-10 23:56:00 +02:00 |
|
Albin Larsson
|
763eb2df80
|
Add 'remark' and plugin to verify internal links in markdown
|
2018-07-10 23:56:00 +02:00 |
|
Albin Larsson
|
8bbf66a0fb
|
Add stickler config
|
2018-07-10 20:53:09 +02:00 |
|
Albin Larsson
|
82a119c67f
|
Add travis check for the base branch (only permit develop for code changes)
|
2018-07-10 05:16:05 +02:00 |
|
Albin Larsson
|
6fd4389887
|
Add travis check for omitting dist in development branch
|
2018-07-10 05:16:05 +02:00 |
|
Albin Larsson
|
1e1a548459
|
Simplify travis conf
|
2018-07-10 02:44:15 +02:00 |
|
Albin Larsson
|
8071feda18
|
Fix streaming link
|
2018-07-09 18:47:16 +02:00 |
|
Albin Larsson
|
a49b73cd01
|
Add navigator.languages fallback for ios 9
|
2018-07-09 18:38:23 +02:00 |
|
Albin Larsson
|
5ad614e251
|
Change linting import/no-cycle to warning (not error)
|
2018-07-01 19:50:58 +02:00 |
|
Albin Larsson
|
93c890603d
|
Gitignore yarn-error.log
|
2018-07-01 19:33:47 +02:00 |
|
Albin Larsson
|
81c5477f1d
|
Fix captions.toggle() if there is no toggle button
|
2018-06-21 15:22:30 +02:00 |
|
Albin Larsson
|
004528a65c
|
Avoid conditions in volume scroll event listener
|
2018-06-19 17:22:12 +02:00 |
|
Albin Larsson
|
39c7bd40c2
|
Make decreaseVolume wrap increaseVolume for code reuse
|
2018-06-19 16:29:52 +02:00 |
|
Albin Larsson
|
43879e08f4
|
Make (increase/decrease)Volume methods ignore invalid input instead of raising / lowering to the min / max
|
2018-06-19 16:27:06 +02:00 |
|
friday
|
52ea5bd0ab
|
Merge pull request #1052 from friday/youtube-audio-fix
Fix YouTube muting after seeking with the progress slider.
|
2018-06-19 04:15:07 +02:00 |
|
Albin Larsson
|
457d112df7
|
Fix #1045: YouTube mutes when seeking after play
|
2018-06-19 04:03:59 +02:00 |
|
Albin Larsson
|
d72e502107
|
Fixes #1044: Don't load the new source if preload is disabled and the current source hasn't been loaded
|
2018-06-19 03:39:18 +02:00 |
|
Albin Larsson
|
94055f0772
|
Replace filter()[0] with find()
|
2018-06-19 03:35:57 +02:00 |
|
Albin Larsson
|
99c10aa1fc
|
Replace switch in controls.createProgress with object literal
|
2018-06-16 07:27:04 +02:00 |
|
Albin Larsson
|
2a186e425b
|
Replace switch in support.mime with object literal and conditions, and make it return boolean
|
2018-06-16 07:27:04 +02:00 |
|
Albin Larsson
|
64bb206d85
|
Replace switch in support.check with simpler conditions
|
2018-06-16 07:27:04 +02:00 |
|
Albin Larsson
|
2d6732d580
|
Replace switch in controls.createLabel with object literal
|
2018-06-16 07:25:34 +02:00 |
|
Albin Larsson
|
8f359adf9c
|
Fix captions.toggle order
|
2018-06-16 01:34:55 +02:00 |
|
Albin Larsson
|
1f09493ba2
|
Captions: Handle uppercase input (like before)
|
2018-06-16 01:07:16 +02:00 |
|
Albin Larsson
|
115f352ade
|
Respect call order and prioritize public API calls for setting poster, in order to avoid race conditions
|
2018-06-15 23:56:47 +02:00 |
|
Albin Larsson
|
2af60c5c0d
|
Add 'ready' promise
|
2018-06-15 23:01:33 +02:00 |
|
Albin Larsson
|
aab2817ddc
|
Copy poster when creating new media element for YouTube and Vimeo (needed for #1018)
|
2018-06-15 22:57:16 +02:00 |
|
Albin Larsson
|
f1c4752036
|
Filter out null / undefined in elements.setAttributes
|
2018-06-15 22:52:19 +02:00 |
|
Albin Larsson
|
88735e3146
|
Replace switch in controls.updateSetting with condition
|
2018-06-15 15:57:10 +02:00 |
|
Albin Larsson
|
c373ed72d7
|
Replace switch in YouTube error handler with object literal
|
2018-06-15 15:57:10 +02:00 |
|
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 |
|
friday
|
e3e4e60fdb
|
Contributions improvements
General improvements and new sections
|
2018-06-14 19:50:59 +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 |
|