jwplayer / jwplayer-react-native

MIT License
32 stars 9 forks source link

[FEAT] implement the setCaptions(styles) method #84

Closed rikers closed 1 month ago

rikers commented 2 months ago

Is your feature request related to a problem? Please describe.

The setCaptions() method, as outlined in the official documentation, allows you to modify the appearance of captions without needing to reload the player. This functionality could be highly beneficial, as many applications may require this feature.

See: https://docs.jwplayer.com/players/reference/setcaptionsstyles

An example illustrating what UI would look like to control these changes:

1) A list showing what can be changed (font family, font opacity, color...)

image

2) A sublist with choices (when a choice is pressed, it calls setCaptions)

image

Describe the solution you'd like

A cross platform implementation of the setCaptions(styles) method

Jmilham21 commented 1 month ago

@rikers Upon a closer look, you linked the web player's setCaptions documentation. This isn't something that the native players expose. All (most, iOS does have some options) captions styling is handled by the device in the v4 SDK.

This is not actionable as written so I am going to close this.