|
|
@@ -9,8 +9,11 @@ import android.view.MotionEvent
|
|
|
import android.view.View
|
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
|
import com.alibaba.android.arouter.launcher.ARouter
|
|
|
+import com.tencent.liteav.demo.superplayer.SuperPlayerModel
|
|
|
+import com.yingyangfly.baselib.config.AccountConfig
|
|
|
import com.yingyangfly.baselib.ext.getEndAnimation
|
|
|
import com.yingyangfly.baselib.ext.getScaleAnimation
|
|
|
+import com.yingyangfly.baselib.ext.show
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
@@ -63,7 +66,13 @@ class GameIntroductionActivity :
|
|
|
}
|
|
|
|
|
|
override fun initData() {
|
|
|
-
|
|
|
+ binding {
|
|
|
+ val model = SuperPlayerModel()
|
|
|
+ model.appId = AccountConfig.TENCENT_APPID // 配置 AppId
|
|
|
+ model.url = videoUrl // 配置您的播放视频 url
|
|
|
+ binding.playTxCloudView.showOrHideBackBtn(false)
|
|
|
+ binding.playTxCloudView.playWithModelNeedLicence(model)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
override fun onNewIntent(intent: Intent?) {
|
|
|
@@ -86,6 +95,29 @@ class GameIntroductionActivity :
|
|
|
if (it != null) {
|
|
|
gameBean = it
|
|
|
binding.data = it
|
|
|
+ when (it.gameDifficulty) {
|
|
|
+ "A" -> {
|
|
|
+ binding {
|
|
|
+ imageDifficultyOne.show(true)
|
|
|
+ imageDifficultyTwo.show(false)
|
|
|
+ imageDifficultyThree.show(false)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ "B" -> {
|
|
|
+ binding {
|
|
|
+ imageDifficultyOne.show(true)
|
|
|
+ imageDifficultyTwo.show(true)
|
|
|
+ imageDifficultyThree.show(false)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else -> {
|
|
|
+ binding {
|
|
|
+ imageDifficultyOne.show(true)
|
|
|
+ imageDifficultyTwo.show(true)
|
|
|
+ imageDifficultyThree.show(true)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|