Commit Graph

2393 Commits

Author SHA1 Message Date
Krzysztof Moch
89ee02bdab
chore: release v6.9.1 2025-01-10 12:09:07 +01:00
Joy
3924b5e295
fix: NPE in setEnterPictureInPictureOnLeave for unsupported Android versions (#4362) 2025-01-10 12:07:25 +01:00
Krzysztof Moch
eff8ea24af
infra: fix bot comments (#4367) 2025-01-10 12:01:31 +01:00
Olivier Bouillet
c47d165668
chore(android): fix type in generic folder (#4323) 2025-01-04 13:48:59 +01:00
Vladimir
424f4eedde
fix: avoid memory leak on iOS (#4355)
* fix: avoid memory leak on iOS

---------

Co-authored-by: Vladimir Vlasov <crivlaldo@gmail.com>
2025-01-04 13:47:22 +01:00
Krzysztof Moch
d31c72fc04
chore: release v6.9.0 2025-01-04 12:51:27 +01:00
YangJH
69a7bc2d26
feat: implement enterPictureInPictureOnLeave prop for both platform (Android, iOS) (#3385)
* docs: enable Android PIP

* chore: change comments

* feat(android): implement Android PictureInPicture

* refactor: minor refactor code and apply lint

* fix: rewrite pip action intent code for Android14

* fix: remove redundant codes

* feat: add isInPictureInPicture flag for lifecycle handling

- activity provide helper method for same purpose, but this flag makes code simple

* feat: add pipFullscreenPlayerView for makes PIP include video only

* fix: add manifest value checker for prevent crash

* docs: add pictureInPicture prop's Android guide

* fix: sync controller visibility

* refactor: refining variable name

* fix: check multi window mode when host pause

- some OS version call onPause on multi-window mode

* fix: handling when onStop is called while in multi-window mode

* refactor:  enhance PIP util codes

* fix: fix FullscreenPlayerView constructor

* refactor: add enterPictureInPictureOnLeave prop and pip methods

- remove pictureInPicture boolean prop
- add enterPictureInPictureOnLeave boolean prop
- add enterPictureInPicture method
- add exitPictureInPicture method

* fix: fix lint error

* fix: prevent audio play in background without playInBackground prop

* fix: fix onDetachedFromWindow

* docs: update docs for pip

* fix(android): sync pip controller with external controller state

- for media session

* fix(ios): fix pip active fn variable reference

* refactor(ios): refactor code

* refactor(android): refactor codes

* fix(android): fix lint error

* refactor(android): refactor android pip logics

* fix(android): fix flickering issue when stop picture in picture

* fix(android): fix import

* fix(android): fix picture in picture with fullscreen mode

* fix(ios): fix syntax error

* fix(android): fix Fragment managed code

* refactor(android): remove redundant override lifecycle

* fix(js): add PIP type definition for codegen

* fix(android): fix syntax

* chore(android): fix lint error

* fix(ios): fix enter background handler

* refactor(ios): remove redundant code

* fix(ios): fix applicationDidEnterBackground for PIP

* fix(android): fix onPictureInPictureStatusChanged

* fix(ios): fix RCTPictureInPicture

* refactor(android): Ignore exception for some device ignore pip checker

- some device ignore PIP availability check, so we need to handle exception to prevent crash

* fix(android): add hideWithoutPlayer fn into Kotlin ver

* refactor(android): remove redundant code

* fix(android): fix pip ratio to be calculated with correct ratio value

* fix(android): fix crash issue when unmounting in PIP mode

* fix(android): fix lint error

* Update android/src/main/java/com/brentvatne/react/VideoManagerModule.kt

* fix(android): fix lint error

* fix(ios): fix lint error

* fix(ios): fix lint error

* feat(expo): add android picture in picture config within expo plugin

* fix: Replace Fragment with androidx.activity

- remove code that uses Fragment, which is a tricky implementation

* fix: fix lint error

* fix(android): disable auto enter when player released

* fix(android): fix event handler to check based on Activity it's bound to

---------

Co-authored-by: jonghun <jonghun@toss.im>
Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2025-01-04 12:37:33 +01:00
Kamil Moskała
a735a4a581
chore: update bot feature req message (#4341) 2024-12-23 16:28:25 +01:00
Kamil Moskała
78770d92f5
refactor: make twg badge visible on smaller screens (#4345) 2024-12-21 08:51:45 +01:00
Kamil Moskała
abc4d76099
docs: link tv example (#4342) 2024-12-18 09:24:21 +01:00
Kamil Moskała
16fa20411f
docs: update useful projects list (#4337) 2024-12-14 16:15:18 +01:00
Giovanni P.
3da4f1ca97
fix(ios): _paused is updated when video playback pause (#4320) 2024-12-10 19:50:32 +01:00
Kamil Moskała
7b4bd9a016
fix(docs): bump next.js version & fix meta warnings (#4327)
* chore(docs): bump `next` version

* docs: fix meta warnings
2024-12-10 19:46:55 +01:00
proohit
1033c9d4f3
fix(ios): disables subtitles for none and empty track types (#4319) 2024-12-04 15:35:51 +01:00
Chris Wood
d757a44bb1
Docs(README): correct Expo heading link (#4316) 2024-12-03 16:32:13 +01:00
YangJH
64c222df44
chore(android): bump default androidx.activity version from v1.8.2 to v1.9.3 (#4314) 2024-12-01 13:46:56 +01:00
Kamil Moskała
621a80299c
fix: hiding poster (#4308)
* fix: hiding poster

* fix: hiding poster

* remove zIndex: 1

* fix: remove showPoster from dependency array
2024-12-01 13:41:03 +01:00
Olivier Bouillet
63c592f7cd
fix(android): disable caching on local asset files (#4304) 2024-12-01 13:29:24 +01:00
Olivier Bouillet
569a79c510 chore: release v6.8.2 2024-11-25 21:36:30 +01:00
Olivier Bouillet
f37dc9e33e
fix: playback restart without bufferingConfig (#4305) 2024-11-25 21:33:56 +01:00
Olivier Bouillet
dd78241b0d chore: release v6.8.1 2024-11-24 21:25:46 +01:00
Olivier Bouillet
2b7c215e66
Fix(android): restart issue react76 (#4302)
* fix: upgrade to expo 54
* fix: more bufferConfig inside source
- restart issue on react 0.76
- fix constness
- deprecate bufferConfig in root props
- update documentation
2024-11-24 21:19:46 +01:00
Tarık
daaac9740a
fix(ios): handle async player access in text track selection (#4293)
* fix(ios): add null check to setSelectedTextTrack for player instance

* Revert "fix(ios): add null check to setSelectedTextTrack for player instance"

This reverts commit 447c83423cdd77b0cfa9cc171b231327a2cf1586.

* fix(ios): ensure strong reference to player during async operation

* fix: linter

* fix: linter formatting

* fix: revert typo
2024-11-22 14:19:09 +01:00
Krzysztof Moch
d934f214f5
chore: release v6.8.0 2024-11-17 15:42:49 +01:00
Islam
d277c5e946
Add support for HLS videos caching on android (#4272)
* Add support for HLS videos caching on android
2024-11-15 21:18:25 +01:00
Kamil Moskała
de81829d73
chore: cleanup ref (#4288)
* refactor: cleanup ref
* fix: video-ref type
* refactor: cleanup code
2024-11-15 21:17:56 +01:00
Olivier Bouillet
681aed0aed
chore(sample): fix run of expo sample (#4284)
* chore: fix expo sample tun
* chore: update ios sample files
2024-11-15 21:17:29 +01:00
Zoe Roux
5fa77c4562
Add react-native-web support (#3958)
Co-authored-by: Kamil Moskała <91079590+moskalakamil@users.noreply.github.com>
2024-11-13 21:19:57 +01:00
Krzysztof Moch
d45300270e
chore: add FUNDING.yml 2024-11-08 16:09:49 +01:00
Kamil Moskała
0288d61e46
chore: update docs link (#4242) 2024-11-07 09:28:20 +01:00
Krzysztof Moch
f78a407434
chore(ci): bump actions versions (#4275) 2024-11-06 11:51:27 +01:00
Kamil Moskała
6080e96e82
docs: update drm token generator links (#4263) 2024-10-29 10:31:50 +01:00
Krzysztof Moch
5b3add4e7a
chore: update CONTRIBUTING.md 2024-10-26 15:16:41 +02:00
Krzysztof Moch
f850b7a71c
chore: update DRM example (#4259) 2024-10-26 14:55:11 +02:00
Olivier Bouillet
3b4bfd3936
fix(android): add helper to avoid type error (#4257)
* fix(android): add helper to avoid type error
2024-10-24 11:43:10 +02:00
Krzysztof Moch
21e2da3bfb
chore: update README 2024-10-21 15:22:46 +02:00
Krzysztof Moch
5d532f5982
chore: update README 2024-10-21 15:20:23 +02:00
Krzysztof Moch
324fc2ac65
chore: update examples README 2024-10-20 20:31:30 +02:00
Krzysztof Moch
9eb5502076
chore: rework examples (#4225)
* remove unused examples

* init bare example with test app

* add react-native-video

* add test app suport in expo plugin

* expo plugin: skip keys that are already in pod file

* fix podfile

* add src files

* fix metro config

* finalize react native test app configuration

* init expo example

* remove old examples

* add guide for example

* Add link to examples apps in docs

* adopt bare example to CI tests

* update CI workflows

* CI build lib after node_modules install

* fix examples readme

* fix iOS CI

* Add Example for DRM

* Update examples/README.md

* fix links

* update examples README

* sync example code

* update README
2024-10-20 20:04:02 +02:00
Olivier Bouillet
7c7d83b6e5 chore: release v6.7.0 2024-10-17 21:58:53 +02:00
Olivier Bouillet
7501880062
fix: remove warning and refactor & fix ad workflow (#4235) 2024-10-17 21:56:06 +02:00
Olivier Bouillet
f04b233a40
chore: move minLoadRetryCount into source property (#4233) 2024-10-16 23:41:22 +02:00
Olivier Bouillet
a8d5841c7c
fix: ensure aspect ratio from video is handled in a coherent way (#4219)
* fix: ensure aspect ratio from video is handled in a coherent way
2024-10-12 13:51:57 +02:00
Krzysztof Moch
352dfbbc9b
fix(android): sideloaded subtitles (#4232) 2024-10-11 22:50:22 +02:00
HyunWoo Lee (Nunu Lee)
78f4f0480d
feat(exoplayerview): Migrate ExoPlayerView to kotlin (#4038) 2024-10-11 09:08:13 +02:00
Olivier Bouillet
d86adc52f3
Chore: rework ad props (#4220)
* fix: move ad configuration in source
2024-10-10 23:53:39 +02:00
Olivier Bouillet
9a3fcda3b8
feat: add setSource API function fix ads playback (#4185)
* feat: add setSource API function fix ads playback
2024-10-10 22:59:41 +02:00
Olivier Bouillet
4c9db2845b
chore: Add react compiler workaround (#4227) 2024-10-10 07:24:11 +02:00
Wojciech Ogrodowczyk
2c19a4770d
fix(iOS): pause video on end reached & don't remove listeners (#4218)
This fixes an issue when seeking back to the beginning results in
no `onProgress` events being fired.
2024-10-07 14:32:35 +02:00
Seyed Mostafa Hasani
d1883a7e00
feat(android): add settings button to control video playback speed (#4211) 2024-10-05 18:34:25 +02:00