Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Error found, please fix #69

Open
oscarsales opened this issue Aug 28, 2018 · 2 comments
Open

Error found, please fix #69

oscarsales opened this issue Aug 28, 2018 · 2 comments

Comments

@oscarsales
Copy link

oscarsales commented Aug 28, 2018

I'm trying to load videos from internet and it returns an Exception. I've followed the code to this:

BetterVideoPlayer.js, line: 393:

hideControls();
mCallback.onPreparing(this);
mPlayer.setSurface(mSurface);
if (mSource.getScheme().equals("http") || mSource.getScheme().equals("https")) {
LOG("Loading web URI: " + mSource.toString());
mPlayer.setDataSource(getContext(), mSource, headers);
} else {
LOG("Loading local URI: " + mSource.toString());
mPlayer.setDataSource(getContext(), mSource, headers);
}

In:
mPlayer.setDataSource(getContext(), mSource, headers);

This throws Exception with message: setDataSource failed.: status=0x80000000

context is correct, mSource (url) is correct, but headers is null (I don't know if this is the problem). Searching in Google I've found many examples which only use:
mediaPlayer.setDataSource( url );

Please fix this error. Video never plays and player is always loading.

@sarbwarraich
Copy link

I am facing the same issue, video is loading only, but unable to play from amazon s3 bucket url.

@halilozercan
Copy link
Owner

Library will initialize headers as an empty hashmap in the next release. However, I dont think it was the main problem in your case.

I think I will need more information in your case. What kind of Uri are you trying to load into player?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants