Repository navigation
Replies: 1 comment
|
Seeing two network requests for the same URL is unusual. A few possible causes:
Could you share the full mitmproxy trace including request methods (GET/HEAD), status codes, and whether the URLs are identical or different? That will clarify which case this is. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What are you trying to do?
I want to understand why react-native-video downloads the video twice. My network inspector (mitmproxy) shows that react-native-video downloads the video twice. I observed this behaviour in the emulator, but it seems to be the same on a real device. This does not look good to me. Can someone please interpret the results I have from my network inspector?
What have you tried?
I inspected the network traffic with mitmproxy.
From the screenshots: the first time the video is fully downloaded, while there is one partial request that downloads only a small chunk and the last one is also partial, but it downloads almost the whole file.
File size does not matter (observed across different file sizes).
Just in case: these requests are sent on component load without even clicking on the play button.
Screenshots:
Relevant code
Version
v6
Platforms
Android
All reactions