Commit Graph

77 Commits

Author SHA1 Message Date
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