Commit Graph

70 Commits

Author SHA1 Message Date
Stanisław Chmiela
eb3fc2373a Add readyForDisplay callback 2016-04-28 14:25:45 +02:00
Brent Vatne
3c6da9782f Merge pull request #181 from sjchmiela/feature/support_fullscreen_mode
Support fullscreen mode
2016-04-12 14:13:50 -04:00
Stanisław Chmiela
e7cae171fb Add naturalSize to callback 2016-04-08 11:10:22 +02:00
Stanisław Chmiela
d304bfecbe Fix possibility of trying to open multiple fullscreen video players 2016-04-01 14:56:03 +02:00
Stanisław Chmiela
4120a2a3b2 Rename variable fullScreen to fullscreen 2016-04-01 14:55:23 +02:00
Stanisław Chmiela
9635a0d76b Do not trigger unsatisfiable constraints alert when possible 2016-04-01 13:04:16 +02:00
Stanisław Chmiela
3b3761dc81 Apply modifiers after fullscreen player dismissal 2016-04-01 12:52:23 +02:00
Stanisław Chmiela
b030a5587b Fix controller not rotating 2016-04-01 12:34:52 +02:00
Stanisław Chmiela
931ea75edd Implement delegate in RCTVideo 2016-04-01 10:52:05 +02:00
Stanisław Chmiela
d073847ce0 Fix dismissal code not running by creating subclass of view controller and notifying view 2016-03-31 23:10:25 +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
6ab72c4cb8 Move View Controller retrieval to external UIView category 2016-03-31 20:51:22 +02:00
Stanisław Chmiela
5244a5b797 Add _fullscreen property to the view 2016-03-31 20:34:22 +02:00
Stanisław Chmiela
9be76e3674 Add view controller finding functions
We need them to be able to present another view controller
2016-03-31 20:34:08 +02:00
Joel Arvidsson
5a96daac51 Fixes bug making it impossible to pause video from controls. 2016-02-18 21:45:09 -03:00
Bernd Paradies
f2b0dbd2db Introducing custom/native/embed skins 2015-12-22 17:39:04 -06:00
React Native Playground
b43d11f17b remove unused constants 2015-08-23 02:30:18 +02:00
Joshua Sierles
5718d17f90 switch to returning an array from customDirectEventTypes, for RN 0.10.0 compatibility 2015-08-22 21:42:26 +02:00
Baris Sencan
28d482852d Act according to playbackLikelyToKeepUp changes
Closes #57
This commit also includes some code style updates
2015-08-05 15:53:42 +03:00
Baris Sencan
0429094d74 Merge dpeek/fix/paused-resumes-after-seek into master
Fixes #73 as well
2015-07-20 19:46:49 +03:00
Brent Vatne
cb3c519195 Merge pull request #78 from dpeek/fix/disable-layer-resize-animation
Disables default system animation when resizing AVPlayerLayer
2015-07-18 20:32:59 -07:00
Baris Sencan
8a4fbaf6f7 Remove dispatch_async calls to main queue
Due to the changes made in #77
2015-07-18 15:38:56 +03:00
David Peek
0513930399 Disables default system animation when resizing AVPlayerLayer
Not sure if this something you will want – perhaps it could go behind a flag. When animating video size, the default system animation makes the rendered size of the video lag behind the bounds of the react view. This patch disables the default animation, ensuring the video renders at the correct size.
2015-07-14 16:35:29 +01:00
David Peek
153eb59c41 Call setRate instead of pause/play as they are equivalent (fixes #75)
Video was resuming after seek when setRate was called after play/pause in applyModifiers. According
to Apple's docs play/pause are equivalent to setRate:1.0 and setRate:0.0, meaning that if rate was
1.0 the video resumed after seeking completed.
2015-07-14 11:06:50 +01:00
Baris Sencan
dae2ea2f66 Merge pull request #70 from brentvatne/fix/player-access
Fix issues that arise due to accessing _player on a queue other than main
2015-07-01 14:16:59 -07:00
Baris Sencan
e8e3ffec89 Set volume and muted properties on main queue 2015-06-28 23:23:31 -07:00
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