Explorar el Código

1.优化代码

王鹏鹏 hace 1 año
padre
commit
4a71a483d0

+ 2 - 2
game/src/main/java/com/yingyangfly/game/introduction/GameIntroductionActivity.kt

@@ -335,10 +335,10 @@ class GameIntroductionActivity :
      */
     private fun loadVideo(url: String) {
         if (mVodPlayer != null) {
-            mVodPlayer?.setRenderMode(TXLiveConstants.RENDER_MODE_FULL_FILL_SCREEN)
-            mVodPlayer?.setPlayerView(binding.videoView)
             mVodPlayer?.isLoop = true
             mVodPlayer?.setMute(true)
+            mVodPlayer?.setRenderMode(TXLiveConstants.RENDER_MODE_FULL_FILL_SCREEN)
+            mVodPlayer?.setPlayerView(binding.videoView)
             mVodPlayer?.startVodPlay(url)
         }
     }