Commit Graph

94 Commits

Author SHA1 Message Date
Bernd Paradies
d4b62e252d Mild clean ups 2015-06-27 16:03:24 -07:00
Baris Sencan
3b53194839 Rename playerItemDidEnd as playerItemDidReachEnd 2015-06-26 15:13:03 -07:00
Baris Sencan
c985957dd5 Set player rate on main thread 2015-06-26 15:12:33 -07:00
Baris Sencan
bcecb6ed81 Set video gravity on main thread 2015-06-26 15:12:09 -07:00
Baris Sencan
f83da614cf Seek to time on main thread 2015-06-26 15:09:10 -07:00
Baris Sencan
449b97a6c2 Fix setPaused threading
Fixes #66
2015-06-26 14:31:03 -07:00
Josh Habdas
54ea11badd Remove Notification Center observers on dealloc 2015-06-26 13:41:41 -05:00
Brent Vatne
1f901be363 Pause video when the app is backgrounded 2015-06-25 15:40:46 -07:00
Brent Vatne
a435efe3d0 Various fixes
- Call super in removeFromSuperview
- setRate has to come at the end of modifiers
- Switch to requireNativeComponent
2015-06-24 21:27:38 -07:00
Baris Sencan
44b17119dd Fix attachListeners method's threading issue & other notification handling issues 2015-06-24 21:27:38 -07:00
Baris Sencan
0927cee27b Fix 'Invalid number value (NaN) in JSON write' crash 2015-06-17 22:10:34 -07:00
Brent Vatne
1384b3f356 Fix whitespace 2015-06-16 21:14:14 -07:00
Mark Burns
9723f8849f Fix setting of resizeMode and repeat when changing source 2015-06-16 21:12:22 -07:00
Baris Sencan
d3c2867ab2 Improve calculatePlayableDuration documentation 2015-06-11 18:11:55 -07:00
Baris Sencan
da4e5df5c8 Add playableDuration property to onProgress event 2015-06-10 14:29:38 -07:00
Brent Vatne
a20b94757d Align more closely with react native style 2015-05-30 12:50:45 -07:00
Brent Vatne
c5eb6b4fec Fix crash from trying to remove observer multiple times 2015-05-30 12:47:14 -07:00
Johannes Lumpe
bcd48b7d21 Fixed invalid usage of JS-like OR 2015-05-11 08:21:16 -07:00
Brent Vatne
9c2184bd19 Respect the pause property at all times 2015-05-11 08:20:42 -07:00
Gaël Gillard
ce7f82b884 Provide a fallback if the duration cannot be get
This to avoid to send an errors stack caused by the `NaN` given in the JSON of the RCTEventDispatcher.

fixes #26
2015-05-11 08:20:42 -07:00
Brent Vatne
6fee22cac6 Bump for react-native 0.4.0 2015-05-11 08:20:41 -07:00
Mike Wilcox
7fb273fa3c added attachListeners method which listens for end of playback and sends a notification 2015-05-11 08:19:46 -07:00
Johannes Lumpe
7bcbf3e075 Setting playerlayer to nil 2015-05-11 08:19:16 -07:00
Brent Vatne
61752153b3 Update to support react-native 0.3.10 2015-05-11 08:19:15 -07:00
Johannes Lumpe
29d4a4fda2 Using completion handler to trigger seek event now, in order to receive correct currentTime value 2015-04-09 17:19:09 +03:00
Johannes Lumpe
380c1d46cc Made seek a float value again, now triggered through this.refs.myVideoNode.seek(time) 2015-04-09 16:50:20 +03:00
Johannes Lumpe
45d79b701e Initial commit for seeking 2015-04-09 01:15:57 +03:00
Brent Vatne
7cef7432e8 Import RCTConvert properly 2015-04-08 12:02:42 -07:00
Brent Vatne
bd1dc1f014 Fix local playback with source dictionary, set default rate/volume 2015-04-08 10:34:27 -07:00
Johannes Lumpe
e9e48bb666 - timer only starts when the video plays and is stopped when video is paused
- renamed event constants
2015-04-08 09:59:27 -07:00
Johannes Lumpe
3b34df57ad Renamed event constants 2015-04-08 09:55:59 -07:00
Johannes Lumpe
6988c85268 Initial set of changes to make urls work 2015-04-08 09:55:59 -07:00
Brent Vatne
fccfdbfd30 Add volume, rate and muted props
- Also rename pause to paused
- Bump version
2015-04-07 20:38:16 -07:00
Brent Vatne
61508678d4 Fix indentation 2015-04-07 15:24:49 -07:00
qingfeng
93cc1c86b5 Load videos remotely from the network 2015-04-08 03:24:52 +08:00
Brent Vatne
d9ddb6e75a Clean up better after ourselves 2015-04-07 10:41:34 -07:00
Brent Vatne
90a0f85cf9 Fix regression reported by @eduedix - not automatically playing
- Was introduced with `pause` prop
2015-04-07 08:31:40 -07:00
Brent Vatne
d52e83d901 Update progress every 250ms 2015-04-06 13:26:11 -07:00
Brent Vatne
0977c6b29b Quick implementation of progress tracking 2015-04-06 13:05:05 -07:00
Brent Vatne
4666b407e0 Add an onLoad callback to fetch video details 2015-04-06 12:17:32 -07:00
Brent Vatne
011ecff875 Move resizeMode to prop from style (at request of @vjeux) and add pause
prop
2015-04-05 10:17:03 -07:00
Brent Vatne
e504944ef5 Swap out MPMoviePlayerController for AVPlayer
- Better performance, can play multiple videos on one screen too!
2015-04-04 17:55:37 -07:00
Brent Vatne
5408fafff8 Add support for repeat prop 2015-03-30 23:29:15 -07:00
Brent Vatne
ea7a7bbcf7 Initial commit 2015-03-30 22:07:55 -07:00