1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-02 09:11:54 +02:00
Commit Graph

317 Commits

Author SHA1 Message Date
Alex Vasilenko
a3b9b50e8b vjs.Component.dimension accepts 'auto' as value
test case for vjs.Component.dimension with 'auto'
2013-03-09 10:39:28 +02:00
David LaPalomento
0ba7166636 Fixes #367
If you are quick, you could get videojs to wrap the HTML video element twice on iOS. The video element has to be recreated after moving on iOS but we weren't re-associating it with the player object. When autoSetup swung through, it would re-initialize the video element and create a player within a player.
2013-03-07 20:57:52 -05:00
Alex Vasilenko
264e3aeb38 expose vjs.Component.dispose 2013-03-07 23:23:02 +02:00
Alex Vasilenko
696097ca38 Merge branch 'optional_resize' of github.com:mente/video-js into optional_resize
* 'optional_resize' of github.com:mente/video-js:
  proper vertical-align on default skin
2013-03-07 23:21:23 +02:00
Alex Vasilenko
cf2fd9cbe8 use {width: "auto", height: "auto"} to let css decide video dimensions 2013-03-07 23:21:08 +02:00
corwin.tomkinson
93f8737fc7 Fix ability to add child after closure compiled 2013-03-07 11:37:51 +00:00
Steve Heffernan
f11c5d3ca9 Merge pull request #340 from Sundrique/fix-parent-el-option
Fix parentEl tech option.
2013-03-06 16:57:40 -08:00
Steve Heffernan
eb3f1aca8a Merge pull request #348 from Wellming/master
fix iPhone and iPad detection.
2013-03-06 16:45:51 -08:00
Steve Heffernan
253c510da0 Merge pull request #354 from dmlap/issue347
Fix Issue #347
2013-03-06 16:36:59 -08:00
Alex Vasilenko
1bceadf094 expose correct dispose method
testcase for correct dispose method
2013-03-05 23:23:01 +02:00
Alex Vasilenko
2de8ad6f63 ready method exposed in minified version
test case for minified lib and not minified code
2013-03-05 22:39:43 +02:00
Alex Vasilenko
e4c9588048 proper vertical-align on default skin 2013-03-05 19:02:59 +02:00
Alex Vasilenko
9b52edea07 do not force default 300x150 if no width/height found 2013-03-05 18:35:55 +02:00
David LaPalomento
b662139708 Remove unused variable
Get rid of a variable that was copy-pasted along from a previous incarnation of this fix.
2013-03-04 14:53:27 -05:00
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 ab5f977d62.
2013-02-07 15:06:16 -08:00
Joseph Afework
3865d44b0e Revert "Added Flag for loop support with custom start time"
This reverts commit 120790a34a.
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
Steve Heffernan
e840a27409 Merge branch 'master' of git://github.com/mchristopher/video-js into mchristopher-master
Conflicts:
	test/video.test.js
2013-01-18 17:03:17 -08:00
Michael Christopher
67c96304f2 Uppercase constants 2013-01-18 16:54:45 -08:00
Michael Christopher
aece38716d Pass tests 2013-01-18 15:09:46 -08:00
Michael Christopher
c6e23d772a Updating SSL support for new VJS 2013-01-18 14:57:57 -08:00
Steve Heffernan
54737a8af2 Updated options to use underscore for private 2013-01-17 21:03:25 -05:00
Steve Heffernan
487fdc8511 Fixed instances where options was still using a non-string key 2013-01-17 20:45:22 -05:00
Steve Heffernan
70fbf7fc8a Updated events to support event.stopImmediatePropagation().
Added a first play event.
2013-01-17 20:33:53 -05:00
Steve Heffernan
0b3e240999 Changed this.player to this.player_ to be more consistent with other private vars. 2013-01-16 20:24:38 -05:00
Steve Heffernan
e4eb0d5ffe Added a method for doing a deep merge on options objects so individual options could be passed to children withoug overwriting all defaults.
Cleaned up vjs.merge.
2013-01-16 11:09:56 -05:00
Steve Heffernan
0f0fccc312 Update grunt build script. 2013-01-12 22:23:22 -08:00
Steve Heffernan
e7c146bc1f Reorgnizing src files.
Moving to grunt for build.
2013-01-11 23:02:20 -08:00
Steve Heffernan
06e3ec9dce Cleaned up test logging. Added fallback message for no video support. 2013-01-10 13:48:41 -08:00
Steve Heffernan
f267e27e36 Updated closure compiler advanced mode branch 2013-01-10 13:06:12 -08:00
Steve Heffernan
428203c466 Continued updating all library pieces to support closure compiler.
Renamed internal lib var to vjs instead of _V_.
2013-01-04 16:58:23 -08:00
Steve Heffernan
e125ee878e Updated closure compiler build. Starting Flash support. 2012-12-31 15:25:56 -08:00
Steve Heffernan
688b5053ee Major rewrite to support Google Closure Compiler Advanced Optimization.
Still in process.
2012-12-30 21:45:50 -08:00
Steve Heffernan
b18bc876b0 Moved .values definition to support being used in width() 2012-12-11 13:39:15 -08:00
Steve Heffernan
6bb2a8cdda Fixed incorrect width and height returning. fixes 258 2012-12-11 13:34:13 -08:00
Steve Heffernan
fc6d1b1229 Merge branch 'hotfix/fix-chrome-seeking-spinner' fixes #240
Conflicts:
	src/controls.js
