add ckplayer
@@ -13,4 +13,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="${ctxStatic}/modules/cmsfront/themes/js/bootstrap.min.js?${_version}"></script>
|
<script src="${ctxStatic}/modules/cmsfront/themes/js/bootstrap.min.js?${_version}"></script>
|
||||||
<script src="${ctxStatic}/modules/cmsfront/themes/js/custom.js?${_version}"></script>
|
<script src="${ctxStatic}/modules/cmsfront/themes/js/custom.js?${_version}"></script>
|
||||||
|
<script src="${ctxStatic}/ueditor/1.4/ueditor.parse.js"></script>
|
||||||
|
<script>uParse('.uparse',{rootPath:'${ctxStatic}/ueditor/1.4/'})</script>
|
||||||
202
modules/static/src/main/resources/static/ckplayer/LICENSE
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
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.
|
||||||
1609
modules/static/src/main/resources/static/ckplayer/css/ckplayer.css
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
202
modules/static/src/main/resources/static/ckplayer/flv.js/LICENSE
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
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.
|
||||||
10584
modules/static/src/main/resources/static/ckplayer/flv.js/flv.js
Normal file
9
modules/static/src/main/resources/static/ckplayer/flv.js/flv.min.js
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
Copyright (c) 2017 Dailymotion (http://www.dailymotion.com)
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
src/remux/mp4-generator.js and src/demux/exp-golomb.ts implementation in this project
|
||||||
|
are derived from the HLS library for video.js (https://github.com/videojs/videojs-contrib-hls)
|
||||||
|
|
||||||
|
That work is also covered by the Apache 2 License, following copyright:
|
||||||
|
Copyright (c) 2013-2015 Brightcove
|
||||||
|
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
27804
modules/static/src/main/resources/static/ckplayer/hls.js/hls.js
Normal file
1
modules/static/src/main/resources/static/ckplayer/hls.js/hls.min.js
vendored
Normal file
7421
modules/static/src/main/resources/static/ckplayer/js/ckplayer.js
Normal file
7
modules/static/src/main/resources/static/ckplayer/js/ckplayer.min.js
vendored
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||||
|
typeof define === 'function' && define.amd ? define(factory) :
|
||||||
|
(global = global || self, global.ckplayerLanguage = factory());
|
||||||
|
}(this, function () { 'use strict';
|
||||||
|
/*
|
||||||
|
* 功能:包含播放器用到的全部相关语言文字
|
||||||
|
*/
|
||||||
|
var language={
|
||||||
|
play:'Play',
|
||||||
|
pause:'Pause',
|
||||||
|
refresh:'Refresh',
|
||||||
|
full:'Fullscreen',
|
||||||
|
exitFull:'Non-Fullscreen',
|
||||||
|
webFull:'Web fullscreen',
|
||||||
|
exitWebFull:'Non-Web fullscreen',
|
||||||
|
theatre:'Theatre',
|
||||||
|
exitTheatre:'Non-theatre',
|
||||||
|
volume:'Volume:',
|
||||||
|
muted:'Mute',
|
||||||
|
exitmuted:'Unmute',
|
||||||
|
seek:'Seek:',
|
||||||
|
waiting:'Waiting',
|
||||||
|
live:'Liveing',
|
||||||
|
backLive:'Back live',
|
||||||
|
lookBack:'Look back:',
|
||||||
|
next:'Next episode',
|
||||||
|
screenshot:'Screenshot',
|
||||||
|
smallwindows:'Small windows',
|
||||||
|
playbackrate:'Speed',
|
||||||
|
playbackrateSuffix:' Speed',
|
||||||
|
track:'Subtitle',
|
||||||
|
noTrack:'No subtitle',
|
||||||
|
definition:'Definition',
|
||||||
|
switchTo:'Switched from:',
|
||||||
|
closeTime:'The advertisement can be closed in {seconds} seconds',
|
||||||
|
closeAd:'Close ad',
|
||||||
|
second:'seconds',
|
||||||
|
details:'View details',
|
||||||
|
copy:'Copy',
|
||||||
|
copySucceeded:'Copy succeeded, can be pasted!',
|
||||||
|
smallwindowsOpen:'The small window function is turned on',
|
||||||
|
screenshotStart:'Screenshot, please wait...',
|
||||||
|
smallwindowsClose:'The small window function is turned off',
|
||||||
|
screenshotClose:'Screenshot function is turned off',
|
||||||
|
loopOpen:'Loop open',
|
||||||
|
loopClose:'Loop close',
|
||||||
|
close:'Close',
|
||||||
|
down:'Down',
|
||||||
|
p50:'50%',
|
||||||
|
p75:'75%',
|
||||||
|
p100:'100%',
|
||||||
|
timeScheduleAdjust:{
|
||||||
|
prohibit:'No dragging',
|
||||||
|
prohibitBackOff:'No repeat viewing',
|
||||||
|
prohibitForward:'Fast forward prohibited',
|
||||||
|
prohibitLookBack:'Some content is forbidden to play',
|
||||||
|
prohibitForwardNotViewed:'Disable playback of parts not viewed'
|
||||||
|
},
|
||||||
|
error:{
|
||||||
|
noMessage:'Unknown error',
|
||||||
|
supportVideoError:'The browser version is too low. It is recommended to replace it with another browser',
|
||||||
|
videoTypeError:'This browser does not support playing this video. It is recommended to replace it with another browser',
|
||||||
|
loadingFailed:'Loading failed',
|
||||||
|
emptied:'An error occurred while loading the frequency file',
|
||||||
|
screenshot:'Screenshot failed',
|
||||||
|
ajax:'Ajax data request error',
|
||||||
|
noVideoContainer:'No video container'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return language;
|
||||||
|
}))
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||||
|
typeof define === 'function' && define.amd ? define(factory) :
|
||||||
|
(global = global || self, global.ckplayerLanguage = factory());
|
||||||
|
}(this, function () { 'use strict';
|
||||||
|
/*
|
||||||
|
* 功能:包含播放器用到的全部相关语言文字
|
||||||
|
*/
|
||||||
|
var language={
|
||||||
|
play:'播放',
|
||||||
|
pause:'暂停',
|
||||||
|
refresh:'重播',
|
||||||
|
full:'全屏',
|
||||||
|
exitFull:'退出全屏',
|
||||||
|
webFull:'页面全屏',
|
||||||
|
exitWebFull:'退出页面全屏',
|
||||||
|
theatre:'剧场模式',
|
||||||
|
exitTheatre:'退出剧场模式',
|
||||||
|
volume:'音量:',
|
||||||
|
muted:'静音',
|
||||||
|
exitmuted:'恢复音量',
|
||||||
|
seek:'seek:',
|
||||||
|
waiting:'缓冲',
|
||||||
|
live:'直播中',
|
||||||
|
backLive:'返回直播',
|
||||||
|
lookBack:'回看:',
|
||||||
|
next:'下一集',
|
||||||
|
screenshot:'视频截图',
|
||||||
|
smallwindows:'小窗口播放功能',
|
||||||
|
playbackrate:'倍速',
|
||||||
|
playbackrateSuffix:'倍',
|
||||||
|
track:'字幕',
|
||||||
|
noTrack:'无字幕',
|
||||||
|
definition:'清晰度',
|
||||||
|
switchTo:'切换成:',
|
||||||
|
closeTime:'{seconds}秒后可关闭广告',
|
||||||
|
closeAd:'关闭广告',
|
||||||
|
second:'秒',
|
||||||
|
details:'查看详情',
|
||||||
|
copy:'复制',
|
||||||
|
copySucceeded:'复制成功,可贴粘!',
|
||||||
|
smallwindowsOpen:'小窗口功能已开启',
|
||||||
|
smallwindowsClose:'小窗口功能已关闭',
|
||||||
|
screenshotStart:'截图中,请稍候...',
|
||||||
|
screenshotClose:'截图功能已关闭',
|
||||||
|
loopOpen:'循环播放',
|
||||||
|
loopClose:'已关闭循环播放',
|
||||||
|
close:'关闭',
|
||||||
|
down:'下载',
|
||||||
|
p50:'50%',
|
||||||
|
p75:'75%',
|
||||||
|
p100:'100%',
|
||||||
|
timeScheduleAdjust:{
|
||||||
|
prohibit:'视频禁止拖动',
|
||||||
|
prohibitBackOff:'视频禁止重复观看',
|
||||||
|
prohibitForward:'视频禁止快进',
|
||||||
|
prohibitLookBack:'视频禁止播放部分内容',
|
||||||
|
prohibitForwardNotViewed:'视频禁止播放未观看的部分'
|
||||||
|
},
|
||||||
|
error:{
|
||||||
|
noMessage:'未知错误',
|
||||||
|
supportVideoError:'该浏览器版本太低,建议更换成其它浏览器',
|
||||||
|
videoTypeError:'该浏览器不支持播放该视频,建议更换成其它浏览器',
|
||||||
|
loadingFailed:'加载失败',
|
||||||
|
emptied:'视频文件加载过程中出现错误',
|
||||||
|
screenshot:'视频截图失败',
|
||||||
|
ajax:'Ajax数据请求错误',
|
||||||
|
noVideoContainer:'未找到放置视频的容器'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return language;
|
||||||
|
}))
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||||
|
typeof define === 'function' && define.amd ? define(factory) :
|
||||||
|
(global = global || self, global.ckplayerLanguage = factory());
|
||||||
|
}(this, function () { 'use strict';
|
||||||
|
/*
|
||||||
|
*功能:包含播放機用到的全部相關語言文字
|
||||||
|
*/
|
||||||
|
var language = {
|
||||||
|
play: '播放',
|
||||||
|
pause: '暫停',
|
||||||
|
refresh: '重播',
|
||||||
|
full: '全屏',
|
||||||
|
exitFull: '退出全屏',
|
||||||
|
webFull: '頁面全屏',
|
||||||
|
exitWebFull: '退出頁面全屏',
|
||||||
|
theatre: '劇場模式',
|
||||||
|
exitTheatre: '退出劇場模式',
|
||||||
|
volume: '音量:',
|
||||||
|
muted: '靜音',
|
||||||
|
exitmuted: '恢復音量',
|
||||||
|
seek: 'seek:',
|
||||||
|
waiting: '緩衝',
|
||||||
|
live: '直播中',
|
||||||
|
backLive: '返回直播',
|
||||||
|
lookBack: '回看:',
|
||||||
|
next: '下一集',
|
||||||
|
screenshot: '視頻截圖',
|
||||||
|
smallwindows: '小視窗播放功能',
|
||||||
|
playbackrate: '倍速',
|
||||||
|
playbackrateSuffix: '倍',
|
||||||
|
track: '字幕',
|
||||||
|
noTrack: '無字幕',
|
||||||
|
definition: '清晰度',
|
||||||
|
switchTo: '切換成:',
|
||||||
|
closeTime: '{seconds}秒後可關閉廣告',
|
||||||
|
closeAd: '關閉廣告',
|
||||||
|
second: '秒',
|
||||||
|
details: '查看詳情',
|
||||||
|
copy: '複製',
|
||||||
|
copySucceeded: '複製成功,可貼粘!',
|
||||||
|
smallwindowsOpen: '小視窗功能已開啟',
|
||||||
|
smallwindowsClose: '小視窗功能已關閉',
|
||||||
|
screenshotStart: '截圖中,請稍候…',
|
||||||
|
screenshotClose: '截圖功能已關閉',
|
||||||
|
loopOpen: '迴圈播放',
|
||||||
|
loopClose: '已關閉迴圈播放',
|
||||||
|
close: '關閉',
|
||||||
|
down: '下載',
|
||||||
|
p50: '50%',
|
||||||
|
p75: '75%',
|
||||||
|
p100: '100%',
|
||||||
|
timeScheduleAdjust: {
|
||||||
|
prohibit: '視頻禁止拖動',
|
||||||
|
prohibitBackOff: '視頻禁止重複觀看',
|
||||||
|
prohibitForward: '視頻禁止快進',
|
||||||
|
prohibitLookBack: '視頻禁止播放部分內容',
|
||||||
|
prohibitForwardNotViewed: '視頻禁止播放未觀看的部分'
|
||||||
|
},
|
||||||
|
error: {
|
||||||
|
noMessage: '未知錯誤',
|
||||||
|
supportVideoError: '該流覽器版本太低,建議更換成其它瀏覽器',
|
||||||
|
videoTypeError: '該瀏覽器不支持播放該視頻,建議更換成其它瀏覽器',
|
||||||
|
loadingFailed: '加載失敗',
|
||||||
|
emptied: '視頻檔案加載過程中出現錯誤',
|
||||||
|
screenshot: '視頻截圖失敗',
|
||||||
|
ajax: 'Ajax數據請求錯誤',
|
||||||
|
noVideoContainer: '未找到放置視頻的容器'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return language;
|
||||||
|
}))
|
||||||
@@ -0,0 +1,202 @@
|
|||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
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.
|
||||||
8
modules/static/src/main/resources/static/ckplayer/mpegts.js/mpegts.min.js
vendored
Normal file
@@ -11,286 +11,284 @@
|
|||||||
var isIE = !!window.ActiveXObject;
|
var isIE = !!window.ActiveXObject;
|
||||||
//定义utils工具
|
//定义utils工具
|
||||||
var utils = {
|
var utils = {
|
||||||
removeLastbs : function(url){
|
removeLastbs : function(url){
|
||||||
return url.replace(/\/$/,'')
|
return url.replace(/\/$/,'');
|
||||||
},
|
},
|
||||||
extend : function(t,s){
|
extend : function(t,s){
|
||||||
var a = arguments,
|
var a = arguments,
|
||||||
notCover = this.isBoolean(a[a.length - 1]) ? a[a.length - 1] : false,
|
notCover = this.isBoolean(a[a.length - 1]) ? a[a.length - 1] : false,
|
||||||
len = this.isBoolean(a[a.length - 1]) ? a.length - 1 : a.length;
|
len = this.isBoolean(a[a.length - 1]) ? a.length - 1 : a.length;
|
||||||
for (var i = 1; i < len; i++) {
|
for (var i = 1; i < len; i++) {
|
||||||
var x = a[i];
|
var x = a[i];
|
||||||
for (var k in x) {
|
for (var k in x) {
|
||||||
if (!notCover || !t.hasOwnProperty(k)) {
|
if (!notCover || !t.hasOwnProperty(k)) {
|
||||||
t[k] = x[k];
|
t[k] = x[k];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
},
|
||||||
|
isIE : isIE,
|
||||||
|
cssRule : isIE ? function(key,style,doc){
|
||||||
|
var indexList,index;
|
||||||
|
doc = doc || document;
|
||||||
|
if(doc.indexList){
|
||||||
|
indexList = doc.indexList;
|
||||||
|
}else{
|
||||||
|
indexList = doc.indexList = {};
|
||||||
|
}
|
||||||
|
var sheetStyle;
|
||||||
|
if(!indexList[key]){
|
||||||
|
if(style === undefined){
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
sheetStyle = doc.createStyleSheet('',index = doc.styleSheets.length);
|
||||||
|
indexList[key] = index;
|
||||||
|
}else{
|
||||||
|
sheetStyle = doc.styleSheets[indexList[key]];
|
||||||
|
}
|
||||||
|
if(style === undefined){
|
||||||
|
return sheetStyle.cssText;
|
||||||
|
}
|
||||||
|
sheetStyle.cssText = sheetStyle.cssText + '\n' + (style || '');
|
||||||
|
} : function(key,style,doc){
|
||||||
|
doc = doc || document;
|
||||||
|
var head = doc.getElementsByTagName('head')[0],node;
|
||||||
|
if(!(node = doc.getElementById(key))){
|
||||||
|
if(style === undefined){
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
node = doc.createElement('style');
|
||||||
|
node.id = key;
|
||||||
|
head.appendChild(node)
|
||||||
|
}
|
||||||
|
if(style === undefined){
|
||||||
|
return node.innerHTML
|
||||||
|
}
|
||||||
|
if(style !== ''){
|
||||||
|
node.innerHTML = node.innerHTML + '\n' + style;
|
||||||
|
}else{
|
||||||
|
head.removeChild(node)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
domReady : function (onready) {
|
||||||
|
var doc = window.document;
|
||||||
|
if (doc.readyState === "complete") {
|
||||||
|
onready();
|
||||||
|
}else{
|
||||||
|
if (isIE) {
|
||||||
|
(function () {
|
||||||
|
if (doc.isReady) return;
|
||||||
|
try {
|
||||||
|
doc.documentElement.doScroll("left");
|
||||||
|
} catch (error) {
|
||||||
|
setTimeout(arguments.callee, 0);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
onready();
|
||||||
}
|
})();
|
||||||
return t;
|
window.attachEvent('onload', function(){
|
||||||
},
|
onready()
|
||||||
isIE : isIE,
|
});
|
||||||
cssRule : isIE ? function(key,style,doc){
|
} else {
|
||||||
var indexList,index;
|
doc.addEventListener("DOMContentLoaded", function () {
|
||||||
doc = doc || document;
|
doc.removeEventListener("DOMContentLoaded", arguments.callee, false);
|
||||||
if(doc.indexList){
|
onready();
|
||||||
indexList = doc.indexList;
|
}, false);
|
||||||
}else{
|
window.addEventListener('load', function(){onready()}, false);
|
||||||
indexList = doc.indexList = {};
|
|
||||||
}
|
|
||||||
var sheetStyle;
|
|
||||||
if(!indexList[key]){
|
|
||||||
if(style === undefined){
|
|
||||||
return ''
|
|
||||||
}
|
|
||||||
sheetStyle = doc.createStyleSheet('',index = doc.styleSheets.length);
|
|
||||||
indexList[key] = index;
|
|
||||||
}else{
|
|
||||||
sheetStyle = doc.styleSheets[indexList[key]];
|
|
||||||
}
|
|
||||||
if(style === undefined){
|
|
||||||
return sheetStyle.cssText
|
|
||||||
}
|
|
||||||
sheetStyle.cssText = sheetStyle.cssText + '\n' + (style || '')
|
|
||||||
} : function(key,style,doc){
|
|
||||||
doc = doc || document;
|
|
||||||
var head = doc.getElementsByTagName('head')[0],node;
|
|
||||||
if(!(node = doc.getElementById(key))){
|
|
||||||
if(style === undefined){
|
|
||||||
return ''
|
|
||||||
}
|
|
||||||
node = doc.createElement('style');
|
|
||||||
node.id = key;
|
|
||||||
head.appendChild(node)
|
|
||||||
}
|
|
||||||
if(style === undefined){
|
|
||||||
return node.innerHTML
|
|
||||||
}
|
|
||||||
if(style !== ''){
|
|
||||||
node.innerHTML = node.innerHTML + '\n' + style;
|
|
||||||
}else{
|
|
||||||
head.removeChild(node)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
domReady : function (onready) {
|
|
||||||
var doc = window.document;
|
|
||||||
if (doc.readyState === "complete") {
|
|
||||||
onready();
|
|
||||||
}else{
|
|
||||||
if (isIE) {
|
|
||||||
(function () {
|
|
||||||
if (doc.isReady) return;
|
|
||||||
try {
|
|
||||||
doc.documentElement.doScroll("left");
|
|
||||||
} catch (error) {
|
|
||||||
setTimeout(arguments.callee, 0);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
onready();
|
|
||||||
})();
|
|
||||||
window.attachEvent('onload', function(){
|
|
||||||
onready()
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
doc.addEventListener("DOMContentLoaded", function () {
|
|
||||||
doc.removeEventListener("DOMContentLoaded", arguments.callee, false);
|
|
||||||
onready();
|
|
||||||
}, false);
|
|
||||||
window.addEventListener('load', function(){onready()}, false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
each : function(obj, iterator, context) {
|
each : function(obj, iterator, context) {
|
||||||
if (obj == null) return;
|
if (obj == null) return;
|
||||||
if (obj.length === +obj.length) {
|
if (obj.length === +obj.length) {
|
||||||
for (var i = 0, l = obj.length; i < l; i++) {
|
for (var i = 0, l = obj.length; i < l; i++) {
|
||||||
if(iterator.call(context, obj[i], i, obj) === false)
|
if(iterator.call(context, obj[i], i, obj) === false)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (var key in obj) {
|
||||||
|
if (obj.hasOwnProperty(key)) {
|
||||||
|
if(iterator.call(context, obj[key], key, obj) === false)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
inArray : function(arr,item){
|
||||||
|
var index = -1;
|
||||||
|
this.each(arr,function(v,i){
|
||||||
|
if(v === item){
|
||||||
|
index = i;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return index;
|
||||||
|
},
|
||||||
|
pushItem : function(arr,item){
|
||||||
|
if(this.inArray(arr,item)==-1){
|
||||||
|
arr.push(item)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
trim: function (str) {
|
||||||
|
return str.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g, '');
|
||||||
|
},
|
||||||
|
indexOf: function (array, item, start) {
|
||||||
|
var index = -1;
|
||||||
|
start = this.isNumber(start) ? start : 0;
|
||||||
|
this.each(array, function (v, i) {
|
||||||
|
if (i >= start && v === item) {
|
||||||
|
index = i;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return index;
|
||||||
|
},
|
||||||
|
hasClass: function (element, className) {
|
||||||
|
className = className.replace(/(^[ ]+)|([ ]+$)/g, '').replace(/[ ]{2,}/g, ' ').split(' ');
|
||||||
|
for (var i = 0, ci, cls = element.className; ci = className[i++];) {
|
||||||
|
if (!new RegExp('\\b' + ci + '\\b', 'i').test(cls)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return i - 1 == className.length;
|
||||||
|
},
|
||||||
|
addClass:function (elm, classNames) {
|
||||||
|
if(!elm)return;
|
||||||
|
classNames = this.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');
|
||||||
|
for(var i = 0,ci,cls = elm.className;ci=classNames[i++];){
|
||||||
|
if(!new RegExp('\\b' + ci + '\\b').test(cls)){
|
||||||
|
cls += ' ' + ci;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elm.className = utils.trim(cls);
|
||||||
|
},
|
||||||
|
removeClass:function (elm, classNames) {
|
||||||
|
classNames = this.isArray(classNames) ? classNames :
|
||||||
|
this.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');
|
||||||
|
for(var i = 0,ci,cls = elm.className;ci=classNames[i++];){
|
||||||
|
cls = cls.replace(new RegExp('\\b' + ci + '\\b'),'');
|
||||||
|
}
|
||||||
|
cls = this.trim(cls).replace(/[ ]{2,}/g,' ');
|
||||||
|
elm.className = cls;
|
||||||
|
!cls && elm.removeAttribute('className');
|
||||||
|
},
|
||||||
|
on: function (element, type, handler) {
|
||||||
|
var types = this.isArray(type) ? type : type.split(/\s+/),
|
||||||
|
k = types.length;
|
||||||
|
if (k) while (k--) {
|
||||||
|
type = types[k];
|
||||||
|
if (element.addEventListener) {
|
||||||
|
element.addEventListener(type, handler, false);
|
||||||
} else {
|
} else {
|
||||||
for (var key in obj) {
|
if (!handler._d) {
|
||||||
if (obj.hasOwnProperty(key)) {
|
handler._d = {
|
||||||
if(iterator.call(context, obj[key], key, obj) === false)
|
els : []
|
||||||
return false;
|
};
|
||||||
|
}
|
||||||
|
var key = type + handler.toString(),index = utils.indexOf(handler._d.els,element);
|
||||||
|
if (!handler._d[key] || index == -1) {
|
||||||
|
if(index == -1){
|
||||||
|
handler._d.els.push(element);
|
||||||
}
|
}
|
||||||
}
|
if(!handler._d[key]){
|
||||||
}
|
handler._d[key] = function (evt) {
|
||||||
},
|
return handler.call(evt.srcElement, evt || window.event);
|
||||||
inArray : function(arr,item){
|
|
||||||
var index = -1;
|
|
||||||
this.each(arr,function(v,i){
|
|
||||||
if(v === item){
|
|
||||||
index = i;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return index;
|
|
||||||
},
|
|
||||||
pushItem : function(arr,item){
|
|
||||||
if(this.inArray(arr,item)==-1){
|
|
||||||
arr.push(item)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
trim: function (str) {
|
|
||||||
return str.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g, '');
|
|
||||||
},
|
|
||||||
indexOf: function (array, item, start) {
|
|
||||||
var index = -1;
|
|
||||||
start = this.isNumber(start) ? start : 0;
|
|
||||||
this.each(array, function (v, i) {
|
|
||||||
if (i >= start && v === item) {
|
|
||||||
index = i;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return index;
|
|
||||||
},
|
|
||||||
hasClass: function (element, className) {
|
|
||||||
className = className.replace(/(^[ ]+)|([ ]+$)/g, '').replace(/[ ]{2,}/g, ' ').split(' ');
|
|
||||||
for (var i = 0, ci, cls = element.className; ci = className[i++];) {
|
|
||||||
if (!new RegExp('\\b' + ci + '\\b', 'i').test(cls)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return i - 1 == className.length;
|
|
||||||
},
|
|
||||||
addClass:function (elm, classNames) {
|
|
||||||
if(!elm)return;
|
|
||||||
classNames = this.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');
|
|
||||||
for(var i = 0,ci,cls = elm.className;ci=classNames[i++];){
|
|
||||||
if(!new RegExp('\\b' + ci + '\\b').test(cls)){
|
|
||||||
cls += ' ' + ci;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elm.className = utils.trim(cls);
|
|
||||||
},
|
|
||||||
removeClass:function (elm, classNames) {
|
|
||||||
classNames = this.isArray(classNames) ? classNames :
|
|
||||||
this.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');
|
|
||||||
for(var i = 0,ci,cls = elm.className;ci=classNames[i++];){
|
|
||||||
cls = cls.replace(new RegExp('\\b' + ci + '\\b'),'')
|
|
||||||
}
|
|
||||||
cls = this.trim(cls).replace(/[ ]{2,}/g,' ');
|
|
||||||
elm.className = cls;
|
|
||||||
!cls && elm.removeAttribute('className');
|
|
||||||
},
|
|
||||||
on: function (element, type, handler) {
|
|
||||||
var types = this.isArray(type) ? type : type.split(/\s+/),
|
|
||||||
k = types.length;
|
|
||||||
if (k) while (k--) {
|
|
||||||
type = types[k];
|
|
||||||
if (element.addEventListener) {
|
|
||||||
element.addEventListener(type, handler, false);
|
|
||||||
} else {
|
|
||||||
if (!handler._d) {
|
|
||||||
handler._d = {
|
|
||||||
els : []
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
var key = type + handler.toString(),index = utils.indexOf(handler._d.els,element);
|
element.attachEvent('on' + type, handler._d[key]);
|
||||||
if (!handler._d[key] || index == -1) {
|
|
||||||
if(index == -1){
|
|
||||||
handler._d.els.push(element);
|
|
||||||
}
|
|
||||||
if(!handler._d[key]){
|
|
||||||
handler._d[key] = function (evt) {
|
|
||||||
return handler.call(evt.srcElement, evt || window.event);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
element.attachEvent('on' + type, handler._d[key]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
element = null;
|
}
|
||||||
},
|
element = null;
|
||||||
off: function (element, type, handler) {
|
},
|
||||||
var types = this.isArray(type) ? type : type.split(/\s+/),
|
off: function (element, type, handler) {
|
||||||
k = types.length;
|
var types = this.isArray(type) ? type : type.split(/\s+/),
|
||||||
if (k) while (k--) {
|
k = types.length;
|
||||||
type = types[k];
|
if (k) while (k--) {
|
||||||
if (element.removeEventListener) {
|
type = types[k];
|
||||||
element.removeEventListener(type, handler, false);
|
if (element.removeEventListener) {
|
||||||
} else {
|
element.removeEventListener(type, handler, false);
|
||||||
var key = type + handler.toString();
|
} else {
|
||||||
try{
|
var key = type + handler.toString();
|
||||||
element.detachEvent('on' + type, handler._d ? handler._d[key] : handler);
|
|
||||||
}catch(e){}
|
|
||||||
if (handler._d && handler._d[key]) {
|
|
||||||
var index = utils.indexOf(handler._d.els,element);
|
|
||||||
if(index!=-1){
|
|
||||||
handler._d.els.splice(index,1);
|
|
||||||
}
|
|
||||||
handler._d.els.length == 0 && delete handler._d[key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
loadFile : function () {
|
|
||||||
var tmpList = [];
|
|
||||||
function getItem(doc,obj){
|
|
||||||
try{
|
try{
|
||||||
for(var i= 0,ci;ci=tmpList[i++];){
|
element.detachEvent('on' + type, handler._d ? handler._d[key] : handler);
|
||||||
if(ci.doc === doc && ci.url == (obj.src || obj.href)){
|
}catch(e){}
|
||||||
return ci;
|
if (handler._d && handler._d[key]) {
|
||||||
}
|
var index = utils.indexOf(handler._d.els,element);
|
||||||
|
if(index!=-1){
|
||||||
|
handler._d.els.splice(index,1);
|
||||||
}
|
}
|
||||||
}catch(e){
|
handler._d.els.length == 0 && delete handler._d[key];
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
loadFile : function () {
|
||||||
|
var tmpList = [];
|
||||||
|
function getItem(doc,obj){
|
||||||
|
try{
|
||||||
|
for(var i= 0,ci;ci=tmpList[i++];){
|
||||||
|
if(ci.doc === doc && ci.url == (obj.src || obj.href)){
|
||||||
|
return ci;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}catch(e){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return function (doc, obj, fn) {
|
||||||
|
var item = getItem(doc,obj);
|
||||||
|
if (item) {
|
||||||
|
if(item.ready){
|
||||||
|
fn && fn();
|
||||||
|
}else{
|
||||||
|
item.funs.push(fn);
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
return function (doc, obj, fn) {
|
tmpList.push({
|
||||||
var item = getItem(doc,obj);
|
doc:doc,
|
||||||
if (item) {
|
url:obj.src||obj.href,
|
||||||
if(item.ready){
|
funs:[fn]
|
||||||
fn && fn();
|
});
|
||||||
}else{
|
if (!doc.body) {
|
||||||
item.funs.push(fn)
|
var html = [];
|
||||||
}
|
for(var p in obj){
|
||||||
return;
|
if(p == 'tag')continue;
|
||||||
|
html.push(p + '="' + obj[p] + '"');
|
||||||
}
|
}
|
||||||
tmpList.push({
|
doc.write('<' + obj.tag + ' ' + html.join(' ') + ' ></'+obj.tag+'>');
|
||||||
doc:doc,
|
return;
|
||||||
url:obj.src||obj.href,
|
}
|
||||||
funs:[fn]
|
if (obj.id && doc.getElementById(obj.id)) {
|
||||||
});
|
return;
|
||||||
if (!doc.body) {
|
}
|
||||||
var html = [];
|
var element = doc.createElement(obj.tag);
|
||||||
for(var p in obj){
|
delete obj.tag;
|
||||||
if(p == 'tag')continue;
|
for (var p in obj) {
|
||||||
html.push(p + '="' + obj[p] + '"')
|
element.setAttribute(p, obj[p]);
|
||||||
}
|
}
|
||||||
doc.write('<' + obj.tag + ' ' + html.join(' ') + ' ></'+obj.tag+'>');
|
element.onload = element.onreadystatechange = function () {
|
||||||
return;
|
if (!this.readyState || /loaded|complete/.test(this.readyState)) {
|
||||||
}
|
item = getItem(doc,obj);
|
||||||
if (obj.id && doc.getElementById(obj.id)) {
|
if (item.funs.length > 0) {
|
||||||
return;
|
item.ready = 1;
|
||||||
}
|
for (var fi; fi = item.funs.pop();) {
|
||||||
var element = doc.createElement(obj.tag);
|
fi();
|
||||||
delete obj.tag;
|
|
||||||
for (var p in obj) {
|
|
||||||
element.setAttribute(p, obj[p]);
|
|
||||||
}
|
|
||||||
element.onload = element.onreadystatechange = function () {
|
|
||||||
if (!this.readyState || /loaded|complete/.test(this.readyState)) {
|
|
||||||
item = getItem(doc,obj);
|
|
||||||
if (item.funs.length > 0) {
|
|
||||||
item.ready = 1;
|
|
||||||
for (var fi; fi = item.funs.pop();) {
|
|
||||||
fi();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
element.onload = element.onreadystatechange = null;
|
|
||||||
}
|
}
|
||||||
};
|
element.onload = element.onreadystatechange = null;
|
||||||
element.onerror = function(){
|
}
|
||||||
throw Error('The load '+(obj.href||obj.src)+' fails,check the url')
|
};
|
||||||
};
|
element.onerror = function(){
|
||||||
doc.getElementsByTagName("head")[0].appendChild(element);
|
throw Error('The load '+(obj.href||obj.src)+' fails,check the url');
|
||||||
}
|
};
|
||||||
}()
|
doc.getElementsByTagName("head")[0].appendChild(element);
|
||||||
|
}
|
||||||
|
}()
|
||||||
};
|
};
|
||||||
utils.each(['String', 'Function', 'Array', 'Number', 'RegExp', 'Object','Boolean'], function (v) {
|
utils.each(['String', 'Function', 'Array', 'Number', 'RegExp', 'Object','Boolean'], function (v) {
|
||||||
utils['is' + v] = function (obj) {
|
utils['is' + v] = function (obj) {
|
||||||
@@ -312,10 +310,10 @@
|
|||||||
utils.domReady(function(){
|
utils.domReady(function(){
|
||||||
var contents;
|
var contents;
|
||||||
if(document.querySelectorAll){
|
if(document.querySelectorAll){
|
||||||
contents = document.querySelectorAll(selector)
|
contents = document.querySelectorAll(selector);
|
||||||
}else{
|
}else{
|
||||||
if(/^#/.test(selector)){
|
if(/^#/.test(selector)){
|
||||||
contents = [document.getElementById(selector.replace(/^#/,''))]
|
contents = [document.getElementById(selector.replace(/^#/,''))];
|
||||||
}else if(/^\./.test(selector)){
|
}else if(/^\./.test(selector)){
|
||||||
var contents = [];
|
var contents = [];
|
||||||
utils.each(document.getElementsByTagName('*'),function(node){
|
utils.each(document.getElementsByTagName('*'),function(node){
|
||||||
@@ -400,7 +398,6 @@ UE.parse.register('table', function (utils) {
|
|||||||
selector + ' td p{margin:0;padding:0;}',
|
selector + ' td p{margin:0;padding:0;}',
|
||||||
document);
|
document);
|
||||||
//填充空的单元格
|
//填充空的单元格
|
||||||
|
|
||||||
utils.each('td th caption'.split(' '), function (tag) {
|
utils.each('td th caption'.split(' '), function (tag) {
|
||||||
var cells = root.getElementsByTagName(tag);
|
var cells = root.getElementsByTagName(tag);
|
||||||
cells.length && utils.each(cells, function (node) {
|
cells.length && utils.each(cells, function (node) {
|
||||||
@@ -550,18 +547,13 @@ UE.parse.register('charts',function( utils ){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( sources = parseSources() ) {
|
if ( sources = parseSources() ) {
|
||||||
|
|
||||||
loadResources();
|
loadResources();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function parseSources () {
|
function parseSources () {
|
||||||
|
|
||||||
if ( !containers ) {
|
if ( !containers ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return extractChartData( containers );
|
return extractChartData( containers );
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -570,22 +562,14 @@ UE.parse.register('charts',function( utils ){
|
|||||||
* 提取数据
|
* 提取数据
|
||||||
*/
|
*/
|
||||||
function extractChartData ( rootNode ) {
|
function extractChartData ( rootNode ) {
|
||||||
|
|
||||||
var data = [],
|
var data = [],
|
||||||
tables = rootNode.getElementsByTagName( "table" );
|
tables = rootNode.getElementsByTagName( "table" );
|
||||||
|
|
||||||
for ( var i = 0, tableNode; tableNode = tables[ i ]; i++ ) {
|
for ( var i = 0, tableNode; tableNode = tables[ i ]; i++ ) {
|
||||||
|
|
||||||
if ( tableNode.getAttribute( "data-chart" ) !== null ) {
|
if ( tableNode.getAttribute( "data-chart" ) !== null ) {
|
||||||
|
|
||||||
data.push( formatData( tableNode ) );
|
data.push( formatData( tableNode ) );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return data.length ? data : null;
|
return data.length ? data : null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatData ( tableNode ) {
|
function formatData ( tableNode ) {
|
||||||
@@ -596,130 +580,90 @@ UE.parse.register('charts',function( utils ){
|
|||||||
|
|
||||||
//提取table数据
|
//提取table数据
|
||||||
for ( var i = 0, row; row = tableNode.rows[ i ]; i++ ) {
|
for ( var i = 0, row; row = tableNode.rows[ i ]; i++ ) {
|
||||||
|
|
||||||
var rowData = [];
|
var rowData = [];
|
||||||
|
|
||||||
for ( var j = 0, cell; cell = row.cells[ j ]; j++ ) {
|
for ( var j = 0, cell; cell = row.cells[ j ]; j++ ) {
|
||||||
|
|
||||||
var value = ( cell.innerText || cell.textContent || '' );
|
var value = ( cell.innerText || cell.textContent || '' );
|
||||||
rowData.push( cell.tagName == 'TH' ? value:(value | 0) );
|
rowData.push( cell.tagName == 'TH' ? value:(value | 0) );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data.push( rowData );
|
data.push( rowData );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//解析元信息
|
//解析元信息
|
||||||
meta = meta.split( ";" );
|
meta = meta.split( ";" );
|
||||||
for ( var i = 0, metaData; metaData = meta[ i ]; i++ ) {
|
for ( var i = 0, metaData; metaData = meta[ i ]; i++ ) {
|
||||||
|
|
||||||
metaData = metaData.split( ":" );
|
metaData = metaData.split( ":" );
|
||||||
metaConfig[ metaData[ 0 ] ] = metaData[ 1 ];
|
metaConfig[ metaData[ 0 ] ] = metaData[ 1 ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
table: tableNode,
|
table: tableNode,
|
||||||
meta: metaConfig,
|
meta: metaConfig,
|
||||||
data: data
|
data: data
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//加载资源
|
//加载资源
|
||||||
function loadResources () {
|
function loadResources () {
|
||||||
|
|
||||||
// loadJQuery();
|
// loadJQuery();
|
||||||
loadHighcharts();
|
loadHighcharts();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// function loadJQuery () {
|
// function loadJQuery () {
|
||||||
//
|
//
|
||||||
// //不存在jquery, 则加载jquery
|
// //不存在jquery, 则加载jquery
|
||||||
// if ( !window.jQuery ) {
|
// if ( !window.jQuery ) {
|
||||||
//
|
|
||||||
// utils.loadFile(document,{
|
// utils.loadFile(document,{
|
||||||
// src : resourceRoot + "/third-party/jquery.min.js",
|
// src : resourceRoot + "/third-party/jquery.min.js",
|
||||||
// tag : "script",
|
// tag : "script",
|
||||||
// type : "text/javascript",
|
// type : "text/javascript",
|
||||||
// defer : "defer"
|
// defer : "defer"
|
||||||
// },function(){
|
// },function(){
|
||||||
//
|
|
||||||
// loadHighcharts();
|
// loadHighcharts();
|
||||||
//
|
|
||||||
// });
|
// });
|
||||||
//
|
|
||||||
// } else {
|
// } else {
|
||||||
//
|
|
||||||
// loadHighcharts();
|
// loadHighcharts();
|
||||||
//
|
|
||||||
// }
|
// }
|
||||||
//
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
function loadHighcharts () {
|
function loadHighcharts () {
|
||||||
|
|
||||||
//不存在Highcharts, 则加载Highcharts
|
//不存在Highcharts, 则加载Highcharts
|
||||||
if ( !window.Highcharts ) {
|
if ( !window.Highcharts ) {
|
||||||
|
|
||||||
utils.loadFile(document,{
|
utils.loadFile(document,{
|
||||||
src : resourceRoot + "/third-party/highcharts/highcharts.js",
|
src : resourceRoot + "/third-party/highcharts/highcharts.js",
|
||||||
tag : "script",
|
tag : "script",
|
||||||
type : "text/javascript",
|
type : "text/javascript",
|
||||||
defer : "defer"
|
defer : "defer"
|
||||||
},function(){
|
},function(){
|
||||||
|
|
||||||
loadTypeConfig();
|
loadTypeConfig();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
loadTypeConfig();
|
loadTypeConfig();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//加载图表差异化配置文件
|
//加载图表差异化配置文件
|
||||||
function loadTypeConfig () {
|
function loadTypeConfig () {
|
||||||
|
|
||||||
utils.loadFile(document,{
|
utils.loadFile(document,{
|
||||||
src : resourceRoot + "/dialogs/charts/chart.config.js",
|
src : resourceRoot + "/dialogs/charts/chart.config.js",
|
||||||
tag : "script",
|
tag : "script",
|
||||||
type : "text/javascript",
|
type : "text/javascript",
|
||||||
defer : "defer"
|
defer : "defer"
|
||||||
},function(){
|
},function(){
|
||||||
|
|
||||||
render();
|
render();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//渲染图表
|
//渲染图表
|
||||||
function render () {
|
function render () {
|
||||||
|
|
||||||
var config = null,
|
var config = null,
|
||||||
chartConfig = null,
|
chartConfig = null,
|
||||||
container = null;
|
container = null;
|
||||||
|
|
||||||
for ( var i = 0, len = sources.length; i < len; i++ ) {
|
for ( var i = 0, len = sources.length; i < len; i++ ) {
|
||||||
|
|
||||||
config = sources[ i ];
|
config = sources[ i ];
|
||||||
|
|
||||||
chartConfig = analysisConfig( config );
|
chartConfig = analysisConfig( config );
|
||||||
|
|
||||||
container = createContainer( config.table );
|
container = createContainer( config.table );
|
||||||
|
|
||||||
renderChart( container, typeConfig[ config.meta.chartType ], chartConfig );
|
renderChart( container, typeConfig[ config.meta.chartType ], chartConfig );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -729,10 +673,7 @@ UE.parse.register('charts',function( utils ){
|
|||||||
* @param config 图表通用配置
|
* @param config 图表通用配置
|
||||||
* */
|
* */
|
||||||
function renderChart ( container, typeConfig, config ) {
|
function renderChart ( container, typeConfig, config ) {
|
||||||
|
|
||||||
|
|
||||||
$( container ).highcharts( $.extend( {}, typeConfig, {
|
$( container ).highcharts( $.extend( {}, typeConfig, {
|
||||||
|
|
||||||
credits: {
|
credits: {
|
||||||
enabled: false
|
enabled: false
|
||||||
},
|
},
|
||||||
@@ -774,9 +715,7 @@ UE.parse.register('charts',function( utils ){
|
|||||||
borderWidth: 1
|
borderWidth: 1
|
||||||
},
|
},
|
||||||
series: config.series
|
series: config.series
|
||||||
|
|
||||||
} ));
|
} ));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -808,21 +747,14 @@ UE.parse.register('charts',function( utils ){
|
|||||||
if ( meta.dataFormat != "1" ) {
|
if ( meta.dataFormat != "1" ) {
|
||||||
|
|
||||||
for ( var i = 0, len = data.length; i < len ; i++ ) {
|
for ( var i = 0, len = data.length; i < len ; i++ ) {
|
||||||
|
|
||||||
for ( var j = 0, jlen = data[ i ].length; j < jlen; j++ ) {
|
for ( var j = 0, jlen = data[ i ].length; j < jlen; j++ ) {
|
||||||
|
|
||||||
if ( !result[ j ] ) {
|
if ( !result[ j ] ) {
|
||||||
result[ j ] = [];
|
result[ j ] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
result[ j ][ i ] = data[ i ][ j ];
|
result[ j ][ i ] = data[ i ][ j ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data = result;
|
data = result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result = {};
|
result = {};
|
||||||
@@ -850,11 +782,8 @@ UE.parse.register('charts',function( utils ){
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
var curData = [];
|
var curData = [];
|
||||||
|
|
||||||
for ( var i = 1, len = data[ 0 ].length; i < len; i++ ) {
|
for ( var i = 1, len = data[ 0 ].length; i < len; i++ ) {
|
||||||
|
|
||||||
curData.push( [ data[ 0 ][ i ], data[ 1 ][ i ] | 0 ] );
|
curData.push( [ data[ 0 ][ i ], data[ 1 ][ i ] | 0 ] );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//饼图
|
//饼图
|
||||||
@@ -867,11 +796,8 @@ UE.parse.register('charts',function( utils ){
|
|||||||
result.series = series;
|
result.series = series;
|
||||||
result.title = meta.title;
|
result.title = meta.title;
|
||||||
result.suffix = meta.suffix;
|
result.suffix = meta.suffix;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -985,45 +911,34 @@ UE.parse.register('list',function(utils){
|
|||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
UE.parse.register('vedio',function(utils){
|
UE.parse.register('video',function(utils){
|
||||||
var video = this.root.getElementsByTagName('video'),
|
var video = this.root.getElementsByTagName('video'),
|
||||||
audio = this.root.getElementsByTagName('audio');
|
audio = this.root.getElementsByTagName('audio');
|
||||||
|
if(video && video.length || audio && audio.length){
|
||||||
document.createElement('video');document.createElement('audio');
|
var ctxStatic = utils.removeLastbs(this.rootPath) + '/../..';
|
||||||
if(video.length || audio.length){
|
|
||||||
// var sourcePath = utils.removeLastbs(this.rootPath),
|
|
||||||
// jsurl = sourcePath + '/third-party/video-js/video.js',
|
|
||||||
// cssurl = sourcePath + '/third-party/video-js/video-js.min.css',
|
|
||||||
// swfUrl = sourcePath + '/third-party/video-js/video-js.swf';
|
|
||||||
//
|
|
||||||
// if(window.videojs) {
|
|
||||||
// videojs.autoSetup();
|
|
||||||
// } else {
|
|
||||||
// utils.loadFile(document,{
|
|
||||||
// id : "video_css",
|
|
||||||
// tag : "link",
|
|
||||||
// rel : "stylesheet",
|
|
||||||
// type : "text/css",
|
|
||||||
// href : cssurl
|
|
||||||
// });
|
|
||||||
// utils.loadFile(document,{
|
|
||||||
// id : "video_js",
|
|
||||||
// src : jsurl,
|
|
||||||
// tag : "script",
|
|
||||||
// type : "text/javascript"
|
|
||||||
// },function(){
|
|
||||||
// videojs.options.flash.swf = swfUrl;
|
|
||||||
// videojs.autoSetup();
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
var ctxStatic = utils.removeLastbs(this.ctxStatic);
|
|
||||||
utils.loadFile(document,{
|
utils.loadFile(document,{
|
||||||
id : "ckplayer_js",
|
id : "ckplayer_css", tag : "link", rel : "stylesheet", type : "text/css",
|
||||||
src : ctxStatic + "/ckplayer/6.7/ckplayer.js",
|
href : ctxStatic + "/ckplayer/css/ckplayer.css",
|
||||||
tag : "script",
|
});
|
||||||
type : "text/javascript"
|
utils.loadFile(document,{
|
||||||
|
id : "ckplayer_js", tag : "script", type : "text/javascript",
|
||||||
|
src : ctxStatic + "/ckplayer/js/ckplayer.min.js"
|
||||||
},function(){
|
},function(){
|
||||||
CKobject.init(ctxStatic + "/ckplayer/6.7/");
|
var ckplayerInit = function(idx) {
|
||||||
|
var $this = $(this), src = $this.attr('src');
|
||||||
|
$this.attr('id', 'video_element'+idx);
|
||||||
|
if ($('#video_container'+idx).length <= 0){
|
||||||
|
$('#video_element'+idx).before('<div id="video_container'+idx+'" style="width:'
|
||||||
|
+$this.attr('width')+'px;height:'+$this.attr('height')
|
||||||
|
+'px;display:inline-block"></div>').remove();
|
||||||
|
}
|
||||||
|
new ckplayer({
|
||||||
|
container: '#video_container'+idx, video: src,
|
||||||
|
menu: [{ title:'JeeSite', link:'https://jeesite.com' }]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
$.each(video, ckplayerInit);
|
||||||
|
$.each(audio, ckplayerInit);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||