Commit Graph

1874 Commits

Author SHA1 Message Date
Andrew Jack
79a9ea540d load new source if it is different (#502) 2017-03-21 16:26:23 -04:00
Nawal "Deshi" Rahim
087adef1b9 Pausing progress if it was playing and the stating again (#526) 2017-03-21 16:25:58 -04:00
Ralph Pina
be55cef093 bump android dependencies (#524)
* bump android dependencies

* fixed lint
2017-03-21 16:25:46 -04:00
Andrew Jack
e76936b4fc Update ExoPlayer to r2.2.0 (#505) 2017-03-21 16:25:17 -04:00
Andrew Jack
5a4730cb8c Update readme (#497) 2017-03-21 16:25:04 -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
Josh Habdas
911bc5222b Merge pull request #532 from shahen94/master
fix(RCTVideo.m): Fixed status bar disappearing issue
2017-03-15 19:54:51 +08:00
Shahen Hovhannisyan
3ef9555464 fix(RCTVideo.m): Fixed status bar disappearing issue 2017-03-15 15:21:12 +04:00
Daniel Schmidt
01c1124adc Add remark on muted for cover size (#459)
This is related to the comment on #368
2017-02-13 21:39:42 -05:00
Jakob Hilden
e41d0f574e [ExoPlayer] Value of paused prop should be respected when resuming the app (#486)
Before, when you resumed the app the player would **always** start playing again.

After this changed the `paused` prop of the `Video` component (which is the `isPaused` variable internally)
is consulted on resume for whether or not the playback should resume as well.
2017-02-13 21:38:15 -05:00
Andrea Cresta
d792427ce1 Added onTimedMetadata callback for iOS player and Exoplayer (#487)
* added listener for timedMetadata event.

* added callback in RCTVideo for the timed metadata

* exposing onTimedMetadata to JS

* added forgotten method declaration

* returning array of string values

* added metadata type to the array

* added onMetadata method

* overridden onMetadata method on exoplayer2

* added format of return value from onMetadata

* added function reference in README file
2017-02-13 21:38:02 -05:00
Matt Apperson
07ac819a46 added compatability note 2017-01-31 08:20:07 -05:00
Ardalan Naghshineh
8b17671d74 README fix (#416)
Corrected the instructions for running the example
2017-01-31 07:50:58 -05: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
abrahambotros
201335f05c Fix src type=nil NSDictionary crash (#455)
- Use NSNull object in NSDictionary when type (or URI) missing from supplied
  src object.
- In addition, defensively supply valid strings for URI and type from JS.
2017-01-28 20:46:30 -05:00
Olof Dahlbom
2b709a5d54 Protect events (#444) 2017-01-16 11:27:08 -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
Olof Dahlbom
fe6bc4f3df Support react-native > 0.40 (#437)
* Support react-native > 0.40

* Bumping major version. Breaking change.

* Upgrade example project from 0.33 => 0.40.
2017-01-11 07:43:43 -05:00
James Hartt
9bcf70cbb5 Replace use of RCTBridge with RCTBubblingEventBlock (#381) 2016-12-12 19:16:11 -05:00
Linmic
0442061028 better judgement to remove poster (#412) 2016-12-08 09:43:11 -05:00
Linmic
7b95bae99a employ onPlaybackRateChange instead to smooth the poster disappearance (#411) 2016-12-08 09:12:34 -05:00
Gil Birman
595bc19c87 Update react-native-video.podspec (#408)
When directory structure was refactored, source files were moved to `ios/` dir, but the podspec wasn't updated to reflect this.
2016-12-06 13:41:07 -05:00
Linmic
5c2940f73d This is to provide a HTML5-like poster attribute for react-native-video component. (#400)
* offered html5-like poster attribute

* prevent unnecessary setState
2016-12-05 16:57:35 -05:00
Austin Witherow
0d48d1a56d docs(linking): add documentation on how to link library (#376) 2016-11-15 17:53:47 -05:00
Matt Apperson
b1ad115dac Merge pull request #373 from rozele/windows
feat(Windows): Adds Windows support to react-native-video
2016-11-15 17:53:33 -05:00
Eric Rozell
abefb3ae12 Update ReactVideoView.cs 2016-11-10 15:04:01 -08:00
Eric Rozell
5af9e26233 Update ReactVideoView.cs 2016-11-10 13:50:50 -08:00
Eric Rozell
1ab222d251 Update ReactNativeVideo.csproj 2016-11-10 13:09:13 -08:00
Eric Rozell
5c3a5cb90d Update ReactNativeVideo.csproj 2016-11-10 12:29:54 -08:00
Eric Rozell
e0f968da29 Update ReactNativeVideo.csproj 2016-11-10 12:28:48 -08:00
Eric Rozell
be9f840537 Update README.md 2016-11-10 12:27:26 -08:00
Eric Rozell
e32372f8a0 Update README.md 2016-11-09 16:05:45 -08:00
Eric Rozell
8cc1dbda4f feat(Windows): Adds Windows support to react-native-video
This PR adds react-native-windows support to react-native-video.  The Video component is implemented with a XAML MediaPlayerElement.  Most of the features implemented by Android (and some additional ones) are implemented by Windows.

Known issues and missing features include:
* onReadyForDisplay event
* local URI convention (e.g., "broadchurch" in examples changed to require("./broadchurch.mp4")
* `playableDuration` in `onVideoProgress` event is always 0.0
* `playInBackground` is not yet supported
* Volume settings are applied, but the UWP control does not handle it properly
2016-11-09 14:49:04 -08:00
Oscar Franco
605f4cf070 Improve fullscreen documenation (#364) 2016-11-03 16:43:09 -04: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
TomClarkson
9ff2ff8e95 Fix example link (#343) 2016-10-06 17:34:20 -04:00
jimmymeego
18ad1cd580 add cookies (#345) 2016-10-06 17:34:01 -04:00
ndao
6b62119ce0 add ability to change progress update interval (#289)
* added progressUpdateInterval prop iOS

* add prop to Video.js

* added progressUpdateInterval prop iOS

* add prop to Video.js
2016-10-01 14:23:50 -04:00
Andrew Jack
0c746e8fe8 Clean project structure (#320) 2016-09-21 09:34:25 -04:00
Michael Crumm
8c9168b582 Fixes bug when pausing in fullscreen (iOS) (#325)
Similar to #153, attempts to pause in fullscreen mode will be negated by the `playbackLikelyToKeepUp` event.

This PR adds a check for `_fullscreenPlayerPresented`, in additional to `_controls` before calling `setPaused` for `playbackLikelytoKeepUp`.

This update is likely preferrable to #258, as it doesn't lose the empty buffer check.
2016-09-19 20:49:12 -04:00
Mark Vayngrib
7075e30ab8 fix typo (#327) 2016-09-19 20:46:41 -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
Josh Habdas
8982843311
Add note for min RN version for require assets 2016-09-10 10:48:10 -05:00
nharlow89
6dfbb1e2a5 explicitly release androids mediaplayer when component is unmounted (#319) 2016-09-09 08:45:23 -04:00
Edward Chan
83dd4c3ba9 add seekableDuration (#285) 2016-09-06 22:23:13 -04:00
Matt Apperson
3130bce6bd Update README.md 2016-08-30 08:18:19 -04:00
Alma Madsen
4d33bb0f69 prevent 'cover' resizeMode animation (#307) 2016-08-29 15:48:36 -04:00