2012-11-12 17:32:44 -08:00
Dan Connor
180c75b3a2 fix for loading spinner persisting on screen after programatic seek in Chrome 2012-11-06 16:38:35 -08:00
Steve Heffernan
0edfae58eb Re-organized playback tech location in source. 2012-08-13 13:34:40 -07:00
Steve Heffernan
d71b0858d4 Added jhurliman's YouTube updates. 2012-08-10 17:25:14 -07:00
Steve Heffernan
5e8b6c8455 Merge pull request #192 from eikes/master
Make the components available in the "ready" callback
2012-08-07 16:12:15 -07:00
Caio Ariede
51181f6a5d Removes loadingSpinner when seek is complete 2012-07-26 10:08:55 -03:00
Steve Heffernan
94044afe74 Allow disabling of default components. 2012-06-28 16:36:40 -07:00
Eike Send
7502785062 make the components available in the ready callback as well 2012-05-25 11:59:53 +02:00
Steve Heffernan
c189332ca3 Removed merge file. 2012-05-03 12:35:14 -07:00
Steve Heffernan
11a9e88d42 Merge branch 'hotfix/multiple-control-fades-fix'
Conflicts:
	src/controls.js
2012-05-02 20:57:49 -07:00
Steve Heffernan
a787b5ca3a Fixed multiple event listeners added for controls fading on play event. fixes #173 2012-05-02 20:54:40 -07:00
Steve Heffernan
8c73d8f62c Made duration setable and cached. 2012-04-25 15:15:33 -07:00
Steve Heffernan
610ad964d0 Made event binders return the player object. 2012-04-18 15:55:39 -07:00
Steve Heffernan
dd8c2a2140 Added pause back in on ended so play button goes back to triangle and playing event is fired again. 2012-04-12 15:21:30 -07:00
Steve Heffernan
7d9b0e2629 Stopped player from going back to the beginning on end. 2012-04-12 15:20:14 -07:00
Steve Heffernan
4fb7af6b53 Adjusted width/height to support percents. fixes #163 2012-04-09 14:53:03 -07:00
Steve Heffernan
937b52d9bf Fixed bug that was skipping width/height from tag attributes. 2012-04-09 11:02:51 -07:00
Steve Heffernan
b3d16d1437 Removed unused values ref. 2012-04-06 17:16:16 -07:00
Steve Heffernan
980b4738f4 Improved load order of page elements to protect againt reflows. 2012-04-06 17:14:45 -07:00
Steve Heffernan
9321a54cee Removed orig file 2012-04-06 16:52:54 -07:00
Steve Heffernan
2d2e7117b3 Merge branch 'hotfix/options-width-fix'
Conflicts:
	src/core.js
