release: 1.4.9

This commit is contained in:
2026-04-23 17:15:19 +08:00
parent 9d431c66b6
commit d653b06c8d
23 changed files with 31 additions and 446 deletions

View File

@@ -12,6 +12,7 @@ public class AwardVideoPlayer : ADPlayer, ATRewardedVideoListener
private Action<bool> _onVideoComplete;
private ADListenerAggregator _aggregator;
private bool _autoLoadRegistered;
private bool _rewardGranted;
public override void OnInit()
{
@@ -28,6 +29,7 @@ public class AwardVideoPlayer : ADPlayer, ATRewardedVideoListener
}
curState = 0;
_rewardGranted = false;
_onVideoComplete = onVideoComplete;
adListener.onClose = onClose;
adListener.onVideoComplete = OnVideoComplete;
@@ -117,6 +119,7 @@ public class AwardVideoPlayer : ADPlayer, ATRewardedVideoListener
public void onRewardedVideoAdPlayStart(string placementId, ATCallbackInfo callbackInfo)
{
Debug.Log($"[Topon] Rewarded play start. placementId={placementId}");
NotifyShowStarted();
}
public void onRewardedVideoAdPlayEnd(string placementId, ATCallbackInfo callbackInfo)
@@ -134,7 +137,7 @@ public class AwardVideoPlayer : ADPlayer, ATRewardedVideoListener
public void onRewardedVideoAdPlayClosed(string placementId, bool isReward, ATCallbackInfo callbackInfo)
{
Debug.Log($"[Topon] Rewarded closed. placementId={placementId}, reward={isReward}");
adListener.OnRewardVerify(isReward, 1, "");
adListener.OnRewardVerify(_rewardGranted || isReward, 1, "");
adListener.OnAdClose();
}
@@ -146,8 +149,7 @@ public class AwardVideoPlayer : ADPlayer, ATRewardedVideoListener
public void onReward(string placementId, ATCallbackInfo callbackInfo)
{
Debug.Log($"[Topon] Rewarded reward callback. placementId={placementId}");
adListener.OnRewardVerify(true, 1, "");
adListener.OnAdClose();
_rewardGranted = true;
}
public void startLoadingADSource(string placementId, ATCallbackInfo callbackInfo)
@@ -160,7 +162,6 @@ public class AwardVideoPlayer : ADPlayer, ATRewardedVideoListener
public void failToLoadADSource(string placementId, ATCallbackInfo callbackInfo, string code, string message)
{
OnError(code, message);
}
public void startBiddingADSource(string placementId, ATCallbackInfo callbackInfo)

View File

@@ -114,6 +114,7 @@ public class InteractionPlayer : ADPlayer, ATInterstitialAdListener
public void onInterstitialAdShow(string placementId, ATCallbackInfo callbackInfo)
{
Debug.Log($"[Topon] Interstitial show. placementId={placementId}");
NotifyShowStarted();
}
public void onInterstitialAdFailedToShow(string placementId)
@@ -160,7 +161,6 @@ public class InteractionPlayer : ADPlayer, ATInterstitialAdListener
public void failToLoadADSource(string placementId, ATCallbackInfo callbackInfo, string code, string message)
{
OnError(code, message);
}
public void startBiddingADSource(string placementId, ATCallbackInfo callbackInfo)
@@ -173,7 +173,6 @@ public class InteractionPlayer : ADPlayer, ATInterstitialAdListener
public void failBiddingADSource(string placementId, ATCallbackInfo callbackInfo, string code, string message)
{
OnError(code, message);
}
public override void OnPlayRequestStarted()