react-native-video/examples/basic
coofzilla 253ffb5956
feat(ios): Add ios support for accessing WebVTT Subtitle Content (#3541)
* feature: add support to get subtitle content data

* refactor: return a string of the subtitles

Push the parsing/formatting to the consumer side.

* chore: add types for new subtitle feature

* chore: run swiftlint and swiftformat

* chore: add documentation for new onSubtitleTracks callback

* chore: added test uri; basic implementation of feature; hotfix onTextTracks

added optional chaining for `return x?.selected` because tracks that don't have a track selected either by default or manually will return undefined and this can cause an error.

* feat: rename onSubtitleTracks to onTextTrackDataChanged

Renamed the onSubtitleTracks event to onTextTrackDataChanged across the codebase to clearly indicate the callback's purpose: being called when the text track's data changes. This change is reflected in the events documentation, example usage in VideoPlayer.tsx, and the relevant iOS implementation files for consistency and clarity, in line with PR feedback.

* chore: omit target property

target could be confusing for users so we have removed it. using the delete operator instead of using {target,...eventData} as that would give an eslint error about unused vars.
2024-02-29 14:41:04 +01:00
..
__tests__ fix: upgrade react-native version on basic sample 2022-12-17 16:35:37 +01:00
_bundle fix: upgrade react-native version on basic sample 2022-12-17 16:35:37 +01:00
android chore(example): bump react-native version (#3466) 2024-01-10 08:45:37 +01:00
ios chore(example): bump react-native version (#3466) 2024-01-10 08:45:37 +01:00
src feat(ios): Add ios support for accessing WebVTT Subtitle Content (#3541) 2024-02-29 14:41:04 +01:00
windows iOS Swift Conversion (#2527) 2022-05-19 22:29:25 +09:00
.eslintrc fix(android): revert media3 update, back to 1.1.1 (#3369) 2023-11-22 15:03:57 +01:00
.eslintrc.js fix(example): remove dependency loop (#3353) 2023-11-17 08:38:26 +01:00
.gitignore fix: upgrade react-native version on basic sample 2022-12-17 16:35:37 +01:00
.prettierrc.js fix: upgrade react-native version on basic sample 2022-12-17 16:35:37 +01:00
.watchmanconfig fix: upgrade react-native version on basic sample 2022-12-17 16:35:37 +01:00
app.json fix: upgrade react-native version on basic sample 2022-12-17 16:35:37 +01:00
babel.config.js chore(example): bump react-native version (#3466) 2024-01-10 08:45:37 +01:00
Gemfile chore(example): bump react-native version (#3466) 2024-01-10 08:45:37 +01:00
Gemfile.lock chore(example): bump react-native version (#3466) 2024-01-10 08:45:37 +01:00
jest.config.js chore(example/basic): bump react native version 2023-09-28 08:25:13 +02:00
metro.config.js fix(example): remove dependency loop (#3353) 2023-11-17 08:38:26 +01:00
package.json chore(example): bump react-native version (#3466) 2024-01-10 08:45:37 +01:00
tsconfig.json chore(example): bump react-native version (#3466) 2024-01-10 08:45:37 +01:00
yarn.lock chore(example): bump react-native version (#3466) 2024-01-10 08:45:37 +01:00