toggleCaptions()
toggleCaptions(newState?: boolean)
Last updated
toggleCaptions(newState?: boolean)
Last updated
Toggles the captions panel visibility state.
If the captions panel is currently shown, then it will be hidden. And vice-versa -> if the captions panel is currently hidden, then it will be shown. There is also an optional param to set a concrete target visibility state, but you may use and to achieve similar functionality.
Sample use case: You may have a custom button in your application to control the captions panel visibility.