release: 1.0.12

This commit is contained in:
2026-04-22 17:41:45 +08:00
parent 99153814a6
commit cef923c0b7
5 changed files with 134 additions and 16 deletions

View File

@@ -15,9 +15,32 @@ namespace Runtime.ADAggregator
public Action OnErrorAction;
public AD_Type ADType { get; internal set; }
public int State => curState;
public virtual int MaxLoadAttempts
{
get
{
return ADType == AD_Type.AwardVideo ? 2 : 1;
}
}
public virtual float LoadRetryDelaySeconds
{
get
{
return ADType == AD_Type.AwardVideo ? 0.75f : 0f;
}
}
public virtual bool AutoPreloadOnInit
{
get
{
return false;
}
}
public ADPlayer Init(string key)
{
this.Key = key;
@@ -45,6 +68,14 @@ namespace Runtime.ADAggregator
{
}
public virtual void OnPlayRequestStarted()
{
}
public virtual void EnterAdScenario(string scenario)
{
}
/// <summary>
/// 主动关闭广告
/// </summary>
@@ -59,4 +90,4 @@ namespace Runtime.ADAggregator
curState = 0;
}
}
}
}