doc: add link to side project and create a debugging page
This commit is contained in:
parent
2349fad25f
commit
57c991363b
10
API.md
10
API.md
@ -1609,12 +1609,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.
|
||||
```
|
||||
<application
|
||||
...
|
||||
android:usesCleartextTraffic="true"
|
||||
>
|
||||
```
|
||||
|
@ -13,5 +13,7 @@ Version 6.0.0 is introducing dozens of breaking changes, mostly through updated
|
||||
- [Documentation](API.md)
|
||||
- [Changelog](CHANGELOG.md)
|
||||
- [Contribution guide](CONTRIBUTING.md)
|
||||
- [Usefull Side Project](./docs/PROJECTS.md)
|
||||
- [Adanced debugging](./docs/DEBUGGING.md)
|
||||
|
||||
**react-native-video** was originally created by [Brent Vatne](https://github.com/brentvatne)
|
||||
|
47
docs/DEBUGGING.md
Normal file
47
docs/DEBUGGING.md
Normal file
@ -0,0 +1,47 @@
|
||||
# Advanced debuging and common issues
|
||||
|
||||
### HTTP playback doesn't work or 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. [Details here](https://developer.android.com/guide/topics/manifest/application-element#usesCleartextTraffic)
|
||||
|
||||
```
|
||||
<application
|
||||
...
|
||||
android:usesCleartextTraffic="true"
|
||||
>
|
||||
```
|
||||
|
||||
### Decoder Issue (Android)
|
||||
|
||||
Devices have a maximum of simulataneous possible playback. It means you have reach this limit. Exoplayer returns: 'Unable to instantiate decoder'
|
||||
|
||||
**known issue**: This issue happen really often in debug mode.
|
||||
|
||||
## You cannot play clean content (all OS)
|
||||
|
||||
Here are the steps to consider before opening a ticket in issue tracker
|
||||
|
||||
### Check you can access to remote file
|
||||
|
||||
Ensure you can download to manifest / content file with a browser for exemple
|
||||
|
||||
### Check another player can read the content
|
||||
|
||||
Usually clear playback can be read with all Video player. Then you should ensure content can be played without any issue with another player ([VideoLan/VLC](https://www.videolan.org/vlc/) is a good reference implementation)
|
||||
|
||||
## You cannot play protected content (all OS)
|
||||
|
||||
### Protected content gives error (token error / access forbidden)
|
||||
|
||||
If content is protected with an access token or any other http header, ensure you can access to you data with a wget call or a rest client app. You need to provide all needed access token / authentication parameters.
|
||||
|
||||
### Everything seems correct but content cannot be accessed
|
||||
|
||||
You need to record network trace to ensure communications with server is correct.
|
||||
[Charles proxy](https://www.charlesproxy.com/) is a simple and usefull tool to sniff all http/https calls.
|
||||
With this tool you should be able to analyze what is going on with network. You will see all access to content and DRM, audio / vido chuncks, ...
|
||||
|
||||
Then try to compare exchanges with previous tests you made.
|
||||
|
||||
### It's still not working
|
||||
|
||||
You can try to open a ticket now !
|
9
docs/PROJECTS.md
Normal file
9
docs/PROJECTS.md
Normal file
@ -0,0 +1,9 @@
|
||||
This page links other open source projects which can be usefull for your player implementation
|
||||
|
||||
# UI over react-native-video
|
||||
- [react-native-video-controls](https://github.com/itsnubix/react-native-video-controls): First reference player UI
|
||||
- [react-native-media-console](https://github.com/criszz77/react-native-media-console): React-native-video-controls updated and rewritten in typescript
|
||||
- [react-native-corner-video](https://github.com/Lg0gs/react-native-corner-video): A floating video player
|
||||
|
||||
# Other tools
|
||||
- [react-native-corner-video](https://github.com/tanguyantoine/react-native-music-control): A toolbox to control player over media session
|
Loading…
Reference in New Issue
Block a user