1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-29 02:57:21 +02:00
Commit Graph

1006 Commits

Author SHA1 Message Date
Steve Heffernan
9c6c384704 Merge pull request #479 from heff/feature/slider
Added a new Slider Handle class to share code between subclass sliders
2013-04-30 18:17:54 -07:00
Steve Heffernan
e7fa682976 Added a new Slider Handle class to share code between subclass sliders
Also added a click preventDefault to protect from triggering parent menu buttons.
2013-04-30 18:10:38 -07:00
Steve Heffernan
d270a16b32 Merge pull request #478 from heff/feature/content-el
Added an optional contentEl for compontents.
2013-04-30 17:45:58 -07:00
Steve Heffernan
f0d3680fe4 Added an optional contentEl for compontents.
This allows you to define a different element to append children to as opposed to the main component element. Because sometimes components require more than one element to create their structure. e.g. a menu button.
2013-04-30 17:27:36 -07:00
Gary Katsevman
ff56061853 Make sure to return an object if box doesn't exist 2013-04-30 19:18:21 -04:00
Gary Katsevman
0154d04535 Make sliders able to handle vertical sliders in calculateDistance.
This takes a 'vertical' option on the slider bar itself. If set, it will
use the top and pageY values to calculate the slider positions.
2013-04-30 19:02:49 -04:00
Gary Katsevman
22bbd00ac9 Change vjs.findPosX to vjs.findPosition to return both left and top.
This also removes the fallback method that doesn't use the
getBoundingClientRect because according to MDN[1] and PPK[2], it should
be supported just about everywhere.

[1] https://developer.mozilla.org/en-US/docs/DOM/element.getBoundingClientRect#Browser_compatibility
[2] http://www.quirksmode.org/dom/w3c_cssom.html#documentview
2013-04-30 18:59:02 -04:00
Steve Heffernan
04feef9303 Merge branch 'issue424-pr' of git://github.com/dmlap/video-js into dmlap-issue424-pr
Conflicts:
	src/js/media.html5.js