2012-04-06 16:52:18 -07:00
Steve Heffernan
dca5644878 Updated options loading to be better. 2012-04-06 16:42:09 -07:00
Steve Heffernan
1d680a9135 Fixed changeslog bullet. 2012-03-28 15:56:11 -07:00
Steve Heffernan
82e2322493 Updated remaining event listener function names. 2012-03-26 11:23:05 -07:00
Steve Heffernan
eff300cebb Updated on/addevent names on components. 2012-03-26 11:19:26 -07:00
Steve Heffernan
9cad8bff38 Changed controls addevent to on 2012-03-26 11:14:48 -07:00
Steve Heffernan
d907f4aac2 Added on/off/trigger events to replace addEvent/removeEvent/triggerEvent. 2012-03-26 11:12:31 -07:00
Steve Heffernan
15c360cd26 Removed ECMA file. No longer using any of these functions.
Removed remove function from lib. Was not being used and needed the indexOf function.
2012-03-26 10:56:38 -07:00
Steve Heffernan
b01ca8e805 Merge pull request #143 from andchen/master
Added "exitFullScreen" in tech.js. For those browsers that have "supportsFullScreen"
2012-03-22 15:00:43 -07:00
Steve Heffernan
43fc61f74d Merge pull request #154 from sirudog/master
Fixed two bugs: Removing sources with changing source count. Checking element nodeName, IE doesn't force uppercase.
2012-03-20 17:25:54 -07:00
Steve Heffernan
83ed670dc3 Fixed no-text-tracks error 2012-03-19 15:55:05 -07:00
Steve Heffernan
10ec069e71 Changed 'poster' component to 'posterImage' to prevent conflicts with API. 2012-03-19 15:50:05 -07:00
Steve Heffernan
393973775c Removed dumb leftover log output. 2012-03-19 09:42:41 -07:00
sirudog
4df3d84358 Fixed bug of traversing video source/track child nodes by making nodeName comparison case-insensitive.
It caused the issue of flash-fallback not being able to discover the source of the video and embed it into flashvars.
2012-03-18 22:36:04 +01:00
sirudog
5c2a3cbbf8 Fix bug in loop for removing source/track nodes from video element.
"j.length" changed in each loop step, causing source/track nodes being left in DOM.
2012-03-18 22:25:19 +01:00
Steve Heffernan
d0b9903395 Started Adding tracks docs.
Added example captions track.
Updated webvtt parser to support no id line in captions.
Updated webvtt parser to support no hours place in the time.
2012-03-16 15:32:48 -07:00
Steve Heffernan
9943405289 Logging flash errors. 2012-03-16 13:25:15 -07:00
Steve Heffernan
6c44a19fba Logging Flash errors. 2012-03-16 13:17:42 -07:00
Steve Heffernan
7aa70fe7be Cleaned up code from text track additions. 2012-03-16 12:45:51 -07:00
Steve Heffernan
2aa5a2ee09 Finishing off TextTrack support. 2012-03-16 12:29:38 -07:00
Steve Heffernan
72a423237c Updated track styles and make subtitles button work. 2012-03-10 08:54:46 -08:00
Steve Heffernan
aeecc92194 Refactored tracks to better match HTML5 spec 2012-03-09 17:12:38 -08:00
Steve Heffernan
12816b8409 Added captions button and display styles. 2012-03-02 13:52:06 -08:00
Steve Heffernan
043203781e Merge pull request #140 from carlocapocasa/master
Flash src api call autoplay fix
2012-02-14 16:56:19 -08:00
Steve Heffernan
5702380c16 Merge pull request #142 from GianlucaGuarini/patch-3
fix  localStorage context
2012-02-14 16:33:05 -08:00
Steve Heffernan
b0ac995f26 Updated fullscreenchange event to work on user escape 2012-02-13 17:51:52 -08:00
Steve Heffernan
765ef8e93e Updated fullscreenchange event to trigger on users escape 2012-02-13 17:42:22 -08:00
Steve Heffernan
e4723240b6 Made src() update URL to absolute also. 2012-02-13 17:13:14 -08:00
Steve Heffernan
c714781aef Added translation of Flash URL to absolute URL. 2012-02-13 16:59:57 -08:00
Steve Heffernan
6afb6d8e75 Added event comment 2012-02-13 13:23:06 -08:00
Steve Heffernan
df6d6647f7 Created new 'loadedalldata' event, and test. 2012-02-13 13:15:20 -08:00
Steve Heffernan
c762accb39 Fixed issue with .one scope.
Improved destroy method.
Still building out tests.
2012-02-03 17:53:59 -08:00
Steve Heffernan
45f519820a Updated techGet to handle common errors. 2012-02-03 10:28:00 -08:00
Steve Heffernan
5c4c2d30f2 Introduced techSet/techCall methods. techCall caches method calls if tech isn't ready. techGet provides defaults. 2012-02-02 19:16:45 -08:00
Steve Heffernan
a839c89f0b Updated player API to be avialable immediately.
Moved auto setup code to setup.js.
2012-02-02 14:56:47 -08:00
Andy Chen
4bc04c2e45 Added "exitFullScreen" in tech.js. For those browsers that have "supportsFullScreen"
false, it would throw "undefined" error when calling "exitFullScreen".
2012-02-02 09:51:01 -05:00
Steve Heffernan
56355e572a Fixed an error in reporting no method name 2012-01-31 15:22:25 -08:00
Steve Heffernan
32c9ecf242 Updated video tag attribute setting to not include null values. 2012-01-31 11:51:37 -08:00
Gianluca Guarini
35eb539d00 fix localStorage context 2012-01-31 11:52:26 +01:00
Carlo Capocasa
62feb5ad5f Fix: Flash always autoplays on src api call 2012-01-31 08:28:34 +01:00
Steve Heffernan
1eda892c86 Fixed a double declared var. 2012-01-30 15:13:18 -08:00
Steve Heffernan
f5681765fd Swapped out swfobject version check for new custom version check. 2012-01-30 10:58:26 -08:00
Steve Heffernan
f67c5d951c Made iframe mode no longer the default for further testing. 2012-01-29 20:04:58 -08:00
Steve Heffernan
f5ab5d5c43 Tried to fix iframe mode for Firefox. Ended up having to rule it out.
Fixed an issue with fullscreen event calling.
2012-01-29 20:03:44 -08:00
Steve Heffernan
8719371e21 Updated iFrame mode 2012-01-28 18:56:28 -08:00
Steve Heffernan
372ec827a3 Merge branch 'master' into feature/flash-iframe 2012-01-28 17:27:45 -08:00
Steve Heffernan
52975871e1 Fixed issue with volume knob positioning.
Using visiblity for for hiding in IE6.
Updated controls fading.
2012-01-28 16:27:03 -08:00
Steve Heffernan
ca9d044ae9 Working towards getting styles to work on controls 2012-01-27 16:57:24 -08:00