Commit Graph

35 Commits

Author SHA1 Message Date
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
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
Andrew Jack
9a936c9e8f ExoPlayer (#426) 2017-01-11 07:51:45 -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
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
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
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
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
Brent Vatne
6f969a8614 Merge pull request #251 from mroswald/feat/play-react-native-assets
use react native asset resolving
2016-08-15 18:13:41 -07:00
Mark Oswald
c95d87b53b
replace bind statements 2016-06-22 16:33:32 +02:00
Mark Oswald
7fc7b3dc1b
use react native asset resolving 2016-06-22 15:52:12 +02:00
tobias
36f62d333b Merge https://github.com/brentvatne/react-native-video 2016-05-23 13:52:08 +02:00
Stanisław Chmiela
654ae1a27c Merge pull request #199 from sjchmiela/feature/additional_playback_callbacks
Additional playback callbacks
2016-05-09 16:12:29 +02:00
tobias
eb31337837 Added play when inactive to support playing while showing notification center. 2016-04-29 13:55:34 +02:00
Stanisław Chmiela
c3552fbf1e Add JS handlers 2016-04-28 14:42:44 +02:00
James Gibbons
acadabf179 fix for RN 0.24+ 2016-04-22 00:01:44 -04:00
tobias
1df54554dc Merge remote-tracking branch 'upstream/master' 2016-04-14 13:51:11 +02:00
Stanisław Chmiela
f6ee6a91a3 Use API instead of prop to show and hide fullscreen player 2016-04-01 11:12:50 +02:00
Stanisław Chmiela
4bbce5e378 Fix wrong conditions 2016-03-31 21:40:49 +02:00
Stanisław Chmiela
6d05b7bf79 Add option for listening to fullscreen player events 2016-03-31 21:35:10 +02:00
Stanisław Chmiela
8ebfa6e4db Export property from Objective-C to React 2016-03-31 20:36:39 +02:00
kiliwalk
ce4e44e459 support content:/ uri in android 2016-03-12 16:29:21 +08:00
Baris Sencan
3b6671c4c7 Example fix, test script, and some refactoring
- The test script just does an eslint check. (Closes #121)
- Refactored JS code to pass the check.
- Fixed VideoPlayer example. (Closes #117)
  - Updated package.json to use local react-native-video in a simple manner.
  - Added shared scheme for target.
  - Updated poject settings.
  - Now using react-native 0.18.1.
2016-01-31 20:13:48 -08:00
Bernd Paradies
f2b0dbd2db Introducing custom/native/embed skins 2015-12-22 17:39:04 -06:00
Tobias Hasselrot
07ceef9152 Added back playInBackground property in js 2015-12-16 13:53:04 +01:00
Brent Vatne
10f7690f4d Fix for issue #4605 on react-native 2015-12-07 01:03:21 -08:00
Baris Sencan
804717e072 [Video] Define style in propTypes 2015-11-17 19:15:07 -08:00
Baris Sencan
125b99deba [Video] Bind missing callbacks
Remove seek from state.
2015-11-11 13:34:41 -08:00
Baris Sencan
63a860e85f [Video] Implement setNativeProps 2015-11-09 17:55:39 -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
826218017d [Video] Method location rearrangement 2015-10-30 17:40:11 -07:00
Baris Sencan
b45c9577f0 [Video] Tidy up component code
- Newer syntax.
- Removed lodash dependency.
- Removed hard-coded ref.
- Seek using state.
2015-10-29 17:39:20 -07:00