1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-30 09:06:49 +02:00
video.js/sandbox
ldayananda bf3eb45a37 feat: add mediator middleware type for play() (#4868)
This will allow middleware to interact with calls to play() from the tech. This will require a method of indicating to middleware previously run that a middleware down the chain has terminated or stopped execution.

* Adds middleware mediator method that runs middleware from the player to the tech and a second time back up to the player. This category was created because play is both a setter(changes the playback state) and a getter(gets a native play promise if available). This also has the ability to tell whether a middleware has terminated before reaching the tech.
* Adds a middleware.TERMINATOR sentinel value that is available on the videojs object
* Adds play to the allowedMediators
* Adds paused to the allowedGetters
* Adds a sandbox example of a play mediator middleware
2018-01-30 11:30:42 -05:00
..
combined-tracks.html.example chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00
descriptions.html.example chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00
embeds.html.example chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00
flash.html.example chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00
icons.html.example chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00
index.html.example chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00
language.html.example chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00
middleware-play.html.example feat: add mediator middleware type for play() (#4868) 2018-01-30 11:30:42 -05:00
plugin.html.example chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00