代码拉取完成,页面将自动刷新
class AIOSdkType {
public static final def AliVCSDK_Standard = "AliVCSDK_Standard"
public static final def AliVCSDK_Premium = "AliVCSDK_Premium"
public static final def AliVCSDK_UGC = "AliVCSDK_UGC"
public static final def AliVCSDK_UGCPro = "AliVCSDK_UGCPro"
public static final def AliVCSDK_BasicLive = "AliVCSDK_BasicLive"
public static final def AliVCSDK_InteractiveLive = "AliVCSDK_InteractiveLive"
public static final def AliVCSDK_StandardLive = "AliVCSDK_StandardLive"
public static final def AliVCSDK_PremiumLive = "AliVCSDK_PremiumLive"
}
def AIO_SDK_TYPE = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
AIO_SDK_TYPE = SDK_TYPE
}
def IS_AIO = true
if (hasProperty("allInOne")) {
IS_AIO = allInOne
}
def hasLive() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasLive sdkType = " + sdkType)
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_Standard.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_BasicLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_InteractiveLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_StandardLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_PremiumLive.equalsIgnoreCase(sdkType)
}
def hasUGC() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasUGC sdkType = " + sdkType)
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_Standard.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_UGC.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_UGCPro.equalsIgnoreCase(sdkType)
}
def hasPlayer() {
return true
}
def hasRTS() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasLive sdkType = " + sdkType)
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_Standard.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_BasicLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_InteractiveLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_StandardLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_PremiumLive.equalsIgnoreCase(sdkType)
}
def hasQueen() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasQueen sdkType = " + sdkType)
def isAio = true
if (hasProperty("allInOne")) {
isAio = allInOne
}
if (!isAio) {
return false
}
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_UGCPro.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_StandardLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_PremiumLive.equalsIgnoreCase(sdkType)
}
def hasInteractiveLive() {
def sdkType = "AliVCSDK_Premium"
if (hasProperty("SDK_TYPE")) {
sdkType = SDK_TYPE
}
println("hasInteractiveLive sdkType = " + sdkType)
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_Standard.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_InteractiveLive.equalsIgnoreCase(sdkType) ||
AIOSdkType.AliVCSDK_PremiumLive.equalsIgnoreCase(sdkType)
}
def hasEnhanceFeature() {
return AIOSdkType.AliVCSDK_Premium.equalsIgnoreCase(sdkType)
}
ext {
hasLive = this.&hasLive
hasUGC = this.&hasUGC
hasPlayer = this.&hasPlayer
hasQueen = this.&hasQueen
hasRTS = this.&hasRTS
hasInteractiveLive = this.&hasInteractiveLive
hasEnhanceFeature = this.&hasEnhanceFeature
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。