Commit Graph

2388 Commits

Author SHA1 Message Date
Olivier Bouillet
bea268aa80
docs: cleanup outdated informations (#3437)
* chore: rename alpha to beta on landing page

* chore: remove outdated installation information

* chore: clean up updating section

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-12-23 11:10:04 +01:00
Krzysztof Moch
9c669a2d8a
docs: add support by section (#3435) 2023-12-21 08:45:28 +01:00
Delphine Bugner
d986b7bf57
fix(ReactVideoProps): add accessibility & testID in typing (#3434) 2023-12-21 07:44:11 +01:00
lovegaoshi
dd7bb54720
fix(android): default UA (#3429)
* Update DataSourceUtil.java

* fix(android): default UA
2023-12-20 19:49:26 +01:00
Olivier Bouillet
c8983f4094
chore: remove unused declarations (#3414)
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-12-10 15:55:17 +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
2462800c9a chore: release v6.0.0-beta.2 2023-12-08 22:15:59 +01:00
Olivier Bouillet
f9bcaac515
fix(android): ensure adTagUrl can be reset (#3408)
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-12-08 13:30:23 +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
Olivier Bouillet
908e30f9b8
fix(android): add explicitly dependancy to androidx.activity (#3410) 2023-12-08 11:33:29 +01:00
Krzysztof Moch
800aee09de
chore: lint project (#3395)
* chore: format swift code
* chore: format clang code
* chore: format kotlin code
* refactor: rename folder "API" to "api"
2023-12-07 08:47:40 +01:00
Tarun Chauhan
72679a7d63
fix: add allowsExternalPlayback missing on ReactVideoProps (#3398) 2023-12-04 17:59:28 +01:00
Krzysztof Moch
91d7135562
chore: enhance CI tests (#3344)
* chore: add swift linter

* chore: add clang linters

* chore: add kotlin linter

* chore(ci): update workflows

* chore(ci): clean workflows
2023-12-02 15:58:43 +01:00
olivier
26043335e1 chore: release v6.0.0-beta.1 2023-12-02 13:59:55 +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
Krzysztof Moch
4d9334b477
chore(ci): add JS & TS linter check (#3394) 2023-12-01 08:51:11 +01:00
Olivier Bouillet
472820123a
chore(sample): fix lint and ts sample & add ci jobs to build samples (#3365)
* chore: start fixing linter and tsc warning and errors
* chore(ci): add basic example build
* chore: allow to build with or without ads on android
* chore: fix job definition

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
2023-11-30 21:17:41 +01:00
YangJH
cac802fb77
chore(android): replacing deprecated SYSTEM_UI flag (#3386) 2023-11-30 21:16:24 +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
JuozasP
de4159f0c2
fix(ios): check for ios url query encoding (#3384)
Co-authored-by: Juozas Petkelis <juozas.petkelis@kilo.health>
2023-11-26 21:20:29 +01:00
Olivier Bouillet
fe89122524
fix(android): ads build and enable ads in android sample (#3376)
* fix: refactor androidx core version management

* chore: fix missing import rework for media3

* fix: enable IMA in sample

* chore: rename stub fie

* chore: code review, fix variable name

* chore: reorder imports

* chore: fix linking in sample

* chore: fix stub management

* chore: few cleans and ensure we don't use ima is disabled

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-24 13:17:13 +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
Sung Jeon
0c0f3174cb
fix(android): fix leak caused by removing lifecycle listener too early (#3380)
* Fix lifecycle listener being removed too early
2023-11-23 23:23:44 +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
Axel Vencatareddy
364944b329
BREAK: fix(android): harmonize IMAAdEventType between iOS and Android (#3373) 2023-11-23 08:45:47 +01:00
Olivier Bouillet
5beef383cb
fix(android): revert media3 update, back to 1.1.1 (#3369)
* fix: revert last media3 upgrade

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-22 15:03:57 +01:00
YangJH
11f62013e3
fix(ios): fix pip(when player doesn't fill screen) (#3363) 2023-11-20 08:43:35 +01:00
YangJH
17dbf6e826
feat(android): bump media3 version from v1.1.1 to v1.2.0 (#3362)
* feat(android): bump media3 version from v1.1.1 to v1.2.0

* chore: add lint file for ignore UnstableApi lint error
2023-11-20 08:20:27 +01:00
Olivier Bouillet
725ddb3110
doc: Update README.md
clarify doc link & v6 version as last tag is beta
2023-11-18 16:48:24 +01:00
olivier
4b2374421d chore: release v6.0.0-beta.0 2023-11-18 15:43:22 +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
YangJH
f2e80e9f2d
feat(android): replace deprecated ExoPlayer2 with AndroidX media3 (#3337)
* feat(android): implement AndroidX media3 dependencies
* refactor(android): remove duplicate code
* refactor(android): remove unused codes
* feat(android): replace ExoPlayer2 with AndroidX media3
* fix(android): move default properties to gradle.properties
* revert(android): prevent security exception
* chore: align indent
* chore: remove redundant comments
* chore: reorder import
* fix: apply media3's legacy player control view
2023-11-18 14:13:54 +01:00
Krzysztof Moch
1ba93f9e9d
fix(ios): change isPlaybackLikelyToKeepUp check (#3357) 2023-11-17 17:35:22 +01:00
Krzysztof Moch
9f1bf8f913
docs: add source local file name waring (#3359) 2023-11-17 15:38:32 +01:00
Krzysztof Moch
0e23952cea
fix(ios): fix cache playerItemPrepareText type (#3358) 2023-11-17 15:09:28 +01:00
Krzysztof Moch
211c3c7d08
fix(example): remove dependency loop (#3353)
* chore(examples/basic): fix eslint config

* chore(examples/basic): change manual linking for react-native-video

* Update examples/basic/package.json

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

---------

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2023-11-17 08:38:26 +01:00
Krzysztof Moch
782e7e0df1
fix(ios): fix external text tracks crashes with m3u8 files (#3330)
* fix(ios): fix crash when using textTracks with m3u8

* docs: add warning to `textTracks` prop

* chore: apply code review

* chore: remove indents
2023-11-17 08:19:39 +01:00
Olivier Bouillet
8777b0a35e
Fix(ios): another video caching fix (#3348)
* fix: another fix from video caching

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-16 22:13:53 +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
abd73dca4a chore: release v6.0.0-alpha.11 2023-11-15 21:42:30 +01:00
Olivier Bouillet
f961f952a4
fix: fix bad package release process (#3347)
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-15 21:39:34 +01:00
olivier
d9d52599af chore: release v6.0.0-alpha.10 2023-11-13 22:29:26 +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
Olivier Bouillet
da270891fb
feat: add release-it (#3342)
* feat: add release-it
* Update package.json

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
2023-11-13 21:35:27 +01:00
Krzysztof Moch
9054db35d7
feat(ios): add onBandwidthUpdate event (#3331)
* feat(ios): add onBandwidthUpdate event
2023-11-08 22:06:29 +01:00
YangJH
8fbdc28a73
fix: fixes where Android's muted prop behavior differs from iOS (#3339) 2023-11-08 19:39:04 +01:00
YangJH
7f49b56027
fix(ios): fix wrong fullscreen method definition (#3338) 2023-11-08 19:04:39 +01:00
Krzysztof Moch
6df0f7d1c0
chore(android): bump kotlin version (#3334)
* chore(android): update gradle files

* docs: update android installation section
2023-11-08 07:41:17 +01:00
Andrii Drobiazko
722ae3477a
fix(ios): player is frozen after re-focusing on the app (#3326)
* [bugfix] player is frozen after re-focusing on the app

* Fix playback rate on resume

Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>

---------

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
2023-11-06 10:20:42 +01:00
Krzysztof Moch
cdbc856387
feat: add onVolumeChange event (#3322)
* feat: implement `onVolumeChange` event
2023-11-04 18:11:54 +01:00