1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

encode with qsv

This commit is contained in:
Luke Pulverenti 2015-11-06 10:02:22 -05:00
parent 67524136ed
commit 64dfb8ef38
42 changed files with 945 additions and 370 deletions

View file

@ -24,32 +24,40 @@
var prefix = $.browser.android ? 'android' : 'ios';
// Get supporter status
getRegistrationInfo(prefix + 'appunlock').done(function (registrationInfo) {
IapManager.isUnlockedOverride(feature).done(function (isUnlocked) {
if (registrationInfo.IsRegistered) {
if (isUnlocked) {
deferred.resolve();
return;
}
IapManager.getSubscriptionOptions().done(function (subscriptionOptions) {
// Get supporter status
getRegistrationInfo(prefix + 'appunlock').done(function (registrationInfo) {
if (subscriptionOptions.filter(function (p) {
return p.owned;
}).length > 0) {
if (registrationInfo.IsRegistered) {
deferred.resolve();
return;
}
var dialogOptions = {
title: Globalize.translate('HeaderUnlockApp')
};
IapManager.getSubscriptionOptions().done(function (subscriptionOptions) {
showInAppPurchaseInfo(subscriptionOptions, unlockableProductInfo, registrationInfo, dialogOptions, deferred);
if (subscriptionOptions.filter(function (p) {
return p.owned;
}).length > 0) {
deferred.resolve();
return;
}
var dialogOptions = {
title: Globalize.translate('HeaderUnlockApp')
};
showInAppPurchaseInfo(subscriptionOptions, unlockableProductInfo, registrationInfo, dialogOptions, deferred);
});
}).fail(function () {
deferred.reject();
});
}).fail(function () {
deferred.reject();
});
}