Olivier Bouillet
4c63988d12
docs: review and clean up ( #3730 )
...
* fix(ts): onPlaybackRateChangeData was not correctly typed
* fix: ensure tracks are well displayed in the sample
* chore: reorder drm props
* chore: reorder events
* docs: move onAudioTracks to events
* docs: reorder and clean <PlatformsList from methods
* docs: fix props case naming
* docs: fix ordering
* docs: fix ordering & remove trackId
* chore: remove sample build from installation page
* docs: remove outdated information
* docs: remove beta information from doc landing page
2024-05-04 14:36:39 +02:00
lovegaoshi
ecc946d1c1
feat(android): cache ( #3514 )
...
* feat: android cache
* docs: bufferSize
* Revert "docs: bufferSize"
This reverts commit 09637b134e121b9ca3ffd78f2f5bc657319ed67a.
* fix: cacheSize name
* feat: singleton android cache
* fix: local cache resolve
* fix: lint
* docs: android cache
* chore: merge conflict
* fix: lint
* chore: useCache button
* chore: fix state in the sample
* fix: cache factory
* chore: update cacheSizeMB docs
---------
Co-authored-by: Olivier Bouillet <freeboub@gmail.com>
2024-05-01 11:20:34 +02:00
Olivier Bouillet
d6941392e0
fix: ensure poster works as expected and add it to the sample ( #3643 )
...
* fix: ensure poster works as expected and add it to the sample
* chore: drop audioOnly property as not implemented on any platform
* fix(ios): do not save pause state before seeking
* fix(ts): onPlaybackRateChangeData was not correctly typed
2024-04-05 10:35:57 +02:00
Olivier Bouillet
182c953597
chore(typescript): fix external loaded textTracks typing and add one in sample ( #3626 )
2024-03-30 12:22:37 +01:00
Olivier Bouillet
f10511d953
fix(android): improve and backBufferDurationMs. mainly let exoplayer manage the prop ( #3619 )
...
BREAKING CHANGE: move backBufferDurationMs from root props to bufferConfig
2024-03-28 21:33:17 +01:00
YangJH
89ae8438fa
fix: fix getLicense function's type definition ( #3606 )
...
* fix(type): fix getLicense type definition
2024-03-26 23:41:49 +01:00
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
Krzysztof Moch
41ac781412
feat: move require (local files) to source.uri
( #3535 )
...
* feat!: move require source to `uri`
* pass other source properties
* chore: update basic example
* chore: restore backward compatibility
* docs: update source via require
* fix types
* make docs build workflow pretty
* improve docs
2024-03-13 08:23:11 +01:00
Olivier Bouillet
7c4d19fa72
fix(ios): split licenseUrl and loadedLicenseUrl ( #3578 )
...
* fix(ios): split licenseUrl and loadedLicenseUrl
* fix(ios): fix drm license url used to provide the answer
2024-03-12 16:47:49 +01:00
Tarun Chauhan
ba00881ddc
fix: add missing shutterColor type ( #3561 )
2024-03-05 18:57:58 +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
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
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
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
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
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