Commit Graph

126 Commits

Author SHA1 Message Date
Tarun Chauhan
ba00881ddc
fix: add missing shutterColor type (#3561) 2024-03-05 18:57:58 +01:00
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
YangJH
336eb44dc6
fix: fix typo (#3497) 2024-01-23 22:14:21 +01:00
Krzysztof Moch
51828f350f
chore(typescript): upgrade enum types (#3453) 2024-01-04 08:48:56 +01:00
Krzysztof Moch
f20d68b814
fix: add missing audioOutput prop (#3450) 2023-12-28 14:19:05 +01:00
Delphine Bugner
d986b7bf57
fix(ReactVideoProps): add accessibility & testID in typing (#3434) 2023-12-21 07:44:11 +01:00
Olivier Bouillet
22a2655dca
fix: ensure save doesn't crash on android (#3415)
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-12-10 15:53:48 +01:00
Olivier Bouillet
fbb5654a8e
fix: revert drm type definition change (#3409)
And add drm content in android sample

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-12-08 11:58:00 +01:00
Tarun Chauhan
72679a7d63
fix: add allowsExternalPlayback missing on ReactVideoProps (#3398) 2023-12-04 17:59:28 +01:00
Axel Vencatareddy
596c02d2b3
feat: add onAdError event listener (#3381)
* feat: add onAdError event listener
* feat: remove onAdError event listener and use already existing
* feat: add ERROR event to docs
2023-12-02 13:52:01 +01:00
Axel Vencatareddy
d05231d76b
feat(ad): add data to onReceiveAdEvent (#3378)
* feat(ad): add adData to onReceiveAdEvent
* fix: remove adData from response if empty
* fix: add getAdData to stub file
* chore: fix build without IMA
* fix: rename `adData` to `data`

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-27 21:43:30 +01:00
YangJH
2648502b36
feat: implement startPosition (#3355)
* feat(android): implement startPosition

* feat(ios): implement startPosition

* feat: implement startPosition type

* docs: fix typo

* docs: update startPosition

* refactor: put startPosition inside source prop
- put startPosition inside source prop
- rename existing prop (startTime, endTime)

* docs: update startPosition property description

* fix: fix invalid assignments

* refactor: remove redundant optional chaining

* feat: allow "0" to work too
2023-11-24 12:52:46 +01:00
Axel Vencatareddy
b3744f9b9f
feat: add AdEvent enum to have an exhaustive list of all possible AdEvent values (#3374)
* feat: add AdEvent enum to have an exhaustive list of all possible values
2023-11-23 08:46:59 +01:00
Olivier Bouillet
80e7139897
Chore/fix lintter and ts on source prop (#3361)
* fix: Fix types for `ReactVideoSource` to also allow `require(..)` sources

We need to be careful here to not use `any`, so I used `NodeRequire` - which is afaik present in all React Native environments as a type.

---------

Co-authored-by: Marc Rousavy <me@mrousavy.com>
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-18 15:39:22 +01:00
Olivier Bouillet
fdbd6a6ba8
fix: update onError definition to match implementation (#3349)
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-16 08:40:14 +01:00
Olivier Bouillet
dfac7a6ed3
Fix(ios): restore caching feature (#3341)
* chore: fix build issue

* fix: try to fix save typings

* chore: fix podspec

* fix: update integration guide for ios Caching

* fix: update sample to test the save function

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-13 21:36:16 +01:00
Krzysztof Moch
9054db35d7
feat(ios): add onBandwidthUpdate event (#3331)
* feat(ios): add onBandwidthUpdate event
2023-11-08 22:06:29 +01:00
Krzysztof Moch
cdbc856387
feat: add onVolumeChange event (#3322)
* feat: implement `onVolumeChange` event
2023-11-04 18:11:54 +01:00
Olivier Bouillet
0f8467f51d
chore: rework typescript integration (#3304)
* create few new types
* Add missing api

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
2023-10-26 08:46:04 +02:00
Krzysztof Moch
9373493d6a
feat(ios): implement onPlaybackStateChanged callback (#3307)
* chore: fix typo

* feat(ios): implement onPlaybackStateChanged

* docs: update onPlaybackStateChanged platforms
2023-10-23 18:23:57 +02:00
Krzysztof Moch
5c3baca1d8
fix: update types (#3288) 2023-10-11 22:15:58 +02:00
Krzysztof Moch
7fd7b3ff32
feat: refactor resize prop handler (#3286) 2023-10-11 21:56:54 +02:00
Olivier Bouillet
add87922a6
feat(android): add prop to control debug log level (#3277)
* feat: add prop to allow controlling of debug log level

* fix: move props parsing to safeGetters

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-10-10 09:47:56 +02:00
Konstantin
a855284d8d
feat(tvos): add custom image metadata option for tvos and add missing types for custom metadata properties (#3280)
* fix: add typescript types for custom metadata properties
* chore: add possibility to override image metadata of video playback

---------

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2023-10-07 15:14:10 +02:00
Krzysztof Moch
067adde124
chore: lint project (#3279)
* chore: update eslint config
* chore: lint lib files
2023-10-07 12:56:35 +02:00
Krzysztof Moch
92831afd5f
feat: add typescript (#3266)
* chore: update dependencies
* chore: add typescript config
* feat: add types
* chore: add build command
* chore: fix types
* fix: update linters
* chore: add display name to component
* chore: fix types
* chore: remove re-declare name variables
* docs: update changelog
2023-10-06 18:39:14 +02:00