1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-27 11:22:06 +02:00

953 Commits

Author SHA1 Message Date
David LaPalomento
ab25a823b7 Fix 347
Hide volume slider and mute toggle when the current tech doesn't support adjusting video volume. Added controls specific test cases. Volume-related controls retest whether to display themselves whenever `loadstart` fires.
2013-03-02 00:00:23 -05:00
Jim R. Wilson
f8385f06d0 changing poster image to div with backgroundImage
The existing poster implementation uses an <img> tag
stretched horizontally with capped max-height. This
works in some cases like pillar-boxing when the poster
is not as wide as the player. However it fails to
letter box when the player is taller than the poster.

This change uses a stretched div with background-image
and backround-size to create a vertically aligned
poster image which stretches in both directions to fit
while maintaining aspect ratio.

For browsers which do not support backgroundSize (IE8)
the original <img> based strategy is used as a fallback.
2013-03-01 17:45:07 -05:00
Wellming Li
c647b436aa fix iPhone and iPad detection. 2013-02-24 17:56:30 +08:00
David LaPalomento
60f9b505f1 Close GH-346: Remove need for good.require/good.provide. 2013-02-22 22:26:58 -05:00
corwin.tomkinson
4f18a6bd97 Rename component method exports. Fixes #344 2013-02-20 14:59:22 +00:00
alexsandrovsky
eda21b7b22 Fix parentEl tech option.
Player cannot find parentEl option after minification, so flash tech fails.
2013-02-15 23:31:31 +03:00
Greg Kraus
dd9f1603a4 Provide more information to screen reader users about the duration time 2013-02-14 19:27:54 -05:00
Greg Kraus
f5b4980718 resolved conflicts with upstream master 2013-02-14 18:11:43 -05:00
Steve Heffernan
0373d15c2f Merge pull request #314 from Sundrique/313-attributes
313 Save all video tag attributes while moving media element in DOM
2013-02-13 16:27:48 -08:00
Steve Heffernan
aa0ea90ee2 Merge pull request #316 from Sundrique/315-fullscreen-icon
315 Fullscreen button CSS rules for webkit and Firefox added
2013-02-13 16:23:10 -08:00
Steve Heffernan
7adede7b68 Merge pull request #320 from Sundrique/poster-visibility-fix
Fix poster component visibility
2013-02-13 16:20:39 -08:00
Steve Heffernan
1905e59bdb Merge pull request #321 from Sundrique/volume-handler-fix
Fix volume handler initial position
2013-02-13 16:19:21 -08:00
Greg Kraus
6c9e17dce2 Corrected duration time label to read 'time remaining' 2013-02-12 21:37:45 -05:00
Greg Kraus
07cda9583f Corrected the call to get the player width 2013-02-12 21:24:58 -05:00
Greg Kraus
c6338728d8 Merge branch 'master' into 291-accessibility. Updating to the latest upstream code 2013-02-12 21:21:09 -05:00
Steve Heffernan
24ff4b1321 Merge pull request #304 from Commander147/246-Custom-Start-Time-Offset-Support
246 custom start time offset support
2013-02-11 09:56:35 -08:00
Joseph Afework
e23cf4a1c0 Changed 'firstplay' to match event functions
Changed the 'firstplay' method to the same form as the other event
functions
2013-02-10 22:45:00 -08:00
Aleksandr Sandrovskiy
730b4723b0 Fix volume handler initial position 2013-02-08 16:06:15 +03:00
Aleksandr Sandrovskiy
701c1d210c Fix poster component visibility 2013-02-08 15:50:56 +03:00
Joseph Afework
3353b75327 Fixed Start Time Offset
Implementation has been modified to utilize the firstplay event to set
the custom start time offset of the video.

If in the data-setup array an attribute of "starttime" is specified,
then the video will start playback from the passed index in seconds.

