kaltura / mwEmbed

Kaltura's Cross Platform Video Player ToolKit
http://player.kaltura.com
GNU Affero General Public License v3.0
210 stars 136 forks source link

fix(FEC-11252): caption with displayOnPlayer off doesn't work properly in playlist #4224

Closed lianbenjamin closed 3 years ago

lianbenjamin commented 3 years ago

issue: when creating a playlist and for some of the entries in it the "DisplayOnPlayer" for the captions is disabled, and you move from an entry with DisplayOnPlayer=true to an entry with DisplayOnPlayer=false - the captions of previous entry show up on current entry and kind of stuck. The expected behavior is to not show captions at all and btn of CC also should not be displayed.

solution: as part of the flow, adding a callback([]) with empty captions array.

Solves FEC-11252.