-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Cannot reload Video component #666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you use exoplayer? |
@frankiewiczsatlan yes using exoplayer |
@sabbyt This happend to me as well, when I switched to exoplayer. You can try changing gradle files back to vanilla react-native-video android implementation (just like in readme) and check if it works then. Rememer, that dash will not work on it. |
I discovered that issue for this problem has already been opened in here: #481. However... in npm official repo we have react-native-video 1.0.0 (last commit from January), which does not include that fix. PS I had to add this
to my |
@frankiewiczkamil I am having some difficulty regarding the Multiple Dex Files Defined error you mentioned. If I just use |
@johndanek Do you use exoplayer like in last comment here? |
@frankiewiczkamil Hi, my video component doesn't change too, I replaced dependency definition in packages.json as follows: |
@duanyachao check if your /android/settings.gradle looks like this:
instead of
|
@frankiewiczkamil I will play HLS streaming, it desn't work with react-native-video for HLS streaming |
@duanyachao check if you put correct type in source parameter. If not sure, don't put anything - it should detect it automatically. I tested it with this url and it works fine
|
I have set what you tell me, it's the code for the video component |
@frankiewiczkamil I have set what you tell me, it's the code for the video component |
@frankiewiczkamil i add dependencies { ... compile 'com.android.support:design:24.2.0' |
Hi,
Looking to be able to change Video source on button change - however, the Video component doesn't seem to play the changed source despite the component re-rendering. I have confirmed that on button press, the component re-renders and the Video prop's source uri has been changed - but the view doesn't change. And onLoad does not get called again.
The text was updated successfully, but these errors were encountered: