Skip to content
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

Fix/494 #537

Merged
merged 2 commits into from
Mar 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public String toString() {
private float mRate = 1.0f;
private boolean mPlayInBackground = false;
private boolean mActiveStatePauseStatus = false;
private boolean mActiveStatePauseStatusInitialized = false;

private int mMainVer = 0;
private int mPatchVer = 0;
Expand Down Expand Up @@ -236,7 +237,7 @@ public void setSrc(final String uriString, final String type, final boolean isNe
headers.put("Cookie", cookie);
}

setDataSource(mThemedReactContext, parsedUrl, headers);
setDataSource(uriString);
} else if (isAsset) {
if (uriString.startsWith("content://")) {
Uri parsedUrl = Uri.parse(uriString);
Expand Down Expand Up @@ -325,6 +326,11 @@ public void setPausedModifier(final boolean paused) {

mPaused = paused;

if ( !mActiveStatePauseStatusInitialized ) {
mActiveStatePauseStatus = mPaused;
mActiveStatePauseStatusInitialized = true;
}

if (!mMediaPlayerValid) {
return;
}
Expand Down