Closed eraldoforgoli closed 2 years ago
@eraldoforgoli Are you running on a simulator or on a real device?
@pvn I am runing it on a real device.
Don't you think that is because large file you are loading. Also do you directly load file or using progressive download? (specifying bates ranges). Do you have the same behaviour with the same file, but serving from local device storage?
@Romick2005 The files are actually quite small (5mb, should be no issue, on iOS it loads instantly). I am not specifying bates ranges.
Are you sure that 5mb in mobile is nothing? Than I advise you to log some timing using onLoad, onEnd and also visually compare remote with local video play
Also I recommend you to use progressive loading as in your current situation video file is not played until full load 5mb! But with bytes range loading video will start load after for example 200kb loaded and the rest bytes would be on the downloading way. So while playing new bytes would be added to the stream and there would be no delays.
@Romick2005 thanks for the advices 👍
@Romick2005 can you explain please how to use bytes range loading in react-native-video ?
@frostyk That should be done on backend server that provide video file and could also support progressive video file stream. You can find more detailes here.
@Romick2005 thanks for answer. This helped me to increase loading speed several times.
Can anyone help with that issue? I'm using Laravel(PHP) in the backend
can anyone help me?. i save video on firebase storage. when i load the video link on firebase storage very slow. IOS work well very fast. is that problem of exo player??
+1 iOS Loads quickly, however on Android its 3x 4x slower.
Without specific video links we cannot do anything about performance issues. I am closing this issue. Please open new issues with specific video links and reproducible code.
Hi @hueniverse
Here is a sample video: https://files.teamsportz.app/videolibrary/team_127/highlights/game/high_62850701135c5.mp4 that is loading very slowly on Android.
Any news ? I have a similar problem
Kindly follow below link. This will help you to solve the issue. https://stackoverflow.com/questions/56596041/react-native-video-takes-too-long-to-start-playback
let's close this issue, This is a known issue on basic Media player. It has been dropped on V6. So 2 solutions:
This works for me: Add dependencies in react-native.config.js
module.exports = {
project: {
ios: {},
android: {},
},
dependencies: {
"react-native-video": {
platforms: {
android: {
sourceDir: "../node_modules/react-native-video/android-exoplayer",
},
},
},
},
assets: ['./src/assets/fonts']
};
@Moeed-Farooq It fails by being built on React native 0.73 please help anything after adding ../node_modules/react-native-video/android-exoplayer using react-native-video aplha
@xts-bit dont use react-native-video aplha, i am using "react-native-video": "^5.2.1". This above tricks works for me 100% fine.
Bug
Hi, I am using the version "react-native-video": "^4.4.5" and it is extremely slow on android (+15seconds slower than in iOS). I am using the player with the basic capabilities to play remote videos from S3 (videos usually 5-20mb).
Platform
Android
Which player are you experiencing the problem on:
Environment info
React native info output:
Library version: "^4.4.5"
Expected behaviour
Reproducible sample code