Commit b1db4aa0 authored by jyx's avatar jyx

优化看完广告进度条不走

parent a32f21de
...@@ -35,14 +35,7 @@ import com.mints.helivideo.ui.widgets.VipCountDialog ...@@ -35,14 +35,7 @@ import com.mints.helivideo.ui.widgets.VipCountDialog
import com.mints.helivideo.utils.AppPreferencesManager import com.mints.helivideo.utils.AppPreferencesManager
import com.mints.helivideo.utils.SpanUtils import com.mints.helivideo.utils.SpanUtils
import com.mints.library.utils.nodoubleclick.AntiShake import com.mints.library.utils.nodoubleclick.AntiShake
import kotlinx.android.synthetic.main.activity_tx_video.*
import kotlinx.android.synthetic.main.drama_activity_api_detail.* import kotlinx.android.synthetic.main.drama_activity_api_detail.*
import kotlinx.android.synthetic.main.drama_activity_api_detail.episode_tv
import kotlinx.android.synthetic.main.drama_activity_api_detail.fm_bottom
import kotlinx.android.synthetic.main.drama_activity_api_detail.ll_lucky
import kotlinx.android.synthetic.main.drama_activity_api_detail.tv_lucky_status
import kotlinx.android.synthetic.main.fragment_main_my.*
import kotlinx.android.synthetic.main.fragment_tx_video.*
/** /**
* @author Assen * @author Assen
...@@ -628,7 +621,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic ...@@ -628,7 +621,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
// ll_lucky.visibility = View.GONE // ll_lucky.visibility = View.GONE
} }
localShowLucky(mCurrentIndex-1) localShowLucky(mCurrentIndex - 1)
} }
private fun playCollectAnim(view: LottieAnimationView) { private fun playCollectAnim(view: LottieAnimationView) {
......
...@@ -32,11 +32,6 @@ import com.mints.helivideo.utils.SpanUtils ...@@ -32,11 +32,6 @@ import com.mints.helivideo.utils.SpanUtils
import com.mints.helivideo.video.tx.adapter.TxVideoAdapter import com.mints.helivideo.video.tx.adapter.TxVideoAdapter
import com.mints.library.utils.nodoubleclick.AntiShake import com.mints.library.utils.nodoubleclick.AntiShake
import kotlinx.android.synthetic.main.activity_tx_video.* import kotlinx.android.synthetic.main.activity_tx_video.*
import kotlinx.android.synthetic.main.activity_tx_video.episode_tv
import kotlinx.android.synthetic.main.activity_tx_video.fm_bottom
import kotlinx.android.synthetic.main.activity_tx_video.ll_lucky
import kotlinx.android.synthetic.main.activity_tx_video.tv_lucky_status
import kotlinx.android.synthetic.main.drama_activity_api_detail.*
class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView, class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
VideoEpisodeAdapter.OnEpisodeClickListener, TxVideoAdapter.OnCustomChildClickListener { VideoEpisodeAdapter.OnEpisodeClickListener, TxVideoAdapter.OnCustomChildClickListener {
......
...@@ -20,7 +20,6 @@ import android.widget.TextView; ...@@ -20,7 +20,6 @@ import android.widget.TextView;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.mints.helivideo.utils.UIUtils;
import com.tencent.rtmp.TXLiveConstants; import com.tencent.rtmp.TXLiveConstants;
import com.tencent.rtmp.ui.TXCloudVideoView; import com.tencent.rtmp.ui.TXCloudVideoView;
import com.mints.helivideo.R; import com.mints.helivideo.R;
...@@ -62,6 +61,7 @@ public class TXVideoBaseView extends RelativeLayout implements View.OnClickListe ...@@ -62,6 +61,7 @@ public class TXVideoBaseView extends RelativeLayout implements View.OnClickListe
public void setTXVodPlayer(TXVodPlayerWrapper TXVodPlayerWrapper) { public void setTXVodPlayer(TXVodPlayerWrapper TXVodPlayerWrapper) {
mTXVodPlayerWrapper = TXVodPlayerWrapper; mTXVodPlayerWrapper = TXVodPlayerWrapper;
mTXVodPlayerWrapper.setPlayerView(mTXCloudVideoView); mTXVodPlayerWrapper.setPlayerView(mTXCloudVideoView);
mTXVodPlayerWrapper.setVodChangeListener(this);
mTXCloudVideoView.requestLayout(); mTXCloudVideoView.requestLayout();
Log.i(TAG, "[setTXVodPlayer] , PLAY_EVT_PLAY_PROGRESS," + mTXVodPlayerWrapper.getVodPlayer().hashCode() + " url " + TXVodPlayerWrapper.getUrl()); Log.i(TAG, "[setTXVodPlayer] , PLAY_EVT_PLAY_PROGRESS," + mTXVodPlayerWrapper.getVodPlayer().hashCode() + " url " + TXVodPlayerWrapper.getUrl());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment