use lbryplayer.xyz streaming URLs for signed in users
This commit is contained in:
parent
d7396bb044
commit
34fba010e1
1 changed files with 10 additions and 2 deletions
|
@ -555,7 +555,7 @@ public class FileViewFragment extends BaseFragment implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Helper.isNullOrEmpty(lbryFile.getStreamingUrl())) {
|
if (!Helper.isNullOrEmpty(lbryFile.getStreamingUrl()) && !Lbryio.isSignedIn()) {
|
||||||
return lbryFile.getStreamingUrl();
|
return lbryFile.getStreamingUrl();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1431,7 +1431,7 @@ public class FileViewFragment extends BaseFragment implements
|
||||||
}
|
}
|
||||||
|
|
||||||
if (claim.isFree()) {
|
if (claim.isFree()) {
|
||||||
if (claim.isPlayable()) {
|
if (claim.isPlayable() || (!Lbry.SDK_READY && Lbryio.isSignedIn())) {
|
||||||
if (MainActivity.nowPlayingClaim != null && MainActivity.nowPlayingClaim.getClaimId().equalsIgnoreCase(claim.getClaimId())) {
|
if (MainActivity.nowPlayingClaim != null && MainActivity.nowPlayingClaim.getClaimId().equalsIgnoreCase(claim.getClaimId())) {
|
||||||
// claim already playing
|
// claim already playing
|
||||||
showExoplayerView();
|
showExoplayerView();
|
||||||
|
@ -1798,6 +1798,14 @@ public class FileViewFragment extends BaseFragment implements
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleMainActionForClaim() {
|
private void handleMainActionForClaim() {
|
||||||
|
if (claim.isPlayable() && Lbryio.isSignedIn()) {
|
||||||
|
// always use lbry.tv streaming when signed in and playabble
|
||||||
|
startTimeMillis = System.currentTimeMillis();
|
||||||
|
showExoplayerView();
|
||||||
|
playMedia();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Lbry.SDK_READY) {
|
if (Lbry.SDK_READY) {
|
||||||
// Check if the file already exists for the claim
|
// Check if the file already exists for the claim
|
||||||
if (claim.getFile() != null) {
|
if (claim.getFile() != null) {
|
||||||
|
|
Loading…
Reference in a new issue