Commit Graph
2414 Commits
Author SHA1 Message Date
Olivier Bouillet b8459ca71d chore: release v6.10.2 2025-02-22 15:05:17 +01:00
Szymon RybczakandGitHub 3edf511f9b docs: remove additional braces in config file (#4418) 2025-02-19 19:22:35 +01:00
6697cbf5d0 fix(android): fix gradle exception text related to AndroidX version (#4420)
* fix(android): fix gradle exception text related to AndroidX version check
* Update android/build.gradle

---------

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2025-02-19 19:19:41 +01:00
KonstantinandGitHub 04eec42f1e fix(tvOS): fix tvos compile error for rotation handler (#4417) 2025-02-16 11:55:46 +01:00
Olivier Bouillet 451bafebd7 chore: release v6.10.1 2025-02-15 17:26:27 +01:00
Efstathios NtonasandGitHub a8ca97f05f fix(ios): fix constraints when controls are enabled and video is inside a ScrollView (#4383) 2025-02-15 17:22:06 +01:00
MihaiandGitHub c8b800a508 fix(ios): the video has no audio by default (#4409)
This reverts the change in https://github.com/TheWidlarzGroup/react-native-video/pull/4319, I don't think that change is correct.

According to [docs](https://docs.thewidlarzgroup.com/react-native-video/component/props#selectedtexttrack) the default value for `selectedTextTrack.type` is "system" which means the video should respect user's preference in Settings > Accesibility > Subtitles & Captioning > Closed Captions + SDH. And this is exactly what happens by default without the changes in that PR. I think the author of that PR had this setting on, that's why it was showing the subtitles without setting something for `selectedTextTrack`, which IMO is the expected result. In order to explicitly turn off subtitles you have to set `selectedTextTrack={{ type: 'disabled' }}`. I tested it with this video and the settings option on and it works (disables the subtitles) -> https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8

Another reason why I think it should be reverted is because it also affects `selectedAudioTrack`. By default it should also have 'system' type according to [docs](https://docs.thewidlarzgroup.com/react-native-video/component/props#selectedaudiotrack), which means "Play the audio track that matches the system language. If none match, play the first track.", but the change in that PR turns the audio off by default unless you explicitly turn it on with `selectedAudioTrack={{ type: 'system' }}`.

Fixes #4400
2025-02-15 17:09:04 +01:00
Olivier BouilletandGitHub faac5ad456 fix(sample): remove duplicate code in sample (#4391)
* fix: remove duplicated code in sample
2025-02-15 17:05:59 +01:00
Krzysztof MochandGitHub 2905b61a0d fix(infra): kotlin linter github action (#4408) 2025-02-09 14:14:40 +01:00
Olivier BouilletandGitHub 74b1d5b540 fix(android): remove transparent black overlay on android default controls (#4392) 2025-02-09 14:09:28 +01:00
ad52668d05 fix(android): check for valid width and height on video format data (#4394)
Co-authored-by: mehdi <m.taghdisi@digikala.com>
2025-01-27 18:43:30 +01:00
Olivier BouilletandGitHub 638f454a21 fix(android): check androidX version at early build process before really launching build (#4388) 2025-01-25 17:10:47 +01:00
Olivier Bouillet 43955037bb chore: release v6.10.0 2025-01-22 22:59:46 +01:00
Olivier BouilletandGitHub 3d3eba97e8 fix(ios): fix paused video by default (#4379)
* fix: update style to allow show control click
* fix: push missing revert
2025-01-22 22:56:50 +01:00
darth leviandGitHub d90bf47df5 fix(windows): conversion of string to Stretch enum (#4381) 2025-01-22 22:32:25 +01:00
Olivier BouilletandGitHub d9f92b800e chore: add pre commit hook to lint and tsc the code (#4378) 2025-01-22 22:31:30 +01:00
Hugo EXTRATandGitHub 8b952e709a fix(android): support RN 0.77 (#4386) 2025-01-22 22:27:28 +01:00
8dc10fd4b7 feat(web): implement web pip method and event (#4370)
Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2025-01-18 15:19:55 +01:00
Olivier BouilletandGitHub 449dfb62b5 chore: fix linter (#4377) 2025-01-18 15:05:58 +01:00
YangJHandGitHub 6c3af99979 fix(tvOS): fix tvos compile error (#4369)
* fix(tvOS): fix tvos compile error
2025-01-18 11:49:12 +01:00
Kamil MoskałaandGitHub 6cc1bff167 docs: fix analytics (#4368) 2025-01-13 15:01:15 +01:00
Krzysztof Moch 89ee02bdab chore: release v6.9.1 2025-01-10 12:09:07 +01:00
JoyandGitHub 3924b5e295 fix: NPE in setEnterPictureInPictureOnLeave for unsupported Android versions (#4362) 2025-01-10 12:07:25 +01:00
Krzysztof MochandGitHub eff8ea24af infra: fix bot comments (#4367) 2025-01-10 12:01:31 +01:00
Olivier BouilletandGitHub c47d165668 chore(android): fix type in generic folder (#4323) 2025-01-04 13:48:59 +01:00
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
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łaandGitHub a735a4a581 chore: update bot feature req message (#4341) 2024-12-23 16:28:25 +01:00
Kamil MoskałaandGitHub 78770d92f5 refactor: make twg badge visible on smaller screens (#4345) 2024-12-21 08:51:45 +01:00
Kamil MoskałaandGitHub abc4d76099 docs: link tv example (#4342) 2024-12-18 09:24:21 +01:00
Kamil MoskałaandGitHub 16fa20411f docs: update useful projects list (#4337) 2024-12-14 16:15:18 +01:00
Giovanni P.andGitHub 3da4f1ca97 fix(ios): _paused is updated when video playback pause (#4320) 2024-12-10 19:50:32 +01:00
Kamil MoskałaandGitHub 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
proohitandGitHub 1033c9d4f3 fix(ios): disables subtitles for none and empty track types (#4319) 2024-12-04 15:35:51 +01:00
Chris WoodandGitHub d757a44bb1 Docs(README): correct Expo heading link (#4316) 2024-12-03 16:32:13 +01:00
YangJHandGitHub 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łaandGitHub 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 BouilletandGitHub 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 BouilletandGitHub 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 BouilletandGitHub 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ıkandGitHub 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
IslamandGitHub 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łaandGitHub de81829d73 chore: cleanup ref (#4288)
* refactor: cleanup ref
* fix: video-ref type
* refactor: cleanup code
2024-11-15 21:17:56 +01:00
Olivier BouilletandGitHub 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
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 MochandGitHub d45300270e chore: add FUNDING.yml 2024-11-08 16:09:49 +01:00