hyzp_ybqx-Commit169:可能由于腾讯云直播接口调整,有的模块不能再使用,导致编译如下报错,无法正常运行。注释掉NetWatcher.java文件下面4行内容后,正常编译通过,违章视频、点位视频都能正常播放:
R:\FlutterProject\FlutterProject61-test\flutter_superplayer\android\src\main\java\com\tencent\liteav\demo\superplayer\model\utils\NetWatcher.java:12: ����: �Ҳ�������
import com.tencent.rtmp.TXLog;
^
����: �� TXLog
�: ����� com.tencent.rtmp
R:\FlutterProject\FlutterProject61-test\flutter_superplayer\android\src\main\java\com\tencent\liteav\demo\superplayer\model\utils\NetWatcher.java:57: ����: �Ҳ�������
TXLog.w("NetWatcher", "net check start watch ");
^
����: ���� TXLog
�: �� NetWatcher
R:\FlutterProject\FlutterProject61-test\flutter_superplayer\android\src\main\java\com\tencent\liteav\demo\superplayer\model\utils\NetWatcher.java:62: ����: �Ҳ�������
TXLog.w("NetWatcher", "net check loading count = "+mLoadingCount+" loading time = "+mLoadingTime);
^
����: ���� TXLog
R:\FlutterProject\FlutterProject61-test\flutter_superplayer\android\src\main\java\com\tencent\liteav\demo\superplayer\model\utils\NetWatcher.java:82: ����: �Ҳ�������
TXLog.w("NetWatcher", "net check stop watch");
This commit is contained in:
+4
-4
@@ -9,7 +9,7 @@ import android.text.TextUtils;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.tencent.rtmp.TXLivePlayer;
|
||||
import com.tencent.rtmp.TXLog;
|
||||
//import com.tencent.rtmp.TXLog;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
@@ -54,12 +54,12 @@ public class NetWatcher {
|
||||
mLoadingCount = 0;
|
||||
mLoadingTime= 0;
|
||||
mLoadingStartTime = 0;
|
||||
TXLog.w("NetWatcher", "net check start watch ");
|
||||
//TXLog.w("NetWatcher", "net check start watch ");
|
||||
Handler mainHandler = new Handler(Looper.getMainLooper());
|
||||
mainHandler.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
TXLog.w("NetWatcher", "net check loading count = "+mLoadingCount+" loading time = "+mLoadingTime);
|
||||
//TXLog.w("NetWatcher", "net check loading count = "+mLoadingCount+" loading time = "+mLoadingTime);
|
||||
if (mLoadingCount >= MAX_LOADING_COUNT || mLoadingTime >= MAX_LOADING_TIME) {
|
||||
showSwitchStreamDialog();
|
||||
}
|
||||
@@ -79,7 +79,7 @@ public class NetWatcher {
|
||||
mLoadingStartTime = 0;
|
||||
mPlayURL = "";
|
||||
mLivePlayer = null;
|
||||
TXLog.w("NetWatcher", "net check stop watch");
|
||||
//TXLog.w("NetWatcher", "net check stop watch");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user