mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Also check the lang in case insensitive
This commit is contained in:
parent
33e7f7384e
commit
2a9630258f
22658 changed files with 3562773 additions and 3562767 deletions
382
node_modules/videojs-vtt.js/LICENSE
generated
vendored
382
node_modules/videojs-vtt.js/LICENSE
generated
vendored
|
@ -1,191 +1,191 @@
|
|||
Copyright Brightcove, Inc. and contributors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Copyright Brightcove, Inc. and contributors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
|
|
1126
node_modules/videojs-vtt.js/README.md
generated
vendored
1126
node_modules/videojs-vtt.js/README.md
generated
vendored
File diff suppressed because it is too large
Load diff
3740
node_modules/videojs-vtt.js/dist/vtt.global.js
generated
vendored
3740
node_modules/videojs-vtt.js/dist/vtt.global.js
generated
vendored
File diff suppressed because it is too large
Load diff
2
node_modules/videojs-vtt.js/dist/vtt.min.js
generated
vendored
2
node_modules/videojs-vtt.js/dist/vtt.min.js
generated
vendored
File diff suppressed because one or more lines are too long
100
node_modules/videojs-vtt.js/lib/browser-index.js
generated
vendored
100
node_modules/videojs-vtt.js/lib/browser-index.js
generated
vendored
|
@ -1,50 +1,50 @@
|
|||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Default exports for Node. Export the extended versions of VTTCue and
|
||||
// VTTRegion in Node since we likely want the capability to convert back and
|
||||
// forth between JSON. If we don't then it's not that big of a deal since we're
|
||||
// off browser.
|
||||
|
||||
var window = require('global/window');
|
||||
|
||||
var vttjs = module.exports = {
|
||||
WebVTT: require("./vtt.js"),
|
||||
VTTCue: require("./vttcue.js"),
|
||||
VTTRegion: require("./vttregion.js")
|
||||
};
|
||||
|
||||
window.vttjs = vttjs;
|
||||
window.WebVTT = vttjs.WebVTT;
|
||||
|
||||
var cueShim = vttjs.VTTCue;
|
||||
var regionShim = vttjs.VTTRegion;
|
||||
var nativeVTTCue = window.VTTCue;
|
||||
var nativeVTTRegion = window.VTTRegion;
|
||||
|
||||
vttjs.shim = function() {
|
||||
window.VTTCue = cueShim;
|
||||
window.VTTRegion = regionShim;
|
||||
};
|
||||
|
||||
vttjs.restore = function() {
|
||||
window.VTTCue = nativeVTTCue;
|
||||
window.VTTRegion = nativeVTTRegion;
|
||||
};
|
||||
|
||||
if (!window.VTTCue) {
|
||||
vttjs.shim();
|
||||
}
|
||||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Default exports for Node. Export the extended versions of VTTCue and
|
||||
// VTTRegion in Node since we likely want the capability to convert back and
|
||||
// forth between JSON. If we don't then it's not that big of a deal since we're
|
||||
// off browser.
|
||||
|
||||
var window = require('global/window');
|
||||
|
||||
var vttjs = module.exports = {
|
||||
WebVTT: require("./vtt.js"),
|
||||
VTTCue: require("./vttcue.js"),
|
||||
VTTRegion: require("./vttregion.js")
|
||||
};
|
||||
|
||||
window.vttjs = vttjs;
|
||||
window.WebVTT = vttjs.WebVTT;
|
||||
|
||||
var cueShim = vttjs.VTTCue;
|
||||
var regionShim = vttjs.VTTRegion;
|
||||
var nativeVTTCue = window.VTTCue;
|
||||
var nativeVTTRegion = window.VTTRegion;
|
||||
|
||||
vttjs.shim = function() {
|
||||
window.VTTCue = cueShim;
|
||||
window.VTTRegion = regionShim;
|
||||
};
|
||||
|
||||
vttjs.restore = function() {
|
||||
window.VTTCue = nativeVTTCue;
|
||||
window.VTTRegion = nativeVTTRegion;
|
||||
};
|
||||
|
||||
if (!window.VTTCue) {
|
||||
vttjs.shim();
|
||||
}
|
||||
|
|
34
node_modules/videojs-vtt.js/lib/browser.js
generated
vendored
34
node_modules/videojs-vtt.js/lib/browser.js
generated
vendored
|
@ -1,17 +1,17 @@
|
|||
(function(root) {
|
||||
var vttjs = root.vttjs = {};
|
||||
var cueShim = vttjs.VTTCue;
|
||||
var regionShim = vttjs.VTTRegion;
|
||||
var oldVTTCue = root.VTTCue;
|
||||
var oldVTTRegion = root.VTTRegion;
|
||||
|
||||
vttjs.shim = function() {
|
||||
vttjs.VTTCue = cueShim;
|
||||
vttjs.VTTRegion = regionShim;
|
||||
};
|
||||
|
||||
vttjs.restore = function() {
|
||||
vttjs.VTTCue = oldVTTCue;
|
||||
vttjs.VTTRegion = oldVTTRegion;
|
||||
};
|
||||
}(this));
|
||||
(function(root) {
|
||||
var vttjs = root.vttjs = {};
|
||||
var cueShim = vttjs.VTTCue;
|
||||
var regionShim = vttjs.VTTRegion;
|
||||
var oldVTTCue = root.VTTCue;
|
||||
var oldVTTRegion = root.VTTRegion;
|
||||
|
||||
vttjs.shim = function() {
|
||||
vttjs.VTTCue = cueShim;
|
||||
vttjs.VTTRegion = regionShim;
|
||||
};
|
||||
|
||||
vttjs.restore = function() {
|
||||
vttjs.VTTCue = oldVTTCue;
|
||||
vttjs.VTTRegion = oldVTTRegion;
|
||||
};
|
||||
}(this));
|
||||
|
|
50
node_modules/videojs-vtt.js/lib/index.js
generated
vendored
50
node_modules/videojs-vtt.js/lib/index.js
generated
vendored
|
@ -1,25 +1,25 @@
|
|||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Default exports for Node. Export the extended versions of VTTCue and
|
||||
// VTTRegion in Node since we likely want the capability to convert back and
|
||||
// forth between JSON. If we don't then it's not that big of a deal since we're
|
||||
// off browser.
|
||||
module.exports = {
|
||||
WebVTT: require("./vtt.js").WebVTT,
|
||||
VTTCue: require("./vttcue-extended.js").VTTCue,
|
||||
VTTRegion: require("./vttregion-extended.js").VTTRegion
|
||||
};
|
||||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Default exports for Node. Export the extended versions of VTTCue and
|
||||
// VTTRegion in Node since we likely want the capability to convert back and
|
||||
// forth between JSON. If we don't then it's not that big of a deal since we're
|
||||
// off browser.
|
||||
module.exports = {
|
||||
WebVTT: require("./vtt.js").WebVTT,
|
||||
VTTCue: require("./vttcue-extended.js").VTTCue,
|
||||
VTTRegion: require("./vttregion-extended.js").VTTRegion
|
||||
};
|
||||
|
|
2698
node_modules/videojs-vtt.js/lib/vtt.js
generated
vendored
2698
node_modules/videojs-vtt.js/lib/vtt.js
generated
vendored
File diff suppressed because it is too large
Load diff
120
node_modules/videojs-vtt.js/lib/vttcue-extended.js
generated
vendored
120
node_modules/videojs-vtt.js/lib/vttcue-extended.js
generated
vendored
|
@ -1,60 +1,60 @@
|
|||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// If we're in Node.js then require VTTCue so we can extend it, otherwise assume
|
||||
// VTTCue is on the global.
|
||||
if (typeof module !== "undefined" && module.exports) {
|
||||
this.VTTCue = this.VTTCue || require("./vttcue").VTTCue;
|
||||
}
|
||||
|
||||
// Extend VTTCue with methods to convert to JSON, from JSON, and construct a
|
||||
// VTTCue from an options object. The primary purpose of this is for use in the
|
||||
// vtt.js test suite (for testing only properties that we care about). It's also
|
||||
// useful if you need to work with VTTCues in JSON format.
|
||||
(function(root) {
|
||||
|
||||
root.VTTCue.prototype.toJSON = function() {
|
||||
var cue = {},
|
||||
self = this;
|
||||
// Filter out getCueAsHTML as it's a function and hasBeenReset and displayState as
|
||||
// they're only used when running the processing model algorithm.
|
||||
Object.keys(this).forEach(function(key) {
|
||||
if (key !== "getCueAsHTML" && key !== "hasBeenReset" && key !== "displayState") {
|
||||
cue[key] = self[key];
|
||||
}
|
||||
});
|
||||
return cue;
|
||||
};
|
||||
|
||||
root.VTTCue.create = function(options) {
|
||||
if (!options.hasOwnProperty("startTime") || !options.hasOwnProperty("endTime") ||
|
||||
!options.hasOwnProperty("text")) {
|
||||
throw new Error("You must at least have start time, end time, and text.");
|
||||
}
|
||||
var cue = new root.VTTCue(options.startTime, options.endTime, options.text);
|
||||
for (var key in options) {
|
||||
if (cue.hasOwnProperty(key)) {
|
||||
cue[key] = options[key];
|
||||
}
|
||||
}
|
||||
return cue;
|
||||
};
|
||||
|
||||
root.VTTCue.fromJSON = function(json) {
|
||||
return this.create(JSON.parse(json));
|
||||
};
|
||||
|
||||
}(this));
|
||||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// If we're in Node.js then require VTTCue so we can extend it, otherwise assume
|
||||
// VTTCue is on the global.
|
||||
if (typeof module !== "undefined" && module.exports) {
|
||||
this.VTTCue = this.VTTCue || require("./vttcue").VTTCue;
|
||||
}
|
||||
|
||||
// Extend VTTCue with methods to convert to JSON, from JSON, and construct a
|
||||
// VTTCue from an options object. The primary purpose of this is for use in the
|
||||
// vtt.js test suite (for testing only properties that we care about). It's also
|
||||
// useful if you need to work with VTTCues in JSON format.
|
||||
(function(root) {
|
||||
|
||||
root.VTTCue.prototype.toJSON = function() {
|
||||
var cue = {},
|
||||
self = this;
|
||||
// Filter out getCueAsHTML as it's a function and hasBeenReset and displayState as
|
||||
// they're only used when running the processing model algorithm.
|
||||
Object.keys(this).forEach(function(key) {
|
||||
if (key !== "getCueAsHTML" && key !== "hasBeenReset" && key !== "displayState") {
|
||||
cue[key] = self[key];
|
||||
}
|
||||
});
|
||||
return cue;
|
||||
};
|
||||
|
||||
root.VTTCue.create = function(options) {
|
||||
if (!options.hasOwnProperty("startTime") || !options.hasOwnProperty("endTime") ||
|
||||
!options.hasOwnProperty("text")) {
|
||||
throw new Error("You must at least have start time, end time, and text.");
|
||||
}
|
||||
var cue = new root.VTTCue(options.startTime, options.endTime, options.text);
|
||||
for (var key in options) {
|
||||
if (cue.hasOwnProperty(key)) {
|
||||
cue[key] = options[key];
|
||||
}
|
||||
}
|
||||
return cue;
|
||||
};
|
||||
|
||||
root.VTTCue.fromJSON = function(json) {
|
||||
return this.create(JSON.parse(json));
|
||||
};
|
||||
|
||||
}(this));
|
||||
|
|
572
node_modules/videojs-vtt.js/lib/vttcue.js
generated
vendored
572
node_modules/videojs-vtt.js/lib/vttcue.js
generated
vendored
|
@ -1,286 +1,286 @@
|
|||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var autoKeyword = "auto";
|
||||
var directionSetting = {
|
||||
"": 1,
|
||||
"lr": 1,
|
||||
"rl": 1
|
||||
};
|
||||
var alignSetting = {
|
||||
"start": 1,
|
||||
"center": 1,
|
||||
"end": 1,
|
||||
"left": 1,
|
||||
"right": 1,
|
||||
"auto": 1,
|
||||
"line-left": 1,
|
||||
"line-right": 1
|
||||
};
|
||||
|
||||
function findDirectionSetting(value) {
|
||||
if (typeof value !== "string") {
|
||||
return false;
|
||||
}
|
||||
var dir = directionSetting[value.toLowerCase()];
|
||||
return dir ? value.toLowerCase() : false;
|
||||
}
|
||||
|
||||
function findAlignSetting(value) {
|
||||
if (typeof value !== "string") {
|
||||
return false;
|
||||
}
|
||||
var align = alignSetting[value.toLowerCase()];
|
||||
return align ? value.toLowerCase() : false;
|
||||
}
|
||||
|
||||
function VTTCue(startTime, endTime, text) {
|
||||
/**
|
||||
* Shim implementation specific properties. These properties are not in
|
||||
* the spec.
|
||||
*/
|
||||
|
||||
// Lets us know when the VTTCue's data has changed in such a way that we need
|
||||
// to recompute its display state. This lets us compute its display state
|
||||
// lazily.
|
||||
this.hasBeenReset = false;
|
||||
|
||||
/**
|
||||
* VTTCue and TextTrackCue properties
|
||||
* http://dev.w3.org/html5/webvtt/#vttcue-interface
|
||||
*/
|
||||
|
||||
var _id = "";
|
||||
var _pauseOnExit = false;
|
||||
var _startTime = startTime;
|
||||
var _endTime = endTime;
|
||||
var _text = text;
|
||||
var _region = null;
|
||||
var _vertical = "";
|
||||
var _snapToLines = true;
|
||||
var _line = "auto";
|
||||
var _lineAlign = "start";
|
||||
var _position = "auto";
|
||||
var _positionAlign = "auto";
|
||||
var _size = 100;
|
||||
var _align = "center";
|
||||
|
||||
Object.defineProperties(this, {
|
||||
"id": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _id;
|
||||
},
|
||||
set: function(value) {
|
||||
_id = "" + value;
|
||||
}
|
||||
},
|
||||
|
||||
"pauseOnExit": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _pauseOnExit;
|
||||
},
|
||||
set: function(value) {
|
||||
_pauseOnExit = !!value;
|
||||
}
|
||||
},
|
||||
|
||||
"startTime": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _startTime;
|
||||
},
|
||||
set: function(value) {
|
||||
if (typeof value !== "number") {
|
||||
throw new TypeError("Start time must be set to a number.");
|
||||
}
|
||||
_startTime = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"endTime": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _endTime;
|
||||
},
|
||||
set: function(value) {
|
||||
if (typeof value !== "number") {
|
||||
throw new TypeError("End time must be set to a number.");
|
||||
}
|
||||
_endTime = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"text": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _text;
|
||||
},
|
||||
set: function(value) {
|
||||
_text = "" + value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"region": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _region;
|
||||
},
|
||||
set: function(value) {
|
||||
_region = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"vertical": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _vertical;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findDirectionSetting(value);
|
||||
// Have to check for false because the setting an be an empty string.
|
||||
if (setting === false) {
|
||||
throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");
|
||||
}
|
||||
_vertical = setting;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"snapToLines": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _snapToLines;
|
||||
},
|
||||
set: function(value) {
|
||||
_snapToLines = !!value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"line": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _line;
|
||||
},
|
||||
set: function(value) {
|
||||
if (typeof value !== "number" && value !== autoKeyword) {
|
||||
throw new SyntaxError("Line: an invalid number or illegal string was specified.");
|
||||
}
|
||||
_line = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"lineAlign": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _lineAlign;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findAlignSetting(value);
|
||||
if (!setting) {
|
||||
console.warn("lineAlign: an invalid or illegal string was specified.");
|
||||
} else {
|
||||
_lineAlign = setting;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"position": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _position;
|
||||
},
|
||||
set: function(value) {
|
||||
if (value < 0 || value > 100) {
|
||||
throw new Error("Position must be between 0 and 100.");
|
||||
}
|
||||
_position = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"positionAlign": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _positionAlign;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findAlignSetting(value);
|
||||
if (!setting) {
|
||||
console.warn("positionAlign: an invalid or illegal string was specified.");
|
||||
} else {
|
||||
_positionAlign = setting;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"size": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _size;
|
||||
},
|
||||
set: function(value) {
|
||||
if (value < 0 || value > 100) {
|
||||
throw new Error("Size must be between 0 and 100.");
|
||||
}
|
||||
_size = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"align": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _align;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findAlignSetting(value);
|
||||
if (!setting) {
|
||||
throw new SyntaxError("align: an invalid or illegal alignment string was specified.");
|
||||
}
|
||||
_align = setting;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Other <track> spec defined properties
|
||||
*/
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#text-track-cue-display-state
|
||||
this.displayState = undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* VTTCue methods
|
||||
*/
|
||||
|
||||
VTTCue.prototype.getCueAsHTML = function() {
|
||||
// Assume WebVTT.convertCueToDOMTree is on the global.
|
||||
return WebVTT.convertCueToDOMTree(window, this.text);
|
||||
};
|
||||
|
||||
module.exports = VTTCue;
|
||||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var autoKeyword = "auto";
|
||||
var directionSetting = {
|
||||
"": 1,
|
||||
"lr": 1,
|
||||
"rl": 1
|
||||
};
|
||||
var alignSetting = {
|
||||
"start": 1,
|
||||
"center": 1,
|
||||
"end": 1,
|
||||
"left": 1,
|
||||
"right": 1,
|
||||
"auto": 1,
|
||||
"line-left": 1,
|
||||
"line-right": 1
|
||||
};
|
||||
|
||||
function findDirectionSetting(value) {
|
||||
if (typeof value !== "string") {
|
||||
return false;
|
||||
}
|
||||
var dir = directionSetting[value.toLowerCase()];
|
||||
return dir ? value.toLowerCase() : false;
|
||||
}
|
||||
|
||||
function findAlignSetting(value) {
|
||||
if (typeof value !== "string") {
|
||||
return false;
|
||||
}
|
||||
var align = alignSetting[value.toLowerCase()];
|
||||
return align ? value.toLowerCase() : false;
|
||||
}
|
||||
|
||||
function VTTCue(startTime, endTime, text) {
|
||||
/**
|
||||
* Shim implementation specific properties. These properties are not in
|
||||
* the spec.
|
||||
*/
|
||||
|
||||
// Lets us know when the VTTCue's data has changed in such a way that we need
|
||||
// to recompute its display state. This lets us compute its display state
|
||||
// lazily.
|
||||
this.hasBeenReset = false;
|
||||
|
||||
/**
|
||||
* VTTCue and TextTrackCue properties
|
||||
* http://dev.w3.org/html5/webvtt/#vttcue-interface
|
||||
*/
|
||||
|
||||
var _id = "";
|
||||
var _pauseOnExit = false;
|
||||
var _startTime = startTime;
|
||||
var _endTime = endTime;
|
||||
var _text = text;
|
||||
var _region = null;
|
||||
var _vertical = "";
|
||||
var _snapToLines = true;
|
||||
var _line = "auto";
|
||||
var _lineAlign = "start";
|
||||
var _position = "auto";
|
||||
var _positionAlign = "auto";
|
||||
var _size = 100;
|
||||
var _align = "center";
|
||||
|
||||
Object.defineProperties(this, {
|
||||
"id": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _id;
|
||||
},
|
||||
set: function(value) {
|
||||
_id = "" + value;
|
||||
}
|
||||
},
|
||||
|
||||
"pauseOnExit": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _pauseOnExit;
|
||||
},
|
||||
set: function(value) {
|
||||
_pauseOnExit = !!value;
|
||||
}
|
||||
},
|
||||
|
||||
"startTime": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _startTime;
|
||||
},
|
||||
set: function(value) {
|
||||
if (typeof value !== "number") {
|
||||
throw new TypeError("Start time must be set to a number.");
|
||||
}
|
||||
_startTime = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"endTime": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _endTime;
|
||||
},
|
||||
set: function(value) {
|
||||
if (typeof value !== "number") {
|
||||
throw new TypeError("End time must be set to a number.");
|
||||
}
|
||||
_endTime = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"text": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _text;
|
||||
},
|
||||
set: function(value) {
|
||||
_text = "" + value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"region": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _region;
|
||||
},
|
||||
set: function(value) {
|
||||
_region = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"vertical": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _vertical;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findDirectionSetting(value);
|
||||
// Have to check for false because the setting an be an empty string.
|
||||
if (setting === false) {
|
||||
throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");
|
||||
}
|
||||
_vertical = setting;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"snapToLines": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _snapToLines;
|
||||
},
|
||||
set: function(value) {
|
||||
_snapToLines = !!value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"line": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _line;
|
||||
},
|
||||
set: function(value) {
|
||||
if (typeof value !== "number" && value !== autoKeyword) {
|
||||
throw new SyntaxError("Line: an invalid number or illegal string was specified.");
|
||||
}
|
||||
_line = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"lineAlign": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _lineAlign;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findAlignSetting(value);
|
||||
if (!setting) {
|
||||
console.warn("lineAlign: an invalid or illegal string was specified.");
|
||||
} else {
|
||||
_lineAlign = setting;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"position": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _position;
|
||||
},
|
||||
set: function(value) {
|
||||
if (value < 0 || value > 100) {
|
||||
throw new Error("Position must be between 0 and 100.");
|
||||
}
|
||||
_position = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"positionAlign": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _positionAlign;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findAlignSetting(value);
|
||||
if (!setting) {
|
||||
console.warn("positionAlign: an invalid or illegal string was specified.");
|
||||
} else {
|
||||
_positionAlign = setting;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"size": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _size;
|
||||
},
|
||||
set: function(value) {
|
||||
if (value < 0 || value > 100) {
|
||||
throw new Error("Size must be between 0 and 100.");
|
||||
}
|
||||
_size = value;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
},
|
||||
|
||||
"align": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _align;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findAlignSetting(value);
|
||||
if (!setting) {
|
||||
throw new SyntaxError("align: an invalid or illegal alignment string was specified.");
|
||||
}
|
||||
_align = setting;
|
||||
this.hasBeenReset = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Other <track> spec defined properties
|
||||
*/
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#text-track-cue-display-state
|
||||
this.displayState = undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* VTTCue methods
|
||||
*/
|
||||
|
||||
VTTCue.prototype.getCueAsHTML = function() {
|
||||
// Assume WebVTT.convertCueToDOMTree is on the global.
|
||||
return WebVTT.convertCueToDOMTree(window, this.text);
|
||||
};
|
||||
|
||||
module.exports = VTTCue;
|
||||
|
|
86
node_modules/videojs-vtt.js/lib/vttregion-extended.js
generated
vendored
86
node_modules/videojs-vtt.js/lib/vttregion-extended.js
generated
vendored
|
@ -1,43 +1,43 @@
|
|||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// If we're in Node.js then require VTTRegion so we can extend it, otherwise assume
|
||||
// VTTRegion is on the global.
|
||||
if (typeof module !== "undefined" && module.exports) {
|
||||
this.VTTRegion = require("./vttregion").VTTRegion;
|
||||
}
|
||||
|
||||
// Extend VTTRegion with methods to convert to JSON, from JSON, and construct a
|
||||
// VTTRegion from an options object. The primary purpose of this is for use in the
|
||||
// vtt.js test suite. It's also useful if you need to work with VTTRegions in
|
||||
// JSON format.
|
||||
(function(root) {
|
||||
|
||||
root.VTTRegion.create = function(options) {
|
||||
var region = new root.VTTRegion();
|
||||
for (var key in options) {
|
||||
if (region.hasOwnProperty(key)) {
|
||||
region[key] = options[key];
|
||||
}
|
||||
}
|
||||
return region;
|
||||
};
|
||||
|
||||
root.VTTRegion.fromJSON = function(json) {
|
||||
return this.create(JSON.parse(json));
|
||||
};
|
||||
|
||||
}(this));
|
||||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// If we're in Node.js then require VTTRegion so we can extend it, otherwise assume
|
||||
// VTTRegion is on the global.
|
||||
if (typeof module !== "undefined" && module.exports) {
|
||||
this.VTTRegion = require("./vttregion").VTTRegion;
|
||||
}
|
||||
|
||||
// Extend VTTRegion with methods to convert to JSON, from JSON, and construct a
|
||||
// VTTRegion from an options object. The primary purpose of this is for use in the
|
||||
// vtt.js test suite. It's also useful if you need to work with VTTRegions in
|
||||
// JSON format.
|
||||
(function(root) {
|
||||
|
||||
root.VTTRegion.create = function(options) {
|
||||
var region = new root.VTTRegion();
|
||||
for (var key in options) {
|
||||
if (region.hasOwnProperty(key)) {
|
||||
region[key] = options[key];
|
||||
}
|
||||
}
|
||||
return region;
|
||||
};
|
||||
|
||||
root.VTTRegion.fromJSON = function(json) {
|
||||
return this.create(JSON.parse(json));
|
||||
};
|
||||
|
||||
}(this));
|
||||
|
|
270
node_modules/videojs-vtt.js/lib/vttregion.js
generated
vendored
270
node_modules/videojs-vtt.js/lib/vttregion.js
generated
vendored
|
@ -1,135 +1,135 @@
|
|||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var scrollSetting = {
|
||||
"": true,
|
||||
"up": true
|
||||
};
|
||||
|
||||
function findScrollSetting(value) {
|
||||
if (typeof value !== "string") {
|
||||
return false;
|
||||
}
|
||||
var scroll = scrollSetting[value.toLowerCase()];
|
||||
return scroll ? value.toLowerCase() : false;
|
||||
}
|
||||
|
||||
function isValidPercentValue(value) {
|
||||
return typeof value === "number" && (value >= 0 && value <= 100);
|
||||
}
|
||||
|
||||
// VTTRegion shim http://dev.w3.org/html5/webvtt/#vttregion-interface
|
||||
function VTTRegion() {
|
||||
var _width = 100;
|
||||
var _lines = 3;
|
||||
var _regionAnchorX = 0;
|
||||
var _regionAnchorY = 100;
|
||||
var _viewportAnchorX = 0;
|
||||
var _viewportAnchorY = 100;
|
||||
var _scroll = "";
|
||||
|
||||
Object.defineProperties(this, {
|
||||
"width": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _width;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) {
|
||||
throw new Error("Width must be between 0 and 100.");
|
||||
}
|
||||
_width = value;
|
||||
}
|
||||
},
|
||||
"lines": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _lines;
|
||||
},
|
||||
set: function(value) {
|
||||
if (typeof value !== "number") {
|
||||
throw new TypeError("Lines must be set to a number.");
|
||||
}
|
||||
_lines = value;
|
||||
}
|
||||
},
|
||||
"regionAnchorY": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _regionAnchorY;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) {
|
||||
throw new Error("RegionAnchorX must be between 0 and 100.");
|
||||
}
|
||||
_regionAnchorY = value;
|
||||
}
|
||||
},
|
||||
"regionAnchorX": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _regionAnchorX;
|
||||
},
|
||||
set: function(value) {
|
||||
if(!isValidPercentValue(value)) {
|
||||
throw new Error("RegionAnchorY must be between 0 and 100.");
|
||||
}
|
||||
_regionAnchorX = value;
|
||||
}
|
||||
},
|
||||
"viewportAnchorY": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _viewportAnchorY;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) {
|
||||
throw new Error("ViewportAnchorY must be between 0 and 100.");
|
||||
}
|
||||
_viewportAnchorY = value;
|
||||
}
|
||||
},
|
||||
"viewportAnchorX": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _viewportAnchorX;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) {
|
||||
throw new Error("ViewportAnchorX must be between 0 and 100.");
|
||||
}
|
||||
_viewportAnchorX = value;
|
||||
}
|
||||
},
|
||||
"scroll": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _scroll;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findScrollSetting(value);
|
||||
// Have to check for false as an empty string is a legal value.
|
||||
if (setting === false) {
|
||||
console.warn("Scroll: an invalid or illegal string was specified.");
|
||||
} else {
|
||||
_scroll = setting;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = VTTRegion;
|
||||
/**
|
||||
* Copyright 2013 vtt.js Contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var scrollSetting = {
|
||||
"": true,
|
||||
"up": true
|
||||
};
|
||||
|
||||
function findScrollSetting(value) {
|
||||
if (typeof value !== "string") {
|
||||
return false;
|
||||
}
|
||||
var scroll = scrollSetting[value.toLowerCase()];
|
||||
return scroll ? value.toLowerCase() : false;
|
||||
}
|
||||
|
||||
function isValidPercentValue(value) {
|
||||
return typeof value === "number" && (value >= 0 && value <= 100);
|
||||
}
|
||||
|
||||
// VTTRegion shim http://dev.w3.org/html5/webvtt/#vttregion-interface
|
||||
function VTTRegion() {
|
||||
var _width = 100;
|
||||
var _lines = 3;
|
||||
var _regionAnchorX = 0;
|
||||
var _regionAnchorY = 100;
|
||||
var _viewportAnchorX = 0;
|
||||
var _viewportAnchorY = 100;
|
||||
var _scroll = "";
|
||||
|
||||
Object.defineProperties(this, {
|
||||
"width": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _width;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) {
|
||||
throw new Error("Width must be between 0 and 100.");
|
||||
}
|
||||
_width = value;
|
||||
}
|
||||
},
|
||||
"lines": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _lines;
|
||||
},
|
||||
set: function(value) {
|
||||
if (typeof value !== "number") {
|
||||
throw new TypeError("Lines must be set to a number.");
|
||||
}
|
||||
_lines = value;
|
||||
}
|
||||
},
|
||||
"regionAnchorY": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _regionAnchorY;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) {
|
||||
throw new Error("RegionAnchorX must be between 0 and 100.");
|
||||
}
|
||||
_regionAnchorY = value;
|
||||
}
|
||||
},
|
||||
"regionAnchorX": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _regionAnchorX;
|
||||
},
|
||||
set: function(value) {
|
||||
if(!isValidPercentValue(value)) {
|
||||
throw new Error("RegionAnchorY must be between 0 and 100.");
|
||||
}
|
||||
_regionAnchorX = value;
|
||||
}
|
||||
},
|
||||
"viewportAnchorY": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _viewportAnchorY;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) {
|
||||
throw new Error("ViewportAnchorY must be between 0 and 100.");
|
||||
}
|
||||
_viewportAnchorY = value;
|
||||
}
|
||||
},
|
||||
"viewportAnchorX": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _viewportAnchorX;
|
||||
},
|
||||
set: function(value) {
|
||||
if (!isValidPercentValue(value)) {
|
||||
throw new Error("ViewportAnchorX must be between 0 and 100.");
|
||||
}
|
||||
_viewportAnchorX = value;
|
||||
}
|
||||
},
|
||||
"scroll": {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _scroll;
|
||||
},
|
||||
set: function(value) {
|
||||
var setting = findScrollSetting(value);
|
||||
// Have to check for false as an empty string is a legal value.
|
||||
if (setting === false) {
|
||||
console.warn("Scroll: an invalid or illegal string was specified.");
|
||||
} else {
|
||||
_scroll = setting;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = VTTRegion;
|
||||
|
|
202
node_modules/videojs-vtt.js/package.json
generated
vendored
202
node_modules/videojs-vtt.js/package.json
generated
vendored
|
@ -1,101 +1,101 @@
|
|||
{
|
||||
"_from": "videojs-vtt.js@^0.15.3",
|
||||
"_id": "videojs-vtt.js@0.15.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-5FvVsICuMRx6Hd7H/Y9s9GDeEtYcXQWzGMS+sl4UX3t/zoHp3y+isSfIPRochnTH7h+Bh1ILyC639xy9Z6kPag==",
|
||||
"_location": "/videojs-vtt.js",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "videojs-vtt.js@^0.15.3",
|
||||
"name": "videojs-vtt.js",
|
||||
"escapedName": "videojs-vtt.js",
|
||||
"rawSpec": "^0.15.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.15.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/video.js"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/videojs-vtt.js/-/videojs-vtt.js-0.15.3.tgz",
|
||||
"_shasum": "84260393b79487fcf195d9372f812d7fab83a993",
|
||||
"_spec": "videojs-vtt.js@^0.15.3",
|
||||
"_where": "G:\\GDrive\\htdocs\\YouPHPTube\\node_modules\\video.js",
|
||||
"author": {
|
||||
"name": "Andreas Gal",
|
||||
"email": "gal@mozilla.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/videojs/vtt.js/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Gary Katsevman",
|
||||
"email": "me@gkatsev.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"global": "^4.3.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "A JavaScript implementation of the WebVTT specification, forked from vtt.js for use with Video.js",
|
||||
"devDependencies": {
|
||||
"async": "0.9.0",
|
||||
"browserify": "^14.3.0",
|
||||
"deumdify": "^1.2.4",
|
||||
"difflet": "git://github.com/humphd/difflet.git#714b82706ad39d75275a886aeff637df5097626f",
|
||||
"dive": "0.3.1",
|
||||
"grunt": "0.4.1",
|
||||
"grunt-bump": "0.0.14",
|
||||
"grunt-cli": "0.1.9",
|
||||
"grunt-contrib-concat": "0.4.0",
|
||||
"grunt-contrib-jshint": "0.10.0",
|
||||
"grunt-contrib-uglify": "0.5.0",
|
||||
"grunt-mocha-test": "0.11.0",
|
||||
"json-stable-stringify": "1.0.0",
|
||||
"mocha": "1.20.1",
|
||||
"node-vtt": "1.1.7",
|
||||
"optimist": "0.6.1",
|
||||
"text-encoding": "0.1.0",
|
||||
"underscore": "1.6.0",
|
||||
"watchify": "^3.9.0"
|
||||
},
|
||||
"files": [
|
||||
"dist/",
|
||||
"lib/browser.js",
|
||||
"lib/index.js",
|
||||
"lib/vtt.js",
|
||||
"lib/vttcue.js",
|
||||
"lib/vttcue-extended.js",
|
||||
"lib/vttregion.js",
|
||||
"lib/vttregion-extended.js"
|
||||
],
|
||||
"homepage": "https://github.com/videojs/vtt.js",
|
||||
"keywords": [
|
||||
"vtt",
|
||||
"webvtt",
|
||||
"track",
|
||||
"captions",
|
||||
"subtitles",
|
||||
"text track"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "lib/browser-index.js",
|
||||
"name": "videojs-vtt.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/videojs/vtt.js.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-umd && npm run build-global",
|
||||
"build-global": "browserify -s vttjs -p deumdify . -o dist/vtt.global.js",
|
||||
"build-umd": "browserify -s vttjs . -o dist/vtt.js",
|
||||
"minify": "grunt uglify:dist uglify:global",
|
||||
"postbuild": "npm run minify",
|
||||
"prepublishOnly": "npm run build",
|
||||
"test": "grunt"
|
||||
},
|
||||
"version": "0.15.3"
|
||||
}
|
||||
{
|
||||
"_from": "videojs-vtt.js@^0.15.3",
|
||||
"_id": "videojs-vtt.js@0.15.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-5FvVsICuMRx6Hd7H/Y9s9GDeEtYcXQWzGMS+sl4UX3t/zoHp3y+isSfIPRochnTH7h+Bh1ILyC639xy9Z6kPag==",
|
||||
"_location": "/videojs-vtt.js",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "videojs-vtt.js@^0.15.3",
|
||||
"name": "videojs-vtt.js",
|
||||
"escapedName": "videojs-vtt.js",
|
||||
"rawSpec": "^0.15.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.15.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/video.js"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/videojs-vtt.js/-/videojs-vtt.js-0.15.3.tgz",
|
||||
"_shasum": "84260393b79487fcf195d9372f812d7fab83a993",
|
||||
"_spec": "videojs-vtt.js@^0.15.3",
|
||||
"_where": "G:\\GDrive\\htdocs\\YouPHPTube\\node_modules\\video.js",
|
||||
"author": {
|
||||
"name": "Andreas Gal",
|
||||
"email": "gal@mozilla.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/videojs/vtt.js/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Gary Katsevman",
|
||||
"email": "me@gkatsev.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"global": "^4.3.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "A JavaScript implementation of the WebVTT specification, forked from vtt.js for use with Video.js",
|
||||
"devDependencies": {
|
||||
"async": "0.9.0",
|
||||
"browserify": "^14.3.0",
|
||||
"deumdify": "^1.2.4",
|
||||
"difflet": "git://github.com/humphd/difflet.git#714b82706ad39d75275a886aeff637df5097626f",
|
||||
"dive": "0.3.1",
|
||||
"grunt": "0.4.1",
|
||||
"grunt-bump": "0.0.14",
|
||||
"grunt-cli": "0.1.9",
|
||||
"grunt-contrib-concat": "0.4.0",
|
||||
"grunt-contrib-jshint": "0.10.0",
|
||||
"grunt-contrib-uglify": "0.5.0",
|
||||
"grunt-mocha-test": "0.11.0",
|
||||
"json-stable-stringify": "1.0.0",
|
||||
"mocha": "1.20.1",
|
||||
"node-vtt": "1.1.7",
|
||||
"optimist": "0.6.1",
|
||||
"text-encoding": "0.1.0",
|
||||
"underscore": "1.6.0",
|
||||
"watchify": "^3.9.0"
|
||||
},
|
||||
"files": [
|
||||
"dist/",
|
||||
"lib/browser.js",
|
||||
"lib/index.js",
|
||||
"lib/vtt.js",
|
||||
"lib/vttcue.js",
|
||||
"lib/vttcue-extended.js",
|
||||
"lib/vttregion.js",
|
||||
"lib/vttregion-extended.js"
|
||||
],
|
||||
"homepage": "https://github.com/videojs/vtt.js",
|
||||
"keywords": [
|
||||
"vtt",
|
||||
"webvtt",
|
||||
"track",
|
||||
"captions",
|
||||
"subtitles",
|
||||
"text track"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "lib/browser-index.js",
|
||||
"name": "videojs-vtt.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/videojs/vtt.js.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-umd && npm run build-global",
|
||||
"build-global": "browserify -s vttjs -p deumdify . -o dist/vtt.global.js",
|
||||
"build-umd": "browserify -s vttjs . -o dist/vtt.js",
|
||||
"minify": "grunt uglify:dist uglify:global",
|
||||
"postbuild": "npm run minify",
|
||||
"prepublishOnly": "npm run build",
|
||||
"test": "grunt"
|
||||
},
|
||||
"version": "0.15.3"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue