Commit Graph

2237 Commits

Author SHA1 Message Date
Krzysztof Moch
40a72825e6
fix(ios): remove pip check for other platforms (#3991)
* fix(ios): remove pip check for other platforms

* Update ios/Video/RCTVideo.swift
2024-07-11 12:54:54 +02:00
Krzysztof Moch
111a5d2163
feat: add isSeeking to onPlaybackStateChanged (#3899)
* feat: add `isSeeking` to `onPlaybackStateChanged``

* refactor `onSeek` event emit logic

* fix rebase
2024-07-11 10:08:36 +02:00
Seyed Mostafa Hasani
b25e43ee79
chore(android): migrate DataSourceUtil to Kotlin (#3984)
* Rename .java to .kt

* chore(android): migrate DataSourceUtil to Kotlin

* fix: type issue in DataSourceUtil

* fix: lint error

* chore: refactor DataSourceUtil with object & @JvmStatic

* fix: lint error
2024-07-11 10:07:05 +02:00
Seyed Mostafa Hasani
452e42f1dd
chore(android): migrate AspectRatioFrameLayout to Kotlin (#3985)
* Rename .java to .kt

* chore(android): migrate AspectRatioFrameLayout to Kotlin

* chore: refactor setter and getter of class

* fix: use field
2024-07-11 10:06:22 +02:00
Olivier Bouillet
66dcf32b56
refactor: move view type and drm in source (#3867)
* perf: ensure we do not provide callback to native if no callback provided from app

* chore: rework bufferConfig to make it more generic and reduce ReactExoplayerView code size

* chore: improve issue template

* fix(android): avoid video view flickering at playback startup

* chore(android): refactor DRM props into a dedicated class

* Update android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java

* chore: fix linter

* fix: ensure drm prop is correctly cleaned

* feat(android): move viewType (secure texture) & drm inside the source

The origianl behavior has been kept for interoperability, but marked as deprecated in doc

* chore: fix linter

* chore(ios): move drm prop in source like on android

* chore: fix linter

* chore: clean log

* fix: allow to disable secure View

* chore: fix viewType resolution (source value was not handled)

* chore: use contentDeepEquals instead of manual checks

* chore: fix linter

* fix: ensure player doesn't start when view is unmounted

* Fix/ensure view drop stop playback startup (#3875)

* fix: ensure player doesn't start when view is unmounted

* chore: revert change

* chore: add warning in case of invalid Surface configuration

* chore: code clean

* fix: simplify surface management

* chore: restore previous code

* chore: fix typo

* chore: code cleanup

* feat(android): add multiDrm flag support

* docs: update docs

* chore: fix ios build

* chore: fix deprecated declaration

---------

Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
2024-07-10 12:17:22 +02:00
Krzysztof Moch
08f6caa645
feat: add expo plugins (#3933)
* feat: add expo plugins

* add export

* fix import

* fix bugs

* build `lib` to `CommonJS`

* restore `build.gradle`

* remove plugin tmp

* add expo plugin for ios caching

* add docs for expo plugin

* fix expo plugin export

* fix docs
2024-07-10 11:49:13 +02:00
Kamil Moskała
25c74e0534
docs: update deprecated tool (#3982) 2024-07-10 10:20:54 +02:00
Seyed Mostafa Hasani
1728373d11
chore(android): migrate DefaultReactExoplayerConfig to Kotlin (#3983)
* Rename .java to .kt

* chore(android): migrate DefaultReactExoplayerConfig to Kotlin
2024-07-10 10:20:16 +02:00
Krzysztof Moch
ccffcfd709
fix(ios): don't pause playback when entering background (#3973) 2024-07-08 13:41:21 +02:00
Seyed Mostafa Hasani
a3ecc0108c
chore(example/basic): refactor state variable (#3949)
* refactor: basic example from class component to functional component

* refactor: toast component path

* refactor: bufferConfig prop

* refacotr: import component path

* fix: seekbar issue on iOS

* refactor: state variable

* chore: refactor overlay component according to new state structure
2024-07-08 09:54:32 +02:00
YangJH
7562669fd6
feat(android): Bump default media3 version from v1.1.1 to v1.3.1 (#3977) ⚠️ need targetSdkVersion 34 2024-07-06 22:16:07 +02:00
yungblud
1d6fb29753
feat: modified Fabric example android build.gradle for resolving build issue (#3976) 2024-07-06 10:19:24 +02:00
Seyed Mostafa Hasani
01a00b12ae
chore: upgrade react-native & expo version in the basic example app (#3964)
* chore: upgrade react-native & expo version

* chore: update Podfile.lock
2024-07-04 14:02:05 +02:00
YangJH
3c9b1b571a
refactor(android): migrate VideoEventEmitter to Kotlin (#3962)
* refactor(android): migrate VideoEventEmitter to Kotlin

* feat(android): apply rewritten EventEmitter's functions

* refactor(android): remove duplicated code

* fix(android): fix lint error

* fix(android): fix event name value

* refactor(android): rename of event constants for Fabric

- https://github.com/facebook/react-native/blob/v0.74.3/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java#L136-L138
2024-07-04 14:01:28 +02:00
YangJH
7def3ac387
fix(ios): fix fullscreen view controller ANR (#3952)
- ANR occurred setFullscreen(true) when view controller presenting
2024-07-04 12:46:42 +02:00
yungblud
de6e71966a
chore(example/fabric): bump up fabric example android deps (#3957)
* feat: 🔥 version bump react native for ios FabricExample

* feat:  copied newly created basic example TS files

* feat: 🔥 bump up native layers of FabricExample android app

* feat: 🔥 turn off buildDir setting in android/build.gradle for correct Fabric codegen dir location

* Revert "feat: 🔥 turn off buildDir setting in android/build.gradle for correct Fabric codegen dir location"

This reverts commit 62ec8d739b1f21906972eb935fc934e87294a8e6.
2024-07-04 12:44:43 +02:00
YangJH
76c6329110
refactor(ios): refactor NowPlayingInfoCenerManager.swift (#3968)
* refactor(ios): refactor NowPlayingInfoCenerManager

* fix(ios): fix lint error
2024-07-04 12:11:12 +02:00
Seyed Mostafa Hasani
530686ca82
fix(android): build issue on the latest react-native version (#3963) 2024-07-02 22:40:25 +02:00
yungblud
df29c2310d
feat(fabric): updated ios podspec for implementing new architecture (#3961)
* chore: 🔥 updated FabricExample/Gemfile.lock (bundle install)

* feat: updated react-native-video.podspec for implementing new architecture

* feat: updated FabricExample/ios/Podfile.lock (pod install)

* chore: updated examples/basic Gemfile.lock (bundle install)

* chore:  updated examples/basic ios Podfile.lock (pod install)
2024-07-02 10:56:14 +02:00
YangJH
3f11894c2b
fix(android): fix wrong module name (#3959) 2024-06-30 18:20:08 +02:00
Seyed Mostafa Hasani
702a0d9d32
refactor(android): migrate ReactVideoPackage to Kotlin (#3955) 2024-06-30 17:34:28 +02:00
YangJH
99585987ea
refactor(android): migrate VideoDecoderPropertiesModule to Kotlin (#3954) 2024-06-30 17:32:30 +02:00
yungblud
e5a2ee3bd3
feat: bump up fabric example react-native iOS (#3951)
* feat: 🔥 version bump react native for ios FabricExample
* feat:  copied newly created basic example TS files
2024-06-30 17:20:28 +02:00
EETVApps
322d7e993d
fix(android): added setAllowChunklessPreparation to HlsMediaSource.Factory to allow build success on projects without HLS support (#3948) (#3950)
Co-authored-by: Darren Taft <darren.taft@bt.com>
2024-06-28 11:43:55 +02:00
Seyed Mostafa Hasani
d4f1648681
refactor: basic example from class component to functional component (#3934)
* refactor: basic example from class component to functional component

* refactor: toast component path

* refactor: bufferConfig prop

* refacotr: import component path

* fix: seekbar issue on iOS
2024-06-28 11:33:10 +02:00
Olivier Bouillet
b431d09e2f
chore(android): rework view type (#3940) 2024-06-27 11:58:06 +02:00
Bartosz Kaszubowski
6e1337689a
chore: update homepage field in package.json (#3945) 2024-06-26 11:29:10 +02:00
Olivier Bouillet
a7d834a80a
feat(android): allow building exoplayer from source (#3932)
* feat(android): allow to build from source code

* fix(android): allow to build plugin from source
2024-06-25 13:20:12 +02:00
Olivier Bouillet
91d27a6009
feat: add plugins management (#3909) 2024-06-25 08:55:32 +02:00
Olivier Bouillet
3cfb96adb9
Chore(docs): fix typo (#3938)
* perf: ensure we do not provide callback to native if no callback provided from app

* chore: rework bufferConfig to make it more generic and reduce ReactExoplayerView code size

* chore: improve issue template

* fix(android): avoid video view flickering at playback startup

* fix: ensure player doesn't start when view is unmounted

* Fix/ensure view drop stop playback startup (#3875)

* fix: ensure player doesn't start when view is unmounted

* chore(docs): fix typo
2024-06-24 10:59:33 +02:00
Olivier Bouillet
cfa5984df7 chore: release v6.3.0 2024-06-22 11:17:24 +02:00
Ash Mish
c2ce372bcf
feat(android): add onControlsVisiblityChange (#3925)
* Adding onControlsVisiblityChange for Android
2024-06-22 11:15:21 +02:00
Olivier Bouillet
104ee703ba
fix(android): avoid crash multiplayer with notification (#3931) 2024-06-22 10:55:40 +02:00
Paul
91751abc87
feat(ios): add live key to now playing dict to decorate when livestream playing (#3922)
Co-authored-by: Paul <paul@dnconsulting.dev>
2024-06-21 22:33:24 +02:00
Olivier Bouillet
c1c7a056f1
chore: move sample to expo (#3880)
* perf: ensure we do not provide callback to native if no callback provided from app

* chore: rework bufferConfig to make it more generic and reduce ReactExoplayerView code size

* chore: improve issue template

* fix(android): avoid video view flickering at playback startup

* fix: ensure player doesn't start when view is unmounted

* chore: move basic sample to expo

* Update examples/basic/package.json

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

* chore: use last expo version

* chore: fix podfile

---------

Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
2024-06-20 11:58:55 +02:00
Olivier Bouillet
856b1dd58b
fix(android): use UI thread to pause when lost audio focus (#3916) 2024-06-20 11:50:56 +02:00
Olivier Bouillet
264b57aa2e
fix(android): allow chunk less preparation (#3913) 2024-06-20 11:19:35 +02:00
Olivier Bouillet
84bb910d10
fix(JS): safety check on resolve uri (#3915) 2024-06-20 11:19:18 +02:00
Olivier Bouillet
3d6bc9409c
fix(ios): crash on ads after leaving the app (#3911) 2024-06-20 11:18:27 +02:00
Justin Emery
dc2a2ab863
fix(typescript): type checks on selectedTextTrack, selectedAudioTrack, selectedVideoTrack (#3910)
* Fix type checks on selectedTextTrack and selectedAudioTrack

* Improve logging

* Rename variable for clarity

* Apply same fix to selectedVideoTrack

* Lint fixes

* Update src/Video.tsx

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

* Update src/Video.tsx

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

* Update src/Video.tsx

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

---------

Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2024-06-19 11:49:42 +02:00
Mihai
87e7f42042
chore(docs): fix sample app link (#3918) 2024-06-19 11:26:17 +02:00
Krzysztof Moch
098a754110
fix(android): show controls in notification on older androids (#3886) 2024-06-12 11:54:45 +02:00
Krzysztof Moch
2d793dbde1
fix(ios): missing notification controls when enabled from start (#3898) 2024-06-12 11:54:22 +02:00
Olivier Bouillet
cfb5b1cd31
Chore(android): refactor drm props (#3846) 2024-06-10 22:42:18 +02:00
Seyed Mostafa Hasani
3a4a13011a
chore: add setFullScreen to component's ref (#3855)
* chore: add setFullScreen to component's ref and remove presentFullscreenPlayer & dismissFullscreenPlayer
2024-06-10 22:41:26 +02:00
Olivier Bouillet
016fca8a2a chore: release v6.2.0 2024-06-07 17:42:00 +02:00
Olivier Bouillet
c2cd7529fd
fix(android): fix null pointer exception at playback start with item metadata (#3879)
* fix(android): fix null pointer exception at playback start with item metadata
2024-06-07 15:06:49 +02:00
Olivier Bouillet
d4a8c24f65
feat(android): allow chunckless preparation (#3882)
* feat(android): add a way to disable chuncklessPreparation on HLS
2024-06-07 14:06:46 +02:00
Dibyendu Das
ac0a9c3e3a
fix(ios): Implicit use of 'self' in closure - use 'self.' to make capture semantics explicit (#3764) (#3881)
* Fix/ensure view drop stop playback startup (#3875)

* fix: ensure player doesn't start when view is unmounted

* Patch commit to fix the error:
  Implicit use of 'self' in closure; use 'self.' to make capture semantics explicit

---------

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2024-06-07 14:04:00 +02:00
Krzysztof Moch
ff1e24aaad fix: ensure view drop stop playback startup (#3875) 2024-06-07 13:54:14 +02:00