react-native-video/docs
coofzilla f4cce2ecdb
feat: implement opacity to control visibility of subtitles (#3583)
* feat: implement opacity to control visibility of subtitles

implemented per discussion on https://github.com/react-native-video/react-native-video/issues/3579

updated docs and linked onTextTrackDataChanged to the subtitle style to clarify intent on how to control visibility.

* chore: update type so that we use a union of 0 1 vs any number

* chore: run ktlint to get rid of white spaces

* feat: add ability to have range of numbers for opacity; while, 0 will still not render the subtitles.

added util function for safeGetFloat

updated types

* feat: add ability to suppress subtitles with opacity 0

add data structure for subtitle styles for extensibility

* chore: run yarn check-ios

* chore: update documentation to clarify differences between android and ios

* Update android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>

---------

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2024-03-14 11:29:50 +01:00
..
assets docs: add support by section (#3435) 2023-12-21 08:45:28 +01:00
components/PlatformsList fix(docs): fix build (#3571) 2024-03-08 13:04:27 +01:00
pages feat: implement opacity to control visibility of subtitles (#3583) 2024-03-14 11:29:50 +01:00
public docs: add thumbnail (#3458) 2024-01-05 14:46:10 +01:00
.gitignore feat: move docs to github pages (#3296) 2023-10-26 08:54:14 +02:00
bun.lockb fix(docs/ci): add typescript (#3572) 2024-03-08 14:29:04 +01:00
next-env.d.ts feat: move docs to github pages (#3296) 2023-10-26 08:54:14 +02:00
next.config.js feat: move docs to github pages (#3296) 2023-10-26 08:54:14 +02:00
package.json fix(docs/ci): add typescript (#3572) 2024-03-08 14:29:04 +01:00
README.md feat: move docs to github pages (#3296) 2023-10-26 08:54:14 +02:00
theme.config.jsx docs: update platforms in properties tab (#3562) 2024-03-08 12:48:01 +01:00
tsconfig.json docs: update platforms in properties tab (#3562) 2024-03-08 12:48:01 +01:00

react-native-video-docs

This is the documentation for the react-native-video. Project is using bun to build and run the documentation. Framework for static site generation is Nextra

bun install

To run:

bun run dev