Commit Graph

171 Commits

Author SHA1 Message Date
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
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
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
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
Ralph Pina
be55cef093 bump android dependencies (#524)
* bump android dependencies

* fixed lint
2017-03-21 16:25:46 -04:00
Deon Nicholas
c56fd2d908 [Android] App crash when unmounting video (#533)
* Upgrade to ScalableVideoView version 1.0.4

* Fix bug in cleanupMediaPlayerResources

* Fix VideoView on Android
2017-03-21 16:24:46 -04:00
Gorjan
9ce1f4b5f4 Fix/494 (#537)
* Stop video autoplay when paused prop is 'true' on initial showing of video component

* Fix IOException - java.io.FileNotFoundException: No content provider: thrown in android.MediaPlayer, due to expected uri resource with content provider instead of only a URL
2017-03-21 16:24:32 -04:00
Jhen-Jie Hong
d450afc83b [Android] Fix require(...) file resource on production (#429)
* Fix require(...) file resource on Android production

* Update example (use require for ./broadchurch.mp4)

* Fix MainApplication.java of example

* Add default source type
2017-01-31 07:49:23 -05:00
Andrew Jack
9a936c9e8f ExoPlayer (#426) 2017-01-11 07:51:45 -05:00
Arjan Scherpenisse
cd53e389a0 Android: Resize the video correctly on layout changes (#432)
The transform matrix was not being recalculated when the View
dimensions changed. Fixed by copying the code from the scaleVideoSize
method from the ScalableVideoView.

https://github.com/yqritc/Android-ScalableVideoView/blob/master/library/src/main/java/com/yqritc/scalablevideoview/ScalableVideoView.java#L95
2017-01-11 07:47:56 -05:00
Ranjan Shrestha
cc7b7abdca Android bug fixes on how the video progress was being handled. (#367)
* BUGFIX. Progress Update Handler was being called even when the video was paused. The handler was also being called unnecessarily even after the video has completed and unmounted

* Saved and restored the state of the video during the activity state changed
2016-11-03 16:43:01 -04:00
Andrew Jack
0c746e8fe8 Clean project structure (#320) 2016-09-21 09:34:25 -04:00
Evgeniy Sokovikov
7a1a0a82d0 udgrate example to rn33 (#329) 2016-09-19 20:46:15 -04:00
Simon Gough
4b8101398c Added Android Expansion File Support (#142)
* Add Android Expansion File Support

* Added notes for usage with Android Expansion file

* Update README.md

Added notes re: expansion file usage.

* formatting issue fixes
2016-09-14 07:28:06 -04:00
nharlow89
6dfbb1e2a5 explicitly release androids mediaplayer when component is unmounted (#319) 2016-09-09 08:45:23 -04:00
Vladimir Adamic
7c2ebfba00 Add controls property to Android
- displays MediaController over the Video screen if enabled
2016-07-12 18:34:05 +02:00
Marcin Adamczyk
f62453f714 keep player valid after reaching video end 2016-06-29 15:44:13 +02:00
Marcin Adamczyk
5c422db78d add android Stalled and Resume events 2016-06-29 14:31:00 +02:00
Stanisław Chmiela
5221c948d5 Merge pull request #207 from nfl/fix-packagename-android
fix package name mismatch for Android
2016-06-08 11:07:04 +02:00
Stanisław Chmiela
24c24cd962 Merge pull request #236 from thoblr/master
Added possibility to play video in background and when app is inactive.
2016-06-08 11:05:58 +02:00
Burak Çalık
70909c017b [Android] naturalSize callback to match iOS version. 2016-06-05 00:53:46 +03:00
tobias
2cba8c8eee Added play in background for Android 2016-06-01 17:05:42 +02:00
Takashi Aoki
4d7cbcd864 fix package name mismatch 2016-05-17 21:32:23 -07:00
Igor Ivanov
1d67b7959e Allow to use content:// schema as source. 2016-05-11 12:25:50 +03:00
Stephen Mudra
f617f445a6 Adding Cookie Support for Android Devices 2016-05-11 15:55:09 +08:00
Baris Sencan
f4373f8155 Merge pull request #126 from jpgarcia/master
Added isAsset same as iOS implementation
2016-02-02 15:50:51 -08:00
Tal.Che
38e5296eee upgrade to react-native 0.19 2016-02-02 18:22:33 +02:00
Juan Pablo Garcia
6350d07879 Added isAsset same as iOS implementation 2016-01-07 17:34:11 -03:00
Baris Sencan
237432e6ff [Android] Implement all event properties 2015-11-17 17:55:08 -08:00
Baris Sencan
93b426c753 [Android] Simplify src assignment 2015-11-13 16:56:40 -08:00
Baris Sencan
a52f1d5dcf [Android] Implement seek and rate properties
rate won't be supported on Android for a while as the native
MediaPlayer class doesn't support it either.
2015-11-13 16:24:13 -08:00
Baris Sencan
9f73f22c62 [Android] Fix MediaPlayer issues 2015-11-13 16:06:42 -08:00
Baris Sencan
6ddd157f58 [Android] Default prop values 2015-11-13 14:36:15 -08:00
Baris Sencan
e63a004ee6 [Android] Prepare media player asynchronously 2015-11-13 14:35:52 -08:00
Baris Sencan
44203ab9d6 [Android] Fix video events 2015-11-12 19:27:12 -08:00
Baris Sencan
9e9e45c1a5 [Android] Move events inside RCTVideoView 2015-11-11 13:37:35 -08:00
Baris Sencan
d174b1a465 [Android] Better code structure 2015-11-09 17:54:15 -08:00
Baris Sencan
86790349e3 [Android] Send onVideoLoadStart, onVideoLoad, and onVideoEnd events 2015-11-08 18:19:03 -08:00
Baris Sencan
c03c45a362 [Android] repeat, muted, volume properties fully working 2015-11-05 17:13:35 -08:00
Baris Sencan
4362e596a8 [Android] src, repeat, paused properties fully working 2015-11-03 20:27:38 -08:00
Baris Sencan
0a3fdd912b [Android] Initial commit 2015-10-30 17:43:18 -07:00