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
Krzysztof Moch
899bb822a5
fix(android): build warnings ( #4058 )
2024-08-07 14:39:41 +02:00
Seyed Mostafa Hasani
74c6dd6279
refactor(android): migrate ReactExoplayerViewManager to Kotlin ( #4011 )
...
* Rename .java to .kt
* refactor(android): migrate ReactExoplayerViewManager to Kotlin
* fix: lint error
* refactor: setPreventsDisplaySleepDuringVideoPlayback function
2024-08-02 10:52:08 +02:00
YangJH
c2084c2ace
refactor: internal refactor for prepare new arch ( #3980 )
...
* chore(js): fix typo
* refactor(js): refactor type code for codegen
* refactor(js): refactor Video component
- parse shutterColor value within JS
- remove internal fullscreen state
* chore(js): add deprecation warning comment
* fix(js): fix return type
* fix(js): fix import path
* refactor(android): apply changed API for new arch
* refactor(ios): apply changed API for new arch
* fix(ios): fix wrong name
* refactor: refactor VideoDecoderProperties
- rename and add wrapper
* refactor(android): Code fixes for backward compatibility with Kotlin
2024-07-12 10:27:42 +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
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
Olivier Bouillet
91d27a6009
feat: add plugins management ( #3909 )
2024-06-25 08:55:32 +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
Seyed Mostafa Hasani
c7f4d7b83b
feat: add getCurrentPosition to component's ref ( #3824 )
...
* feat: add getCurrentPosition to component's ref
---------
Co-authored-by: mostafahasani <hasanie.mostafa@alopeyk.com>
2024-05-28 11:00:38 +02:00
Seyed Mostafa Hasani
3cd7ab60b2
feat: add setVolume function to component's ref ( #3794 )
...
* feat: add setVolume function to component's ref
* Update methods.mdx
2024-05-20 12:21:48 +02:00
Olivier Bouillet
e05da4e9fe
feat(android): implement asset folder playback ( #3733 )
...
* fix(ts): onPlaybackRateChangeData was not correctly typed
* fix: ensure tracks are well displayed in the sample
* feat(android): implement playback from asset folder
* chore(android): fix linter
* chore: move sample mp4 from package assets to exemple assets
2024-05-06 21:51:17 +02:00
邵瑾瑜
3e3532691a
fix(android): catch errors in performOnPlayerView
( #3685 )
...
Co-authored-by: JinYuSha0 <a1009943858@gmail.com>
2024-04-18 10:18:14 +02:00
Krzysztof Moch
e87c14a437
fix(android): update ui manager getter ( #3634 )
2024-03-31 19:15:14 +02:00
Krzysztof Moch
0312afc8ea
fix: remove setNativeProps
usage ( #3605 )
...
* fix: remove `setNativeProps` usage
* code review
2024-03-28 11:22:04 +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
6e98cb9700
Merge branch 'master' into feat/playback-ref-functions
2023-09-29 22:44:32 +02:00
KrzysztofMoch
812e9dc84f
feat(android): update isCodecSupported
to return enum
2023-09-25 08:17:03 +02:00
KrzysztofMoch
f9743fdbd6
chore: invert setPlayerPauseState
logic
2023-09-22 09:04:20 +02:00
KrzysztofMoch
421712825b
chore: rename setPlayerStatus
to setPlayerPauseState
2023-09-21 07:25:21 +02:00
KrzysztofMoch
0066ec744c
feat(android): add playback functions to ref
2023-09-18 13:09:53 +02:00
olivier bouillet
2712069408
chore(android): change test logic for simplier code
2022-08-20 15:12:50 +02:00
olivier bouillet
3a4cb7f6d9
feat(android): add new apis to query device capabilities
...
getWidevineLevel => integer between 0 and 3
isCodecSupported(codec, width, height) => boolean
isHEVCSupported() => boolean
2022-06-23 22:54:03 +02:00
olivier bouillet
de2c4a5524
chore: move android-exoplayer to android folder
2022-06-15 22:30:24 +02:00
olivier bouillet
32718be951
chore: remove MediaPlayer source
2022-06-15 22:29:46 +02:00
MONSX662
5a94985762
updated parameter to use constant instead of 3
2022-06-08 11:52:33 -04:00
MONSX662
c110822b3f
updated ReactVideoView.java to fix seeking issue on android
2022-06-07 08:57:31 -04:00
Anders Lemke
8962720f56
Support preventsDisplaySleepDuringVideoPlayback ( #2019 )
...
* Add flag on iOS
* Add flag in Android
* Add documentation
* Add changelog entry
* Also set setKeepScreenOn
* Fix prop not being set
* add preventsDisplaySleepDuringVideoPlayback to exoplayer
* Update android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java
* Update android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java
Co-authored-by: Jens Andersson <jens@fritan.com>
Co-authored-by: Anton Tanderup <antontandrup@gmail.com>
Co-authored-by: Jens Andersson <jens@fritan.com>
2020-06-16 14:31:23 +02:00
Hampton Maxwell
52334f031a
Merge pull request #1328 from linguokun1/master
...
solve the memory leak on Android and avoid the crash on kitkat
2018-12-13 12:50:25 -08:00
Hampton Maxwell
b485e64c88
Add note about catching selectTimedMetadataTrack exception
2018-12-13 12:50:17 -08:00
Hampton Maxwell
46701448e7
Only select timed metadata tracks
2018-12-13 12:43:11 -08:00
Hampton Maxwell
413a7b87c6
Only fire onSeek once we've completed the seek operation
2018-11-27 19:48:41 -08:00
linguokun
0a12f7389e
solve the memory leak on Android and avoid the crash on kikat when call mp.selectTrack(0);
2018-11-15 17:57:37 +08:00
Matthew Herz
33d9acdf5d
Fix missing TargetApi import
...
The build was producing a "cannot find symbol class TargetApi" error without that line.
2018-09-06 12:56:36 -07:00
Hampton Maxwell
4fc0aab31c
Merge pull request #707 from RWOverdijk/feat/ontimedmetadata-android
...
Feat/ontimedmetadata android
2018-08-07 11:37:11 -07:00
Hampton Maxwell
3a1d81930e
Allow screen to sleep when video finishes
2018-08-05 17:34:16 -07:00
Hampton Maxwell
bd48a001c0
Switch to using setKeepScreenOn to prevent screen timeouts
2018-08-05 17:27:49 -07:00
Gerardo Pacheco
99591e45d6
Android: MediaPlayer - Prevent screen from dimming, make variable as final
2018-07-25 10:34:41 +02:00
Gerardo Pacheco
ab273ed1b5
Android: MediaPlayer - Prevent screen from dimming, check for activity
2018-07-25 10:24:48 +02:00
Gerardo Pacheco
7e5647d57f
Android: MediaPlayer - Prevent screen from dimming, fixed bug and simplified code
2018-07-25 10:02:04 +02:00
Gerardo Pacheco
5435e5d545
Merge branch 'master' of https://github.com/react-native-community/react-native-video
...
# Conflicts:
# android/src/main/java/com/brentvatne/react/ReactVideoView.java
2018-07-25 09:58:46 +02:00
Hampton Maxwell
18efffbd1a
Implement hacky fullscreen
...
This only handles the controls portion of fullscreen. It doesn't make the video use the entire screen, that still needs to be done via styles. Will be implemented later
2018-07-17 17:47:19 -07:00
Gerardo Pacheco
2f0b694b38
Android: MediaPlayer - Prevent screen from dimming
2018-07-11 12:28:26 +02:00
Gerardo Pacheco
240444c213
Android keep screen on
2018-07-10 15:00:56 +02:00
Hampton Maxwell
70d863e3d0
Allow timed metadata to compile on older SDKs
2018-06-25 14:25:12 -07:00
Hampton Maxwell
448e57ba3f
Add note about IOException when using bigger setDataSource call
2018-06-22 19:32:36 -07:00
Hampton Maxwell
bb2b3eb306
Handle converting maps that are null or empty
2018-06-22 19:20:25 -07:00
Hampton Maxwell
c67dd7b8ef
Merge branch 'master' into master
2018-06-22 18:57:58 -07:00
Hampton Maxwell
28b06aac52
Merge pull request #1082 from react-native-community/bugfix/mediaplayer-bg-cant-pause
...
Preserve Android MediaPlayer paused prop when backgrounding
2018-06-22 13:04:51 -07:00