Squeeze back
What you learn​
You're instantiating DIVA Player in your web front-end and relying on third party video streaming source.
The goal of this article is to build the simplest front-end to stream a video from third party video production with, at the end, the activation of squeeze back in combination with end of play.
Before starting​
- Ensure the your video production you rely on is up and running.
- Set the videoId and the related setting configuration.
- Ensure the VideoMetadata contains the squeezeBackTime property.
- Ensure the setting contains the timeToDisableAutoplay property.
- Ensure the VideoMetadata contains the countdownToAutoplay property.
Instantiation​
Write the Basic instantiation code. There's no additional code to write, unless you need to overwrite the autoplay behavior that the VideoMetadata contains.
Squeeze back configuration​
Write the App() function to to return a videoMetadata that contains the squeezeBackTime
property:
0
default value if not set, no squeeze back10000
to set the squeeze back- A positive integer that specifies the number of milliseconds before the end of the video when the Diva Player starts the squeezeback. (eg: with
10000
the squeezeback starts when remain 10 seconds to the video end).
"behaviour": {
"endOfPlay": {
"squeezeBackTime":0 //milliseconds, default 0, 0 or negative means disabled
},
}