react-native-video/ios/Video/Features
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
..
RCTIMAAdsManager.swift chore(linter/swift): add shorthand_optional_binding rule (#3456) 2024-01-04 20:16:23 +01:00
RCTPictureInPicture.swift refactor(ios): remove type assertion within setupPipController (#3493) 2024-01-24 07:54:58 +01:00
RCTPlayerObserver.swift feat: implement opacity to control visibility of subtitles (#3583) 2024-03-14 11:29:50 +01:00
RCTPlayerOperations.swift Externally loaded text tracks not loading properly (#3461) 2024-01-15 07:31:22 +01:00
RCTResourceLoaderDelegate.swift fix(ios): split licenseUrl and loadedLicenseUrl (#3578) 2024-03-12 16:47:49 +01:00
RCTVideoDRM.swift feat: add visionOS support (#3425) 2024-01-15 08:04:29 +01:00
RCTVideoErrorHandling.swift chore: lint project (#3395) 2023-12-07 08:47:40 +01:00
RCTVideoSave.swift chore: lint project (#3395) 2023-12-07 08:47:40 +01:00
RCTVideoTVUtils.swift refactor(ios): remove type assertion within setupPipController (#3493) 2024-01-24 07:54:58 +01:00
RCTVideoUtils.swift fix(ios): add text tracks only if we successfully insertTimeRage (#3557) 2024-03-04 10:43:33 +01:00