diff --git a/API.md b/API.md index 08a95ae8..deb4e638 100644 --- a/API.md +++ b/API.md @@ -277,6 +277,7 @@ var styles = StyleSheet.create({ |[disableDisconnectError](#disableDisconnectError)|Android| |[filter](#filter)|iOS| |[filterEnabled](#filterEnabled)|iOS| +|[focusable](#focusable)|Android| |[fullscreen](#fullscreen)|iOS| |[fullscreenAutorotate](#fullscreenautorotate)|iOS| |[fullscreenOrientation](#fullscreenorientation)|iOS| @@ -424,12 +425,12 @@ Determines whether to show player controls. * **true** - Show player controls Note on iOS, controls are always shown when in fullscreen mode. +Note on Android, native controls are available by default. +If needed, you can also add your controls or use a package like [react-native-video-controls](https://github.com/itsnubix/react-native-video-controls) or [react-native-media-console](https://github.com/criszz77/react-native-media-console), see [Usefull Side Project](./docs/PROJECTS.md). ### contentStartTime The start time in ms for SSAI content. This determines at what time to load the video info like resolutions. Use this only when you have SSAI stream where ads resolution is not the same as content resolution. -Note on Android, native controls are available by default. If needed, you can also add your controls or use a package like [react-native-video-controls]. - Platforms: Android, iOS #### disableFocus @@ -489,6 +490,14 @@ Enable video filter. Platforms: iOS +#### Focusable +Whether this video view should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard. +* **false** - Makes view unfocusable +* **true (default)** - Makes view focusable + +Platforms: Android + + #### fullscreen Controls whether the player enters fullscreen on play. * **false (default)** - Don't display the video in fullscreen @@ -1703,12 +1712,4 @@ allprojects { } ``` If you encounter an error `Could not find com.android.support:support-annotations:27.0.0.` reinstall your Android Support Repository. - -## Black Screen on Release build (Android) -If your video work on Debug mode, but on Release you see only black screen, please, check the link to your video. If you use 'http' protocol there, you will need to add next string to your AndroidManifest.xml file. -``` - -``` + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index eb7e6370..f2670e76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,17 @@ ### Version 6.0.0-alpha.4 - Exoplayer: add new events on tracks changed to be notified of audio/text/video Tracks update during playback [2806](https://github.com/react-native-video/react-native-video/pull/2806) +- ensure src is always provided to native player even if it is invalid [#2857](https://github.com/react-native-video/react-native-video/pull/2857) +- Sample: Add react-native-video controls support [#2852](https://github.com/react-native-video/react-native-video/pull/2852) +- Android: Switch Google's maven repository to default `google()` [#2860](https://github.com/react-native-video/react-native-video/pull/2860) +- Android: Implement focusable prop so the video view can toggle whether it is focusable for non-touch devices [#2819](https://github.com/react-native-video/react-native-video/issues/2819) +- Android: fix linter warning [#2891] (https://github.com/react-native-video/react-native-video/pull/2891) +- Fix iOS RCTSwiftLog naming collision [#2868](https://github.com/react-native-video/react-native-video/issues/2868) +- Added "homepage" to package.json [#2882](https://github.com/react-native-video/react-native-video/pull/2882) ### Version 6.0.0-alpha.3 -- fix ios build [#2854](https://gthub.com/react-native-video/react-native-video/pull/2854) +- Fix ios build [#2854](https://github.com/react-native-video/react-native-video/pull/2854) ### Version 6.0.0-alpha.2 @@ -33,6 +40,7 @@ - Fix video endless loop when repeat set to false or not specified. [#2329](https://github.com/react-native-video/react-native-video/pull/2329) ### Version 6.0.0-alpha.0 + - Support disabling buffering [#2689](https://github.com/react-native-video/react-native-video/pull/2689) - Fix AudioFocus bug that could cause the player to stop responding to play/pause in some instances. [#2689](https://github.com/react-native-video/react-native-video/pull/2689) - Fix player crashing when it is being cleared. [#2689](https://github.com/react-native-video/react-native-video/pull/2689) diff --git a/README.md b/README.md index 3ad58960..986312e4 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,31 @@ # react-native-video -#### A `