Note: Video will only start from this index on first play only.
2013-02-07 15:24:49 -08:00
Joseph Afework
bce339c405 Revert "Added Support for custom video start time"
This reverts commit ab5f977d62b1aec9ab519918f8c43e000e0e8b19.
2013-02-07 15:06:16 -08:00
Joseph Afework
3865d44b0e Revert "Added Flag for loop support with custom start time"
This reverts commit 120790a34ace386140414ce2e29e0d8f5bb4fb54.
2013-02-07 15:06:16 -08:00
Aleksandr Sandrovskiy
ba110169f5 Adds (removes) 'vjs-fullscreen' class on fullscreenchange event fixes #315 2013-02-08 01:11:33 +03:00
Aleksandr Sandrovskiy
4b960849c7 Changed 'createElement' method to 'createEl' 2013-02-08 00:44:03 +03:00
Aleksandr Sandrovskiy
3e555d77ea Changed V to vjs 2013-02-08 00:36:54 +03:00
Aleksandr Sandrovskiy
042b81e566 315 Fullscreen button CSS rules for webkit and Firefox added 2013-02-05 21:58:17 +03:00
Aleksandr Sandrovskiy
ecb7fb6b3e 313 Save all video tag attributes while moving media element in DOM 2013-02-05 20:11:45 +03:00
Steve Heffernan
6d90be9967 Removed global plugin reference object. Not needed. 2013-02-04 13:56:50 -08:00
Steve Heffernan
1d79a1fa26 Updated plugins loop to use obj.each context option 2013-02-04 10:54:47 -08:00
Steve Heffernan
1f3a9f117d Update plugin tests to support compiling 2013-02-04 10:43:16 -08:00
Steve Heffernan
cb77fb337f Added code to pass plugins tests 2013-02-04 10:31:53 -08:00
Joseph Afework
120790a34a Added Flag for loop support with custom start time
The flag is used to determine if loop video is set to true,
once the video starts, options_['loop'] will always be set to false.
This allows the onEnded event to always be fired and allows us to set
custom start-time for when the video loops.

(When loop is normally set the onEnd end onPlay events are never called
their for this flag is necessary)
2013-01-26 16:37:04 -08:00
Joseph Afework
ab5f977d62 Added Support for custom video start time
1) The Start Time can be set via the data-setup array
2) If 'start-time' is not present defaut time of 0 seconds is used
3) To set a custom start time for a video simply set start-time to be
equal to the number of seconds from the start of the video you would
like to begin at.
For Example: "start-time":80 means that the video will start at
timecode 00:01:20 -> HH:MM:SS
2013-01-26 16:33:55 -08:00
Steve Heffernan
dc18f475f8 Changed to vjs.obj.function naming for object related functions.
Updated mergeOptions to just options.
2013-01-25 17:36:40 -08:00
Steve Heffernan
c7d3b9ebf9 Updated grunt script to add CSS/PNG/SWF files dist. Also did some renaming of files and folders. 2013-01-25 15:22:14 -08:00
Greg Kraus
e284c88afa Make the caption, subtitle, and chapter buttons more usable by screen reader users diff --git a/src/css/video-js.css b/src/css/video-js.css
index daa7080..4ed6ea2 100644

Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-23 00:48:05 -05:00
Greg Kraus
20e9a9feb5 Fix bug with getting the ID of the track
Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-23 00:48:05 -05:00
Greg Kraus
b0f1a8404c Adjust the font size of the text tracks to make them proportionally larger when switching to fullscreen mode
Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-23 00:47:50 -05:00
Greg Kraus
c74c4e2c3a Provide more information to screen reader users about the progress bar, current time, and time remaining diff --git a/src/js/controls.js b/src/js/controls.js
index bb050b9..504913c 100644

Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-23 00:32:17 -05:00
Greg Kraus
00a508508e Provide additional information for screen reader users on the status of the volume bar diff --git a/src/js/controls.js b/src/js/controls.js
index 2d5ad21..bb050b9 100644

Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-23 00:32:17 -05:00
Greg Kraus
1d6e93d990 Change the button text when the button state is toggled, and indicate to screen reader users that the text may change
Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-22 23:23:00 -05:00
Greg Kraus
56ebe98386 Add a label for the big play button to aid screen reader users
Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-22 23:22:57 -05:00
Greg Kraus
4fe808dcbc Change the creation order of the control UI elements to make the tab order more intuitive
Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-22 23:22:53 -05:00
Greg Kraus
ef260fca72 Show keyboard focus on UI elements for keyboard-only users
Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-22 23:22:50 -05:00
Greg Kraus
803e2da691 Add support for writing aria-* and role attributes to elements.
Signed-off-by: Greg Kraus <gdkraus@ncsu.edu>
2013-01-22 23:22:46 -05:00
Steve Heffernan
1c6bcb0a5e Updated dispose to support children without the dispose method 2013-01-21 18:22:19 -08:00
Steve Heffernan
b6ea80b67e Updated component children adding to allow no name, id, or el 2013-01-21 17:10:54 -08:00
Steve Heffernan
0364e281d1 Stopped big play button from showing on ended. 2013-01-21 16:43:03 -08:00
Steve Heffernan
9f566c0742 Updated player options to use component options_ settings and mergeOptions. 2013-01-21 16:19:46 -08:00
Steve Heffernan
07d03e1a27 Updated player API to support poster and controls 2013-01-18 18:06:15 -08:00