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
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