mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Git update
This commit is contained in:
parent
bd8d7eedb6
commit
602ca1128e
3123 changed files with 521005 additions and 521005 deletions
404
node_modules/videojs-ima/LICENSE
generated
vendored
404
node_modules/videojs-ima/LICENSE
generated
vendored
|
@ -1,202 +1,202 @@
|
|||
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.
|
||||
|
||||
|
||||
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.
|
||||
|
||||
|
||||
|
|
452
node_modules/videojs-ima/README.md
generated
vendored
452
node_modules/videojs-ima/README.md
generated
vendored
|
@ -1,226 +1,226 @@
|
|||
# IMA SDK Plugin for Video.js
|
||||
|
||||
[](https://travis-ci.org/googleads/videojs-ima)
|
||||
|
||||
## Introduction
|
||||
The IMA SDK Plugin for Video.js provides a quick and easy IMA SDK integration
|
||||
for the Video.js player.
|
||||
|
||||
To see the plugin in action, check out our
|
||||
[samples](//googleads.github.io/videojs-ima/).
|
||||
|
||||
## Features
|
||||
- Easily integrate the Google IMA SDK into Video.js to enable advertising on
|
||||
your video content.
|
||||
|
||||
## Requirements
|
||||
- Your favorite text editor
|
||||
- A JavaScript enabled browser
|
||||
|
||||
## Getting started
|
||||
|
||||
### ES6 Imports
|
||||
The easiest way to get started is by using [npm](//www.npmjs.org/).
|
||||
|
||||
```
|
||||
npm install videojs-ima
|
||||
```
|
||||
|
||||
Your index.html should contain the video.js stylesheet (not included in the npm module),
|
||||
a video player to be used for playback, and script tags for the IMA SDK and your own
|
||||
javascript file.
|
||||
|
||||
```html
|
||||
<html>
|
||||
<head>
|
||||
<!-- Load dependent stylesheets. -->
|
||||
<link href="path/to/video-js.css" rel="stylesheet">
|
||||
<link href="path/to/videojs.ima.css" rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<video id='content_video' class="video-js">
|
||||
<p class='vjs-no-js'>
|
||||
To view this video, please enable JavaScript and consider upgrading to a web browser that
|
||||
<a href='https://videojs.com/html5-video-support/' target='_blank'>supports HTML5 video</a>
|
||||
</p>
|
||||
</video>
|
||||
<!-- Load dependent scripts -->
|
||||
<script src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
|
||||
<script src="player.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
Three imports are required to use the videojs-ima module, as seen in the player.js example below.
|
||||
|
||||
```javascript
|
||||
import videojs from 'video.js';
|
||||
import 'videojs-contrib-ads';
|
||||
import 'videojs-ima';
|
||||
|
||||
var videoOptions = {
|
||||
controls: true,
|
||||
sources: [{
|
||||
src: 'PATH_TO_YOUR_CONTENT_VIDEO',
|
||||
type: 'YOUR_CONTENT_VIDEO_TYPE',
|
||||
}]
|
||||
};
|
||||
|
||||
var player = videojs('content_video', videoOptions);
|
||||
|
||||
var imaOptions = {
|
||||
adTagUrl: 'YOUR_AD_TAG'
|
||||
};
|
||||
|
||||
player.ima(imaOptions);
|
||||
// On mobile devices, you must call initializeAdDisplayContainer as the result
|
||||
// of a user action (e.g. button click). If you do not make this call, the SDK
|
||||
// will make it for you, but not as the result of a user action. For more info
|
||||
// see our examples, all of which are set up to work on mobile devices.
|
||||
// player.ima.initializeAdDisplayContainer();
|
||||
```
|
||||
|
||||
### Alternative Setup
|
||||
If you don't use npm, you can download the source from the dist/ folder and
|
||||
include it directly in your project. You'll also need to download the source for
|
||||
the [videojs-contrib-ads plugin](//github.com/videojs/videojs-contrib-ads).
|
||||
|
||||
In your index.html file, create a new video.js player and load a (currently
|
||||
empty) javascript file:
|
||||
|
||||
```html
|
||||
<html>
|
||||
<head>
|
||||
<!-- Load dependent stylesheets. -->
|
||||
<link href="path/to/video-js.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="path/to/videojs-contrib-ads.css" />
|
||||
<link rel="stylesheet" href="path/to/videojs.ima.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<video id="content_video" class="video-js vjs-default-skin"
|
||||
controls preload="auto" width="YOUR_VIDEO_WIDTH" height="YOUR_VIDEO_HEIGHT">
|
||||
<source src="PATH_TO_YOUR_CONTENT_VIDEO" type="YOUR_CONTENT_VIDEO_TYPE" />
|
||||
</video>
|
||||
<!-- Load dependent scripts -->
|
||||
<script src="/path/to/video.js"></script>
|
||||
<script src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
|
||||
<script src="/path/to/videojs-contrib-ads.js"></script>
|
||||
<script src="/path/to/videojs.ima.js"></script>
|
||||
<script src="player.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
In player.js, load the ads library and set up the IMA plugin:
|
||||
|
||||
```javascript
|
||||
var player = videojs('content_video');
|
||||
|
||||
var options = {
|
||||
adTagUrl: 'YOUR_AD_TAG'
|
||||
};
|
||||
|
||||
player.ima(options);
|
||||
// On mobile devices, you must call initializeAdDisplayContainer as the result
|
||||
// of a user action (e.g. button click). If you do not make this call, the SDK
|
||||
// will make it for you, but not as the result of a user action. For more info
|
||||
// see our examples, all of which are set up to work on mobile devices.
|
||||
// player.ima.initializeAdDisplayContainer();
|
||||
```
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
## Playground
|
||||
Check out the snippet above in-action [on CodePen](https://codepen.io/imasdk/pen/wpyQXP).
|
||||
|
||||
## Additional settings
|
||||
The plugin accepts additional settings beyond the two required settings shown in
|
||||
the previous snippet. A summary of all settings follows:
|
||||
|
||||
|
||||
| Settings | Type | Description |
|
||||
|----------|------|-------------|
|
||||
| adLabel | string | Replaces the "Advertisement" text in the ad label. Added for multilingual UI support. |
|
||||
| adLabelNofN | string | Replaces the "of" text in the ad label (e.g. ... (1 of 2) ...). Added for multilingual UI support. |
|
||||
| adTagUrl | string | A URL which returns a VAST, VMAP or ad rules response. This will override adsResponse. |
|
||||
| adsRenderingSettings | object | JSON object with ads rendering settings as defined in the IMA SDK Docs(1). |
|
||||
| adsResponse | string | The VAST, VMAP, or ad rules response to use in lieu of fetching one an ad tag. This is overridden if adTagUrl is set. |
|
||||
| adsRequest | object | JSON object with ads request properties defined in the IMA SDK Docs(2). Properties set here that can also be provided elsewhere (e.g. adTagUrl) will override those other settings. |
|
||||
| autoPlayAdBreaks | boolean | Whether or not to automatically play VMAP or ad rules ad breaks. Defaults to true. |
|
||||
| **deprecated** adWillPlayMuted | boolean | Notifies the SDK whether the player intends to start ad while muted. Changing this setting will have no impact on ad playback. Defaults to false. |
|
||||
| contribAdsSettings | object | Additional settings to be passed to the contrib-ads plugin(3) used by this IMA plugin. |
|
||||
| debug | boolean | True to load the debug version of the plugin, false to load the non-debug version. Defaults to false. |
|
||||
| disableAdControls | boolean | True to hide the ad controls(play/pause, volume, and fullscreen buttons) during ad playback. Defaults to false. |
|
||||
| disableCustomPlaybackForIOS10Plus | boolean | Sets whether to disable custom playback on iOS 10+ browsers. If true, ads will play inline if the content video is inline. Defaults to false. |
|
||||
| disableFlashAds | boolean | True to disable Flash ads - Flash ads will be considered an unsupported ad type. Defaults to false. |
|
||||
| featureFlags | object | Sets IMA SDK feature flags. |
|
||||
| forceNonLinearFullSlot | boolean | True to force non-linear AdSense ads to render as linear fullslot. If set, the content video will be paused and the non-linear text or image ad will be rendered as fullslot. The content video will resume once the ad has been skipped or closed. |
|
||||
| id | string | **DEPRECATED** as of v.1.5.0, no longer used or required. |
|
||||
| locale | string | Locale for ad localization. The supported locale codes can be found in [Localizing for Language and Locale](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/localization)|
|
||||
| nonLinearHeight | number | Desired height for non-linear ads. Defaults to 1/3 player height. |
|
||||
| nonLinearWidth | number | Desired width of non-linear ads. Defaults to player width. |
|
||||
| numRedirects | number | Maximum number of VAST redirects before the subsequent redirects will be denied and the ad load aborted. The number of redirects directly affects latency and thus user experience. This applies to all VAST wrapper ads. |
|
||||
| omidMode | object | Sets and enables the Open Measurement SDK(4). Accepts an object with keys 'LIMITED', 'DOMAIN', and 'FULL'. The value pair for each key should be a dictionary that maps each access mode to a regular expression that matches the URLs to include. This API is currently in open beta and requires the following feature flag to be set: `{'enableOmidBeta': true}` |
|
||||
| ppid | string | Sets the publisher provided ID |
|
||||
| preventLateAdStart | boolean | Prevent ads from starting after the content has started if an adtimeout occurred (preroll, midroll, postroll). The default value is false
|
||||
| sessionId | string | Sets the [session ID](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.ImaSdkSettings#setSessionId) |
|
||||
| showControlsForJSAds | boolean | Whether or not to show the control bar for VPAID JavaScript ads. Defaults to true. |
|
||||
| showCountdown | boolean | Whether or not to show the ad countdown timer. Defaults to true. |
|
||||
| vastLoadTimeout | number | Override for default VAST load timeout in milliseconds for a single wrapper. The default timeout is 5000ms. |
|
||||
| vpaidAllowed | boolean | **DEPRECATED**, please use vpaidMode. |
|
||||
| vpaidMode | VpaidMode(5) | VPAID Mode. Defaults to ENABLED. This setting,overrides vpaidAllowed. |
|
||||
|
||||
|
||||
(1) [AdsRenderingSettings](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRenderingSettings)
|
||||
<br />
|
||||
(2) [AdsRequest](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest)
|
||||
<br />
|
||||
(3) [contrib-ads plugin](//github.com/videojs/videojs-contrib-ads)
|
||||
<br />
|
||||
(4) [Open Measurement SDK guide](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/omsdk)
|
||||
<br />
|
||||
(5) [ImaSdkSettings.setVpaidMode](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.ImaSdkSettings#setVpaidMode)
|
||||
|
||||
## IMA Plugin Ad Events
|
||||
The IMA Plugin will fire events that can be listened for. Ad lifecycle events can be listened for by following our [Advanced Example](https://github.com/googleads/videojs-ima/blob/master/examples/advanced/ads.js). Other events are emited from the videojs player. Please see the below example to set up listeners for these events.
|
||||
|
||||
```javascript
|
||||
this.player = videojs('content_video');
|
||||
|
||||
this.player.on('ads-manager', function(response){
|
||||
var adsManager = response.adsManager;
|
||||
// Your code in response to the `ads-manager` event.
|
||||
})
|
||||
```
|
||||
|
||||
Below are the events added by the videojs-ima plugin to the videojs player.
|
||||
|
||||
| Event | Event String | Payload |
|
||||
|-------|--------------|---------|
|
||||
| Ad Started | 'ads-ad-started' | none |
|
||||
| Ads Manager | 'ads-manager' | [google.ima.AdsManager](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsManager) |
|
||||
| Ads Loader | 'ads-loader' | [google.ima.AdsLoader](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsLoader) |
|
||||
| Ads Request | 'ads-request' | [google.ima.AdsRequest](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest) |
|
||||
|
||||
## Disable automatic ad break playback
|
||||
In some circumstances you may want to prevent the SDK from playing ad breaks
|
||||
until you're ready for them. In this scenario, you can disable automatic
|
||||
playback of ad breaks in favor of letting the SDK know when you're ready for an
|
||||
ad break to play. To do so:
|
||||
|
||||
1. Set ```autoPlayAdBreaks``` to false in the initial options.
|
||||
2. Provide an ad break ready listener via ```setAdBreakReadyListener```.
|
||||
3. Call ```player.ima.playAdBreak()``` in your ad break ready listener when
|
||||
you're ready to play the ads.
|
||||
|
||||
## Where do I report issues?
|
||||
Please report issues on the [issues page](../../issues).
|
||||
|
||||
## Terms of Service
|
||||
The IMA SDK plugin for Video.js uses the IMA SDK, and as such is subject to the
|
||||
[IMA SDK Terms of Service](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/terms).
|
||||
|
||||
## How do I contribute?
|
||||
See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
|
||||
# IMA SDK Plugin for Video.js
|
||||
|
||||
[](https://travis-ci.org/googleads/videojs-ima)
|
||||
|
||||
## Introduction
|
||||
The IMA SDK Plugin for Video.js provides a quick and easy IMA SDK integration
|
||||
for the Video.js player.
|
||||
|
||||
To see the plugin in action, check out our
|
||||
[samples](//googleads.github.io/videojs-ima/).
|
||||
|
||||
## Features
|
||||
- Easily integrate the Google IMA SDK into Video.js to enable advertising on
|
||||
your video content.
|
||||
|
||||
## Requirements
|
||||
- Your favorite text editor
|
||||
- A JavaScript enabled browser
|
||||
|
||||
## Getting started
|
||||
|
||||
### ES6 Imports
|
||||
The easiest way to get started is by using [npm](//www.npmjs.org/).
|
||||
|
||||
```
|
||||
npm install videojs-ima
|
||||
```
|
||||
|
||||
Your index.html should contain the video.js stylesheet (not included in the npm module),
|
||||
a video player to be used for playback, and script tags for the IMA SDK and your own
|
||||
javascript file.
|
||||
|
||||
```html
|
||||
<html>
|
||||
<head>
|
||||
<!-- Load dependent stylesheets. -->
|
||||
<link href="path/to/video-js.css" rel="stylesheet">
|
||||
<link href="path/to/videojs.ima.css" rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<video id='content_video' class="video-js">
|
||||
<p class='vjs-no-js'>
|
||||
To view this video, please enable JavaScript and consider upgrading to a web browser that
|
||||
<a href='https://videojs.com/html5-video-support/' target='_blank'>supports HTML5 video</a>
|
||||
</p>
|
||||
</video>
|
||||
<!-- Load dependent scripts -->
|
||||
<script src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
|
||||
<script src="player.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
Three imports are required to use the videojs-ima module, as seen in the player.js example below.
|
||||
|
||||
```javascript
|
||||
import videojs from 'video.js';
|
||||
import 'videojs-contrib-ads';
|
||||
import 'videojs-ima';
|
||||
|
||||
var videoOptions = {
|
||||
controls: true,
|
||||
sources: [{
|
||||
src: 'PATH_TO_YOUR_CONTENT_VIDEO',
|
||||
type: 'YOUR_CONTENT_VIDEO_TYPE',
|
||||
}]
|
||||
};
|
||||
|
||||
var player = videojs('content_video', videoOptions);
|
||||
|
||||
var imaOptions = {
|
||||
adTagUrl: 'YOUR_AD_TAG'
|
||||
};
|
||||
|
||||
player.ima(imaOptions);
|
||||
// On mobile devices, you must call initializeAdDisplayContainer as the result
|
||||
// of a user action (e.g. button click). If you do not make this call, the SDK
|
||||
// will make it for you, but not as the result of a user action. For more info
|
||||
// see our examples, all of which are set up to work on mobile devices.
|
||||
// player.ima.initializeAdDisplayContainer();
|
||||
```
|
||||
|
||||
### Alternative Setup
|
||||
If you don't use npm, you can download the source from the dist/ folder and
|
||||
include it directly in your project. You'll also need to download the source for
|
||||
the [videojs-contrib-ads plugin](//github.com/videojs/videojs-contrib-ads).
|
||||
|
||||
In your index.html file, create a new video.js player and load a (currently
|
||||
empty) javascript file:
|
||||
|
||||
```html
|
||||
<html>
|
||||
<head>
|
||||
<!-- Load dependent stylesheets. -->
|
||||
<link href="path/to/video-js.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="path/to/videojs-contrib-ads.css" />
|
||||
<link rel="stylesheet" href="path/to/videojs.ima.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<video id="content_video" class="video-js vjs-default-skin"
|
||||
controls preload="auto" width="YOUR_VIDEO_WIDTH" height="YOUR_VIDEO_HEIGHT">
|
||||
<source src="PATH_TO_YOUR_CONTENT_VIDEO" type="YOUR_CONTENT_VIDEO_TYPE" />
|
||||
</video>
|
||||
<!-- Load dependent scripts -->
|
||||
<script src="/path/to/video.js"></script>
|
||||
<script src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
|
||||
<script src="/path/to/videojs-contrib-ads.js"></script>
|
||||
<script src="/path/to/videojs.ima.js"></script>
|
||||
<script src="player.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
In player.js, load the ads library and set up the IMA plugin:
|
||||
|
||||
```javascript
|
||||
var player = videojs('content_video');
|
||||
|
||||
var options = {
|
||||
adTagUrl: 'YOUR_AD_TAG'
|
||||
};
|
||||
|
||||
player.ima(options);
|
||||
// On mobile devices, you must call initializeAdDisplayContainer as the result
|
||||
// of a user action (e.g. button click). If you do not make this call, the SDK
|
||||
// will make it for you, but not as the result of a user action. For more info
|
||||
// see our examples, all of which are set up to work on mobile devices.
|
||||
// player.ima.initializeAdDisplayContainer();
|
||||
```
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
## Playground
|
||||
Check out the snippet above in-action [on CodePen](https://codepen.io/imasdk/pen/wpyQXP).
|
||||
|
||||
## Additional settings
|
||||
The plugin accepts additional settings beyond the two required settings shown in
|
||||
the previous snippet. A summary of all settings follows:
|
||||
|
||||
|
||||
| Settings | Type | Description |
|
||||
|----------|------|-------------|
|
||||
| adLabel | string | Replaces the "Advertisement" text in the ad label. Added for multilingual UI support. |
|
||||
| adLabelNofN | string | Replaces the "of" text in the ad label (e.g. ... (1 of 2) ...). Added for multilingual UI support. |
|
||||
| adTagUrl | string | A URL which returns a VAST, VMAP or ad rules response. This will override adsResponse. |
|
||||
| adsRenderingSettings | object | JSON object with ads rendering settings as defined in the IMA SDK Docs(1). |
|
||||
| adsResponse | string | The VAST, VMAP, or ad rules response to use in lieu of fetching one an ad tag. This is overridden if adTagUrl is set. |
|
||||
| adsRequest | object | JSON object with ads request properties defined in the IMA SDK Docs(2). Properties set here that can also be provided elsewhere (e.g. adTagUrl) will override those other settings. |
|
||||
| autoPlayAdBreaks | boolean | Whether or not to automatically play VMAP or ad rules ad breaks. Defaults to true. |
|
||||
| **deprecated** adWillPlayMuted | boolean | Notifies the SDK whether the player intends to start ad while muted. Changing this setting will have no impact on ad playback. Defaults to false. |
|
||||
| contribAdsSettings | object | Additional settings to be passed to the contrib-ads plugin(3) used by this IMA plugin. |
|
||||
| debug | boolean | True to load the debug version of the plugin, false to load the non-debug version. Defaults to false. |
|
||||
| disableAdControls | boolean | True to hide the ad controls(play/pause, volume, and fullscreen buttons) during ad playback. Defaults to false. |
|
||||
| disableCustomPlaybackForIOS10Plus | boolean | Sets whether to disable custom playback on iOS 10+ browsers. If true, ads will play inline if the content video is inline. Defaults to false. |
|
||||
| disableFlashAds | boolean | True to disable Flash ads - Flash ads will be considered an unsupported ad type. Defaults to false. |
|
||||
| featureFlags | object | Sets IMA SDK feature flags. |
|
||||
| forceNonLinearFullSlot | boolean | True to force non-linear AdSense ads to render as linear fullslot. If set, the content video will be paused and the non-linear text or image ad will be rendered as fullslot. The content video will resume once the ad has been skipped or closed. |
|
||||
| id | string | **DEPRECATED** as of v.1.5.0, no longer used or required. |
|
||||
| locale | string | Locale for ad localization. The supported locale codes can be found in [Localizing for Language and Locale](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/localization)|
|
||||
| nonLinearHeight | number | Desired height for non-linear ads. Defaults to 1/3 player height. |
|
||||
| nonLinearWidth | number | Desired width of non-linear ads. Defaults to player width. |
|
||||
| numRedirects | number | Maximum number of VAST redirects before the subsequent redirects will be denied and the ad load aborted. The number of redirects directly affects latency and thus user experience. This applies to all VAST wrapper ads. |
|
||||
| omidMode | object | Sets and enables the Open Measurement SDK(4). Accepts an object with keys 'LIMITED', 'DOMAIN', and 'FULL'. The value pair for each key should be a dictionary that maps each access mode to a regular expression that matches the URLs to include. This API is currently in open beta and requires the following feature flag to be set: `{'enableOmidBeta': true}` |
|
||||
| ppid | string | Sets the publisher provided ID |
|
||||
| preventLateAdStart | boolean | Prevent ads from starting after the content has started if an adtimeout occurred (preroll, midroll, postroll). The default value is false
|
||||
| sessionId | string | Sets the [session ID](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.ImaSdkSettings#setSessionId) |
|
||||
| showControlsForJSAds | boolean | Whether or not to show the control bar for VPAID JavaScript ads. Defaults to true. |
|
||||
| showCountdown | boolean | Whether or not to show the ad countdown timer. Defaults to true. |
|
||||
| vastLoadTimeout | number | Override for default VAST load timeout in milliseconds for a single wrapper. The default timeout is 5000ms. |
|
||||
| vpaidAllowed | boolean | **DEPRECATED**, please use vpaidMode. |
|
||||
| vpaidMode | VpaidMode(5) | VPAID Mode. Defaults to ENABLED. This setting,overrides vpaidAllowed. |
|
||||
|
||||
|
||||
(1) [AdsRenderingSettings](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRenderingSettings)
|
||||
<br />
|
||||
(2) [AdsRequest](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest)
|
||||
<br />
|
||||
(3) [contrib-ads plugin](//github.com/videojs/videojs-contrib-ads)
|
||||
<br />
|
||||
(4) [Open Measurement SDK guide](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/omsdk)
|
||||
<br />
|
||||
(5) [ImaSdkSettings.setVpaidMode](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.ImaSdkSettings#setVpaidMode)
|
||||
|
||||
## IMA Plugin Ad Events
|
||||
The IMA Plugin will fire events that can be listened for. Ad lifecycle events can be listened for by following our [Advanced Example](https://github.com/googleads/videojs-ima/blob/master/examples/advanced/ads.js). Other events are emited from the videojs player. Please see the below example to set up listeners for these events.
|
||||
|
||||
```javascript
|
||||
this.player = videojs('content_video');
|
||||
|
||||
this.player.on('ads-manager', function(response){
|
||||
var adsManager = response.adsManager;
|
||||
// Your code in response to the `ads-manager` event.
|
||||
})
|
||||
```
|
||||
|
||||
Below are the events added by the videojs-ima plugin to the videojs player.
|
||||
|
||||
| Event | Event String | Payload |
|
||||
|-------|--------------|---------|
|
||||
| Ad Started | 'ads-ad-started' | none |
|
||||
| Ads Manager | 'ads-manager' | [google.ima.AdsManager](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsManager) |
|
||||
| Ads Loader | 'ads-loader' | [google.ima.AdsLoader](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsLoader) |
|
||||
| Ads Request | 'ads-request' | [google.ima.AdsRequest](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest) |
|
||||
|
||||
## Disable automatic ad break playback
|
||||
In some circumstances you may want to prevent the SDK from playing ad breaks
|
||||
until you're ready for them. In this scenario, you can disable automatic
|
||||
playback of ad breaks in favor of letting the SDK know when you're ready for an
|
||||
ad break to play. To do so:
|
||||
|
||||
1. Set ```autoPlayAdBreaks``` to false in the initial options.
|
||||
2. Provide an ad break ready listener via ```setAdBreakReadyListener```.
|
||||
3. Call ```player.ima.playAdBreak()``` in your ad break ready listener when
|
||||
you're ready to play the ads.
|
||||
|
||||
## Where do I report issues?
|
||||
Please report issues on the [issues page](../../issues).
|
||||
|
||||
## Terms of Service
|
||||
The IMA SDK plugin for Video.js uses the IMA SDK, and as such is subject to the
|
||||
[IMA SDK Terms of Service](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/terms).
|
||||
|
||||
## How do I contribute?
|
||||
See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
|
||||
|
|
348
node_modules/videojs-ima/dist/videojs.ima.css
generated
vendored
348
node_modules/videojs-ima/dist/videojs.ima.css
generated
vendored
|
@ -1,174 +1,174 @@
|
|||
/**
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
.ima-ad-container {
|
||||
top: 0em;
|
||||
position: absolute;
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Move overlay if user fast-clicks play button. */
|
||||
.video-js.vjs-playing .bumpable-ima-ad-container {
|
||||
margin-top: -4em;
|
||||
}
|
||||
|
||||
/* Move overlay when controls are active. */
|
||||
.video-js.vjs-user-inactive.vjs-playing .bumpable-ima-ad-container {
|
||||
margin-top: 0em;
|
||||
}
|
||||
|
||||
.video-js.vjs-paused .bumpable-ima-ad-container,
|
||||
.video-js.vjs-playing:hover .bumpable-ima-ad-container,
|
||||
.video-js.vjs-user-active.vjs-playing .bumpable-ima-ad-container {
|
||||
margin-top: -4em;
|
||||
}
|
||||
|
||||
.ima-controls-div {
|
||||
bottom: 0em;
|
||||
height: 1.4em;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
opacity: 1;
|
||||
background-color: rgba(7, 20, 30, .7);
|
||||
background: -moz-linear-gradient(
|
||||
bottom,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(
|
||||
linear,
|
||||
left bottom,
|
||||
left top,
|
||||
color-stop(0%,rgba(7, 20, 30, .7)),
|
||||
color-stop(100%,rgba(7, 20, 30, 0))); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(
|
||||
bottom,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(bottom,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(bottom,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* IE10+ */
|
||||
background: linear-gradient(to top,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(
|
||||
startColorstr='#0007141E',
|
||||
endColorstr='#07141E',GradientType=0 ); /* IE6-9 */
|
||||
}
|
||||
|
||||
.ima-controls-div.ima-controls-div-showing {
|
||||
height: 3.7em;
|
||||
}
|
||||
|
||||
.ima-countdown-div {
|
||||
height: 1em;
|
||||
color: #FFFFFF;
|
||||
text-shadow: 0 0 0.2em #000;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.ima-seek-bar-div {
|
||||
top: 1.2em;
|
||||
height: 0.3em;
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, .4);
|
||||
}
|
||||
|
||||
.ima-progress-div {
|
||||
width: 0em;
|
||||
height: 0.3em;
|
||||
background-color: #ECC546;
|
||||
}
|
||||
|
||||
.ima-play-pause-div, .ima-mute-div, .ima-slider-div, .ima-fullscreen-div {
|
||||
width: 2.33em;
|
||||
height: 1.33em;
|
||||
top: 0.733em;
|
||||
left: 0em;
|
||||
position: absolute;
|
||||
color: #CCCCCC;
|
||||
font-size: 1.5em;
|
||||
line-height: 2;
|
||||
text-align: center;
|
||||
font-family: VideoJS;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ima-mute-div {
|
||||
left: auto;
|
||||
right: 5.667em;
|
||||
}
|
||||
|
||||
.ima-slider-div {
|
||||
left: auto;
|
||||
right: 2.33em;
|
||||
width: 3.33em;
|
||||
height: 0.667em;
|
||||
top: 1.33em;
|
||||
background-color: #555555;
|
||||
}
|
||||
|
||||
.ima-slider-level-div {
|
||||
width: 100%;
|
||||
height: 0.667em;
|
||||
background-color: #ECC546;
|
||||
}
|
||||
|
||||
.ima-fullscreen-div {
|
||||
left: auto;
|
||||
right: 0em;
|
||||
}
|
||||
|
||||
.ima-playing:before {
|
||||
content: "\00f103";
|
||||
}
|
||||
|
||||
.ima-paused:before {
|
||||
content: "\00f101";
|
||||
}
|
||||
|
||||
.ima-playing:hover:before, .ima-paused:hover:before {
|
||||
text-shadow: 0 0 1em #fff;
|
||||
}
|
||||
|
||||
.ima-non-muted:before {
|
||||
content: "\00f107";
|
||||
}
|
||||
|
||||
.ima-muted:before {
|
||||
content: "\00f104";
|
||||
}
|
||||
|
||||
.ima-non-muted:hover:before, .ima-muted:hover:before {
|
||||
text-shadow: 0 0 1em #fff;
|
||||
}
|
||||
|
||||
.ima-non-fullscreen:before {
|
||||
content: "\00f108";
|
||||
}
|
||||
|
||||
.ima-fullscreen:before {
|
||||
content: "\00f109";
|
||||
}
|
||||
|
||||
.ima-non-fullscreen:hover:before, .ima-fullscreen:hover:before {
|
||||
text-shadow: 0 0 1em #fff;
|
||||
}
|
||||
/**
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
.ima-ad-container {
|
||||
top: 0em;
|
||||
position: absolute;
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Move overlay if user fast-clicks play button. */
|
||||
.video-js.vjs-playing .bumpable-ima-ad-container {
|
||||
margin-top: -4em;
|
||||
}
|
||||
|
||||
/* Move overlay when controls are active. */
|
||||
.video-js.vjs-user-inactive.vjs-playing .bumpable-ima-ad-container {
|
||||
margin-top: 0em;
|
||||
}
|
||||
|
||||
.video-js.vjs-paused .bumpable-ima-ad-container,
|
||||
.video-js.vjs-playing:hover .bumpable-ima-ad-container,
|
||||
.video-js.vjs-user-active.vjs-playing .bumpable-ima-ad-container {
|
||||
margin-top: -4em;
|
||||
}
|
||||
|
||||
.ima-controls-div {
|
||||
bottom: 0em;
|
||||
height: 1.4em;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
opacity: 1;
|
||||
background-color: rgba(7, 20, 30, .7);
|
||||
background: -moz-linear-gradient(
|
||||
bottom,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(
|
||||
linear,
|
||||
left bottom,
|
||||
left top,
|
||||
color-stop(0%,rgba(7, 20, 30, .7)),
|
||||
color-stop(100%,rgba(7, 20, 30, 0))); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(
|
||||
bottom,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(bottom,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(bottom,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* IE10+ */
|
||||
background: linear-gradient(to top,
|
||||
rgba(7, 20, 30, .7) 0%,
|
||||
rgba(7, 20, 30, 0) 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(
|
||||
startColorstr='#0007141E',
|
||||
endColorstr='#07141E',GradientType=0 ); /* IE6-9 */
|
||||
}
|
||||
|
||||
.ima-controls-div.ima-controls-div-showing {
|
||||
height: 3.7em;
|
||||
}
|
||||
|
||||
.ima-countdown-div {
|
||||
height: 1em;
|
||||
color: #FFFFFF;
|
||||
text-shadow: 0 0 0.2em #000;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.ima-seek-bar-div {
|
||||
top: 1.2em;
|
||||
height: 0.3em;
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, .4);
|
||||
}
|
||||
|
||||
.ima-progress-div {
|
||||
width: 0em;
|
||||
height: 0.3em;
|
||||
background-color: #ECC546;
|
||||
}
|
||||
|
||||
.ima-play-pause-div, .ima-mute-div, .ima-slider-div, .ima-fullscreen-div {
|
||||
width: 2.33em;
|
||||
height: 1.33em;
|
||||
top: 0.733em;
|
||||
left: 0em;
|
||||
position: absolute;
|
||||
color: #CCCCCC;
|
||||
font-size: 1.5em;
|
||||
line-height: 2;
|
||||
text-align: center;
|
||||
font-family: VideoJS;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ima-mute-div {
|
||||
left: auto;
|
||||
right: 5.667em;
|
||||
}
|
||||
|
||||
.ima-slider-div {
|
||||
left: auto;
|
||||
right: 2.33em;
|
||||
width: 3.33em;
|
||||
height: 0.667em;
|
||||
top: 1.33em;
|
||||
background-color: #555555;
|
||||
}
|
||||
|
||||
.ima-slider-level-div {
|
||||
width: 100%;
|
||||
height: 0.667em;
|
||||
background-color: #ECC546;
|
||||
}
|
||||
|
||||
.ima-fullscreen-div {
|
||||
left: auto;
|
||||
right: 0em;
|
||||
}
|
||||
|
||||
.ima-playing:before {
|
||||
content: "\00f103";
|
||||
}
|
||||
|
||||
.ima-paused:before {
|
||||
content: "\00f101";
|
||||
}
|
||||
|
||||
.ima-playing:hover:before, .ima-paused:hover:before {
|
||||
text-shadow: 0 0 1em #fff;
|
||||
}
|
||||
|
||||
.ima-non-muted:before {
|
||||
content: "\00f107";
|
||||
}
|
||||
|
||||
.ima-muted:before {
|
||||
content: "\00f104";
|
||||
}
|
||||
|
||||
.ima-non-muted:hover:before, .ima-muted:hover:before {
|
||||
text-shadow: 0 0 1em #fff;
|
||||
}
|
||||
|
||||
.ima-non-fullscreen:before {
|
||||
content: "\00f108";
|
||||
}
|
||||
|
||||
.ima-fullscreen:before {
|
||||
content: "\00f109";
|
||||
}
|
||||
|
||||
.ima-non-fullscreen:hover:before, .ima-fullscreen:hover:before {
|
||||
text-shadow: 0 0 1em #fff;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue