Commit Graph

88 Commits

Author SHA1 Message Date
vok
a96fa33714 change minSdkVersion back to 16 2019-06-19 14:46:20 +07:00
vok
4f36eb1254 update for androidX 2019-06-19 14:37:21 +07: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
Hampton Maxwell
051a2c39f4
Merge branch 'master' into fix/gradle3 2018-10-13 19:18:13 -07: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
Tom Spencer
00174b63b8 Support RN 0.57 w/ gradle 3 2018-09-06 09:44:27 +01: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
Danish
6c946d77f3
little improvement over too many "def"
just added a function which acts like a ternary with fallback option. Hence, less cluttered "def" variables
great to see that lib is supporting already SDK 27
2018-07-24 17:36:24 +03: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
954a97a73f
Merge pull request #1081 from react-native-community/revert-1080-revert-999-master
Reapply "Using SDK Version variables from root project""
2018-06-22 13:17:07 -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
Hampton Maxwell
d7c44104bd Catch exception when setting the rate on some devices
A more elegant fix would be nice but is more work than it's worth at this time.
2018-06-22 12:57:29 -07:00
Hampton Maxwell
c1558f1bd8 Don't wipe out paused prop when going to the background
This allows users to set paused when they detect a background event so that when you return to the app, the video is paused.
2018-06-21 20:24:42 -07:00
Hampton Maxwell
20f9c291cd
Revert "Revert "Using SDK Version variables from root project"" 2018-06-21 10:29:38 -07:00
Hampton Maxwell
7511487baf
Revert "Using SDK Version variables from root project" 2018-06-21 09:18:12 -07:00
Hampton Maxwell
13601b9991
Merge branch 'master' into master 2018-06-09 16:48:13 -07:00
Emrah Kaya
49cd5b6d01 passing headers to setDataSource when network video 2018-06-09 23:04:31 +02:00
Emrah
2d89a3fd54
Merge branch 'master' into master 2018-06-09 21:36:09 +02:00
Rafael Pinto
00fe87a2ab replaced channel with stereoPan attribute 2018-06-05 23:04:20 +01:00
Rafael Pinto
8b931cbc5d Added channel property to allow audio panning 2018-06-05 02:28:28 +01:00
Hampton Maxwell
fefbe801ef
Merge branch 'master' into master 2018-05-29 15:08:24 -07:00
Hampton Maxwell
ed49ce77bc
Merge pull request #778 from ChatLurking/fix(Android)-issue-543
Reset isCompleted flag on source change
2018-05-28 19:41:14 -07:00
Hampton Maxwell
f87b6bd0e9
Merge pull request #798 from Radweb/ImplementAndroid6PlaybackRate
Implement playback rate for Android 6.0+
2018-05-20 23:04:25 -07:00
Hampton Maxwell
fe7766add4
Delay all rate changes until the player unpauses 2018-05-20 23:02:56 -07:00
Rayron Victor
4e85d3a1c4 Using SDK Version variables from root project
Instead of assuming the `compileSdkVersion`, `targetSdkVersion`, etc, read it from the root project.
Default `compileSdkVersion` and `targetSdkVersion` to the latest versions.

Android Target API Level 26 will be required in August 2018.
https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html
And the React Native team is already working on this:
facebook/react-native#17741
facebook/react-native#18095
2018-04-24 14:51:07 -03:00
Emrah Kaya
db1d83b83e constants renamed to requestheader 2018-01-13 21:29:53 +01:00
Alejandro Rangel
7d48f22d98 add seekableDuration to android ReactVideoView 2018-01-11 09:16:29 -08:00
Emrah Kaya
270fdfb657 added optional request headers for remote assests (android & ios) 2017-10-02 20:12:59 +02:00
Louis Capitanchik
3e0f084c62
Implement 'rate' prop for android devices
- Version locked to 6.0+ because that is the version that introduced setPlaybackParams
- Ignores rate prop as before on android versions lower than 6.0
2017-09-27 16:13:29 +01:00
Anne Glines
1bdd8720fb Reseting isCompleted flag on source change 2017-09-11 22:30:17 -07:00
Radek Czemerys
5738757966 Remove createJSModules @override - RN 0.47 compatibility (#718)
* Remove depreciated createJSModules @ovveride marker

* Remove depreciated createJSModules @ovveride marker

* Added comment in exoplayer

* Added comment

* Remove trailing spaces

* Fix typo in comment

* Fix typo in comment

* Fix typo in comment

* Fix typo in comment
2017-08-08 21:11:11 -04:00
RWOverdijk
aa89683785 move prop keys for metadata to constants 2017-07-25 16:53:04 +02:00
RWOverdijk
38d225294f add support for onTimedMetaData for android 2017-07-25 16:41:20 +02:00
melyamri
d48d7efc5d added progressUpdateInterval to Android (#512)
* use progressUpdateInterval in android

* convert progressUpdateInterval to int
2017-03-21 16:26:39 -04:00