2013-04-29 16:10:37 -07:00
Steve Heffernan
c7823ceb68 Merge pull request #475 from gkatsev/fix/androidBrowser2
Dont enable onClick play state toggling on android via the MediaTechController
2013-04-29 15:25:34 -07:00
Gary Katsevman
85cf34017a forgot a semicolon >.< 2013-04-29 18:12:32 -04:00
Gary Katsevman
a681d172f2 Dont enable onClick play state toggling on android via the MediaTechController 2013-04-29 17:54:21 -04:00
Steve Heffernan
8c52d02c21 Merge pull request #468 from mente/fullscreen
fixes fullscreen using html5 technology
2013-04-29 13:52:28 -07:00
David LaPalomento
7fab906843 Remove xEnterFullScreen fallback
Only the video element supports enterFullScreen() so don't use it as a fallback if requestFullScreen isn't available.
2013-04-29 14:44:07 -04:00
Danny Rench
90f975c20e Catch localStorage security exceptions. Fixes #351 2013-04-28 19:53:28 -05:00
Matthew McClure
247a725cad added license to readme 2013-04-28 17:35:21 -07:00
Matthew McClure
016e94f889 Merge remote-tracking branch 'upstream/master' 2013-04-28 17:34:08 -07:00
David LaPalomento
8524ad9817 Android browsers support video element fullscreen
Modify the UA check in media.html5 for whether a video element supports enterFullScreen to return true for Android WebKit/Chrome browsers.
2013-04-26 12:38:48 -04:00
Alex Vasilenko
01104ef2a4 fixes fullscreen using html5 technology 2013-04-26 18:52:23 +03:00
Steve Heffernan
7199b91f4d Merge pull request #459 from gkatsev/issue/fixEvents
Make preventDefault and stopPropagation call the corresponding methods on the actual event
2013-04-25 12:29:53 -07:00
Steve Heffernan
623bb75267 Merge pull request #458 from gkatsev/lockShowing
Make lockShowing apply a css class instead of modifying styles directly....
2013-04-25 12:29:28 -07:00
Gary Katsevman
83b007504f Make vjs-lock-showing less specific but with display !important 2013-04-25 15:13:23 -04:00
David LaPalomento
9576710b2f Update minify task to work with grunt-cli 0.1.6
It looks like the newer version of grunt-cli has changed how options objects are forwarded to tasks. The minify (Google closure compiler) task was looking for configuration in the wrong location and the new location no longer automatically expanded path wildcard patterns.
2013-04-23 10:45:05 -04:00
Matthew McClure
07d90fb6e0 grunt now adds copyright comment to top of video.js 2013-04-22 18:48:34 -07:00
David LaPalomento
7d67abdae8 Activate the video element when video-level fullscreen is requested. Fix #424
Prime the video element for programmatic access by quickly playing and pausing when entering fullscreen. Only attempt this if the video is paused and no content has been loaded yet. Do so in a setTimeout of 0 because iOS 6.1 devices go into a loop of continuously pausing and playing if you play and pause synchronously while attempting to enter fullscreen. Don't fire `fullscreenchange` if we're forced to use the video elements fullscreen mode because we don't properly detect when exiting fullscreen and it leaves the player stretched out to fill the entire browser window when the user returns from watching.
2013-04-22 18:45:42 -04:00
Gary Katsevman
c4d07c402d Make preventDefault and stopPropagation call the corresponding methods on the actual event 2013-04-22 17:23:20 -04:00
Gary Katsevman
c0726d20f0 Make lockShowing apply a css class instead of modifying styles directly. Adress #427 2013-04-22 16:07:41 -04:00
Steve Heffernan
f81b369955 Merge pull request #457 from gkatsev/fix/calculateDistance
Fix calculateDistance on slider to work in iframes and all devices.
2013-04-22 11:26:51 -07:00
Steve Heffernan
229f5028e1 Merge pull request #456 from gkatsev/feature/issue448
Add videojs to window directly. Fix #448
2013-04-22 11:24:05 -07:00
Steve Heffernan
8494080c90 Merge pull request #454 from dmlap/issue453
Move html tech feature detection earlier than superclass constructor. Fix #453
2013-04-22 11:23:28 -07:00
Steve Heffernan
ea792587d5 Merge pull request #449 from eXon/master
Let external libs use the extend
2013-04-22 11:20:50 -07:00
Gary Katsevman
a8e87f80ed Make slider use changedTouches if available. Also, test to make sure we get the correct ratio for calculateDistance 2013-04-22 13:57:42 -04:00
Gary Katsevman
b1b0ac0377 Add videojs to window directly. Fix #448 2013-04-22 11:32:17 -04:00
Matthew McClure
953ae8abec Added copyright banner to top of distribution video.js 2013-04-21 22:44:36 -07:00
Matthew McClure
23c647eecb switched license over from LGPLv3 to Apache2 2013-04-21 20:36:44 -07:00
David LaPalomento
99c982c103 Move html tech feature detection earlier than superclass constructor
The MediaTechController calls createEl during its initialization to construct the actual video element used for playback. On iOS, the video element must be recreated during this process so that it doesn't become unresponsive. Make sure that we determine whether recreating the video elemen is necessary before calling the superclass constructor.
2013-04-19 20:14:48 -04:00
Steve Heffernan
5ff2b1d061 Merge pull request #450 from gkatsev/feature/iife-wrapper
Make the minified output be wrapped in an IIFE, fix #402.
2013-04-18 14:02:49 -07:00
Gary Katsevman
c172ed715b Make the minified output be wrapped in an IIFE, fix #402. 2013-04-18 15:27:14 -04:00
Benoit Tremblay
fd798f3dac Fix script after video DOM
You have to wait at least once in case this script is loaded after your video in the DOM (weird behavior only with minified version)
2013-04-18 00:49:59 -03:00
Benoit Tremblay
7a0155aa03 Check the unobfuscated init so we can extend outside the lib 2013-04-17 23:07:04 -03:00
Steve Heffernan
a73f0ab6f0 Updated event fixing to support IE8 and Firefox 2013-04-16 16:25:12 -07:00
Steve Heffernan
bdb4456c62 Fixed an issue where Firefox would lose the type of an event.
Because it returns false for event.hasOwnProperty('type');
2013-04-16 15:58:57 -07:00
Steve Heffernan
83553b6540 Merge pull request #444 from heff/feature/browser-tests
First pass at automated multi-browser/device testing. closes #419
2013-04-15 13:25:22 -07:00
Steve Heffernan
3b48be921e First pass at automated multi-browser/device testing. closes #419
I've got a way to run tests across every browser and device out there except for IE8, and IE8 should work except I'm running into a Browserstack bug that I've let them know about.

It uses a project called bunyip, which internallt uses Yeti (YUI), Pagekite, and Browserstack.

Next steps include:
  - Making it all automatic. Right now you have to wait for browsers to connect and then manually hit enter when they have.
  - Make it a grunt task
  - Document it all so others can use it

I think this is close enough for me to close the milestone 4.0 issue.
2013-04-12 16:51:04 -07:00
Steve Heffernan
2138d4f2a0 Close GH-425: Backing out goog.inherits and adding back the previous inheritance API. fixes #415. 2013-04-09 13:43:35 -07:00
Benoit Tremblay
3a32f44f23 Close GH-432: Additional exports for external techs. 2013-04-09 13:18:55 -07:00
Steve Heffernan
c74f39318f Updated grunt and grunt-contrib versions to fix PhantomJS bug
Also changed some additional code to fix new jshint issues found by new jshint version.
2013-04-09 10:42:41 -07:00
Steve Heffernan
0aa814fae7 Fixed another issue blocking the play event from triggering in Flash 2013-04-08 19:20:53 -07:00
Steve Heffernan
896d0333c7 Fixed a bug where play event was no longer being triggered. 2013-04-08 18:53:19 -07:00
Steve Heffernan
dbd02fb05a Close GH-437: Made IE updates from CorwinT. Closes #309. Closes #364.. 2013-04-08 16:23:41 -07:00
Steve Heffernan
bafaf49e7e Close GH-433: Update contribflow version and add contrib.json. 2013-04-08 13:55:50 -07:00