Skip to content

Commit

Permalink
feat(videoplayer): add closed captions (#4036)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

#4012 

### Description

Add closed caption button to `VideoPlayer`.

### Changelog

**New**

- closed captioning button to Kaltura video player

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "package: vanilla": Vanilla -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "package: styles": Carbon Expressive, React (Expressive) -->
<!-- *** "RTL": React (RTL) -->
<!-- *** "feature flag": React (experimental) -->
  • Loading branch information
kennylam authored Sep 24, 2020
1 parent 3264b83 commit d051621
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/services/src/services/VideoPlayer/VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ class VideoPlayerAPI {
entry_id: videoId,
flashvars: {
autoPlay: autoPlay,
closedCaptions: {
plugin: true,
},
titleLabel: {
plugin: true,
align: 'left',
Expand Down

0 comments on commit d051621

Please sign in to comment.