react-native-video
Advanced tools
Comparing version 4.0.1 to 4.1.0
## Changelog | ||
### Version 4.1.0 | ||
* Generate onSeek on Android ExoPlayer & MediaPlayer after seek completes [#1351](https://github.com/react-native-community/react-native-video/pull/1351) | ||
* Remove unneeded onVideoSaved event [#1350](https://github.com/react-native-community/react-native-video/pull/1350) | ||
* Disable AirPlay if sidecar text tracks are enabled [#1304](https://github.com/react-native-community/react-native-video/pull/1304) | ||
* Add possibility to remove black screen while video is loading in Exoplayer [#1355](https://github.com/react-native-community/react-native-video/pull/1355) | ||
### Version 4.0.1 | ||
@@ -4,0 +10,0 @@ * Add missing files to package.json [#1342](https://github.com/react-native-community/react-native-video/pull/1342) |
{ | ||
"name": "react-native-video", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "A <Video /> element for react-native", | ||
@@ -5,0 +5,0 @@ "main": "Video.js", |
@@ -267,2 +267,3 @@ ## react-native-video | ||
* [headers](#headers) | ||
* [hideShutterView](#hideshutterview) | ||
* [id](#id) | ||
@@ -299,2 +300,3 @@ * [ignoreSilentSwitch](#ignoresilentswitch) | ||
* [onProgress](#onprogress) | ||
* [onSeek](#onseek) | ||
* [onTimedMetadata](#ontimedmetadata) | ||
@@ -421,2 +423,10 @@ | ||
#### hideShutterView | ||
Controls whether the ExoPlayer shutter view (black screen while loading) is enabled. | ||
* **false (default)** - Show shutter view | ||
* **true** - Hide shutter view | ||
Platforms: Android ExoPlayer | ||
#### id | ||
@@ -661,2 +671,4 @@ Set the DOM id element so you can use document.getElementById on web platforms. Accepts string values. | ||
Note: Due to iOS limitations, sidecar text tracks are not compatible with Airplay. If textTracks are specified, AirPlay support will be automatically disabled. | ||
Example: | ||
@@ -855,2 +867,25 @@ ``` | ||
#### onSeek | ||
Callback function that is called when a seek completes. | ||
Payload: | ||
Property | Type | Description | ||
--- | --- | --- | ||
currentTime | number | The current time after the seek | ||
seekTime | number | The requested time | ||
Example: | ||
``` | ||
{ | ||
currentTime: 100.5 | ||
seekTime: 100 | ||
} | ||
``` | ||
Both the currentTime & seekTime are reported because the video player may not seek to the exact requested position in order to improve seek performance. | ||
Platforms: Android ExoPlayer, Android MediaPlayer, iOS, Windows UWP | ||
#### onTimedMetadata | ||
@@ -949,3 +984,3 @@ Callback function that is called when timed metadata becomes available | ||
`seek()` can only be called after the `onLoad` event has fired. | ||
`seek()` can only be called after the `onLoad` event has fired. Once completed, the [onSeek](#onseek) event will be called. | ||
@@ -952,0 +987,0 @@ Example: |
@@ -386,2 +386,3 @@ import React, {Component} from 'react'; | ||
useTextureView: PropTypes.bool, | ||
hideShutterView: PropTypes.bool, | ||
onLoadStart: PropTypes.func, | ||
@@ -388,0 +389,0 @@ onLoad: PropTypes.func, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1440346
253
8190
1165