mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Update npm
This commit is contained in:
parent
8341712d58
commit
1bd85100b9
5320 changed files with 58396 additions and 344722 deletions
BIN
node_modules/videojs-contrib-ads/docs/developer/outstream-ad-states.png
generated
vendored
Normal file
BIN
node_modules/videojs-contrib-ads/docs/developer/outstream-ad-states.png
generated
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
18
node_modules/videojs-contrib-ads/docs/developer/states.md
generated
vendored
18
node_modules/videojs-contrib-ads/docs/developer/states.md
generated
vendored
|
@ -132,3 +132,21 @@ Diagram(
|
|||
.addTo(document.querySelector('#diagram-6'));
|
||||
</script>
|
||||
<div id="diagram-6"></div>
|
||||
|
||||
## Outstream Mode
|
||||
|
||||
In Outstream mode, videojs.contrib-ads moves through three ad states as there is no content state. Here's a state diagram showing the states of the ads plugin in outstream mode and how it transitions between them:
|
||||
|
||||

|
||||
|
||||
## OutstreamPending (extends AdState)
|
||||
|
||||
The initial state for a player in outstream mode.
|
||||
|
||||
## OutstreamPlayback (extends AdState)
|
||||
|
||||
We move into this state when a 'play' event is triggered. Ads should play during this time (assuming there have not been any errors/cancellations). We leave this state once all the ad breaks have completed.
|
||||
|
||||
## OutstreamDone (extends AdState)
|
||||
|
||||
We move into this state once there are no more ad breaks to be played. No more ads play after this state.
|
||||
|
|
32
node_modules/videojs-contrib-ads/docs/integrator/api.md
generated
vendored
32
node_modules/videojs-contrib-ads/docs/integrator/api.md
generated
vendored
|
@ -75,6 +75,38 @@ if (player.ads.inAdBreak()) {
|
|||
}
|
||||
```
|
||||
|
||||
### error
|
||||
|
||||
Advanced function. Gets, sets, and clears a non-critical ads error in videojs-contrib-ads.
|
||||
|
||||
The error will be in the form of an object. This object must contain a `errorType` string, and can also include zero to many custom properties.
|
||||
```js
|
||||
{
|
||||
errorType: 'ads-error-type',
|
||||
// The key can have any name, and the value can have any type of data.
|
||||
customData: 'custom-data'
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
To get the current ads error, the `error` function should be called with no parameters. Returns `null` if there is no error.
|
||||
```js
|
||||
const currentAdError = player.ads.error();
|
||||
```
|
||||
|
||||
To set the current ads error, the `error` function should be called with a valid error.
|
||||
```js
|
||||
const adError = { errorType: 'ads-error-type' }
|
||||
|
||||
player.ads.error(adError);
|
||||
```
|
||||
|
||||
To clear the current ads error, the `error` function should be called with a `null` value.
|
||||
This value will also be cleared if an invalid error is passed to the function.
|
||||
```js
|
||||
player.ads.error(null);
|
||||
```
|
||||
|
||||
## Deprecated
|
||||
|
||||
The following are slated for removal from contrib-ads and will have no special behavior once removed. These should no longer be used in integrating ad plugins. Replacements are provided for matching functionality that will continue to be supported.
|
||||
|
|
7
node_modules/videojs-contrib-ads/docs/integrator/options.md
generated
vendored
7
node_modules/videojs-contrib-ads/docs/integrator/options.md
generated
vendored
|
@ -40,6 +40,13 @@ Default Value: `false`
|
|||
|
||||
Set this to true if you are using ads stitched into the content video. This is necessary for ad events to be sent correctly.
|
||||
|
||||
### playerMode
|
||||
|
||||
Type: `string`
|
||||
No Default Value
|
||||
|
||||
Set this to `outstream` if you are creating a player that has no content video between ad breaks.
|
||||
|
||||
### liveCuePoints
|
||||
|
||||
Type: `boolean`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue