Skip to content

Commit

Permalink
fix for issue corsi-it#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Milloy committed Nov 15, 2016
1 parent 32d105c commit ed53bea
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 18 deletions.
25 changes: 16 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Change Log

## 0.9.5 (14-11-2016)
Bug fixes:
[Tapping controls doesn't reset control hide timeout](https://github.com/itsnubix/react-native-video-controls/issues/1)
- add resets to panhandlers for volume/seek areas
- add resets to renderControl function onPress params.
Features:
- Added loading icon
## 0.9.5 (15-11-2016)

### Bug fixes
[Tapping controls doesn't reset control hide timeout](https://github.com/itsnubix/react-native-video-controls/issues/1):

- add resets to panhandlers for volume/seek areas
- add resets to renderControl function onPress params.

[Control backgrounds should be gradients](https://github.com/itsnubix/react-native-video-controls/issues/2)

- Changed vignette assets to be more subtle.
- Added stretch to resizeMode

### Features:

- Added loading icon
17 changes: 9 additions & 8 deletions VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export default class VideoPlayer extends Component {
this.player = {
volumePanResponder: PanResponder,
seekPanResponder: PanResponder,
controlTimeoutDelay: 10000,
//controlTimeoutDelay: 10000, CHANGEBACK
controlTimeoutDelay: 10000000,
controlTimeout: null,
volumeWidth: 150,
seekWidth: 0,
Expand Down Expand Up @@ -979,6 +980,8 @@ const styles = {
container: {
flex: 1,
alignSelf: 'stretch',
backfaceVisibility: 'hidden',
justifyContent: 'space-between',
},
video: {
position: 'absolute',
Expand All @@ -998,9 +1001,6 @@ const styles = {
alignItems: 'center',
justifyContent: 'center',
},
icon: {

},
}),
controls: StyleSheet.create({
row: {
Expand All @@ -1017,8 +1017,9 @@ const styles = {
height: null,
width: null,
},
background: {
resizeMode: 'repeat',
vignette: {
resizeMode: 'stretch',
backfaceVisibility: 'hidden',
},
control: {
padding: 24,
Expand Down Expand Up @@ -1052,7 +1053,7 @@ const styles = {
justifyContent: 'center',
zIndex: 100,
marginTop: 24,
marginBottom: -10,
marginBottom: 0,
marginLeft: 12,
marginRight: 12,
},
Expand All @@ -1070,7 +1071,7 @@ const styles = {
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
marginBottom: -10,
marginBottom: 0,
marginLeft: 18,
marginRight: 18,
},
Expand Down
Binary file modified assets/img/bottom-vignette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/bottom-vignette@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/bottom-vignette@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/top-vignette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/top-vignette@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/top-vignette@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class App extends Component {
render() {
return (
<VideoPlayer
source={{ uri: 'https://vjs.zencdn.net/v/oceans.mp4?v=8' }}
source={{ uri: 'https://vjs.zencdn.net/v/oceans.mp4' }}
title="Oceans"
/>
);
Expand Down

0 comments on commit ed53bea

Please sign in to comment.