Up Next API contains the following objects and interfaces for configuring and displaying information about the next content to play as a bottom right bar on the player UI. This API is available from version 2.15.0 onward and only if you have a player with this feature enabled.
upnext object provides the following properties:
|showing||boolean||The showing property indicates whether the up next bar is showing or not.|
|show||void||When the show method is called, the up next bar will be displayed.|
|hide||void||When the hide method is called, the up next bar will be hidden.|
|next||void||When the next method is called, the page location will change to the link specified in the source.|
An object implementing the
UpNextSource interface should provide the following properties:
|duration||string||yes||The duration property can be used to display a duration on the up next bar.|
|image||string||no||The image property is used to set a thumbnail on the up next bar.|
|link||string||no||The link property is used to specify a target URL to navigate to, when clicking the up next bar.|
|offset||string||yes||The offset property is used to specify the offset form which the up next bar will be displayed. The offset is always calculated from the end of the video. Possible values are:
By default, the up next bar will be displayed 10 seconds from the end of the video.
|title||string||yes||The title property can be used to display a title on the up next bar.|