1、删除腾讯IM、腾讯播放器jar+so文件
2、注释+删除使用了腾讯SDK的地方
This commit is contained in:
@@ -17,9 +17,6 @@ import com.lzf.easyfloat.EasyFloat;
|
||||
import com.lzf.easyfloat.enums.ShowPattern;
|
||||
import com.lzf.easyfloat.interfaces.FloatCallbacks;
|
||||
import com.lzf.easyfloat.interfaces.OnInvokeView;
|
||||
import com.tencent.rtmp.ITXLivePlayListener;
|
||||
import com.tencent.rtmp.TXLivePlayer;
|
||||
import com.tencent.rtmp.ui.TXCloudVideoView;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.R;
|
||||
@@ -54,9 +51,9 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
private int mLiveTypeVal;
|
||||
private FloatCallbacks.Builder builder;
|
||||
private String TAG = "LiveFloatView";
|
||||
private TXLivePlayer mPlayer;
|
||||
// private TXLivePlayer mPlayer;
|
||||
private FrameLayout videoFrameLayout;
|
||||
private TXCloudVideoView videoView;
|
||||
// private TXCloudVideoView videoView;
|
||||
private SWAuManager swAuManager;
|
||||
|
||||
public static LiveFloatView getInstance() {
|
||||
@@ -96,7 +93,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
//进入主播房间
|
||||
swAuManager.joinRoom(CommonAppConfig.getInstance().getUid(), CommonAppConfig.SWToken,mLiveBean.getUid(), SWAuManager.getChannelName(mLiveBean.getUid()));
|
||||
}else{
|
||||
videoView = magnetView.findViewById(R.id.video_view);
|
||||
/*videoView = magnetView.findViewById(R.id.video_view);
|
||||
mPlayer = new TXLivePlayer(mContext);
|
||||
mPlayer.setPlayerView(videoView);
|
||||
mPlayer.startPlay(url, TXLivePlayer.PLAY_TYPE_LIVE_FLV);
|
||||
@@ -122,7 +119,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
public void onNetStatus(Bundle bundle) {
|
||||
|
||||
}
|
||||
});
|
||||
});*/
|
||||
}
|
||||
|
||||
ViewClicksAntiShake.clicksAntiShake(magnetView.findViewById(R.id.btn_close), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@@ -131,7 +128,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
if(mLiveSDK){
|
||||
SWAuManager.get().exitChannelAll();
|
||||
}else{
|
||||
mPlayer.stopPlay(true);
|
||||
// mPlayer.stopPlay(true);
|
||||
}
|
||||
APPEasyFloat.getInstance().dismiss(mContext);
|
||||
if (IMLoginManager.get(mContext).isHint2() && !((FragmentActivity) mContext).getSupportFragmentManager().isDestroyed()) {
|
||||
@@ -150,11 +147,11 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
new Handler().post(liveCheck);
|
||||
});
|
||||
}else{
|
||||
ViewClicksAntiShake.clicksAntiShake(videoView, () -> {
|
||||
/*ViewClicksAntiShake.clicksAntiShake(videoView, () -> {
|
||||
mPlayer.stopPlay(true);
|
||||
APPEasyFloat.getInstance().dismiss(mContext);
|
||||
new Handler().post(liveCheck);
|
||||
});
|
||||
});*/
|
||||
}
|
||||
|
||||
}
|
||||
@@ -169,8 +166,8 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
if(mLiveSDK){
|
||||
SWAuManager.get().exitChannelAll();
|
||||
}else{
|
||||
if (mPlayer != null)
|
||||
mPlayer.stopPlay(true);
|
||||
/* if (mPlayer != null)
|
||||
mPlayer.stopPlay(true);*/
|
||||
}
|
||||
|
||||
}
|
||||
@@ -211,15 +208,15 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
callback.invoke(aBoolean);
|
||||
}
|
||||
builder.dismiss(() -> {
|
||||
if (mPlayer != null && mPlayer.isPlaying()) {
|
||||
/*if (mPlayer != null && mPlayer.isPlaying()) {
|
||||
mPlayer.stopPlay(true);
|
||||
}
|
||||
}*/
|
||||
return null;
|
||||
});
|
||||
builder.hide(view12 -> {
|
||||
if (mPlayer != null && mPlayer.isPlaying()) {
|
||||
/*if (mPlayer != null && mPlayer.isPlaying()) {
|
||||
mPlayer.pause();
|
||||
}
|
||||
}*/
|
||||
return null;
|
||||
});
|
||||
|
||||
@@ -256,7 +253,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
//进入主播房间
|
||||
swAuManager.joinRoom(CommonAppConfig.getInstance().getUid(), CommonAppConfig.SWToken, mLiveBean.getUid(),SWAuManager.getChannelName(mLiveBean.getUid()));
|
||||
}else{
|
||||
TXCloudVideoView videoView = view.findViewById(R.id.video_view);
|
||||
/* TXCloudVideoView videoView = view.findViewById(R.id.video_view);
|
||||
mPlayer = new TXLivePlayer(mContext);
|
||||
mPlayer.setPlayerView(videoView);
|
||||
mPlayer.startPlay(url, TXLivePlayer.PLAY_TYPE_LIVE_FLV);
|
||||
@@ -283,7 +280,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
public void onNetStatus(Bundle bundle) {
|
||||
|
||||
}
|
||||
});
|
||||
});*/
|
||||
}
|
||||
|
||||
ViewClicksAntiShake.clicksAntiShake(view.findViewById(R.id.btn_close), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@@ -292,7 +289,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
if(mLiveSDK){
|
||||
SWAuManager.get().exitChannelAll();
|
||||
}else{
|
||||
mPlayer.stopPlay(true);
|
||||
// mPlayer.stopPlay(true);
|
||||
}
|
||||
|
||||
EasyFloat.dismiss("LiveFloatView", true);
|
||||
@@ -309,7 +306,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
if(mLiveSDK){
|
||||
SWAuManager.get().exitChannelAll();
|
||||
}else{
|
||||
mPlayer.stopPlay(true);
|
||||
// mPlayer.stopPlay(true);
|
||||
}
|
||||
new Handler().post(liveCheck);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user