logo和名称替换
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import 'package:connectivity_plus/connectivity_plus.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:hgmj/config/config.dart';
|
||||
import 'package:hgmj/hj_utils/codec_support.dart';
|
||||
import 'package:hgmj/hj_utils/video_view_type.dart';
|
||||
import 'package:hgmj/tools_base/global_store/store.dart';
|
||||
import 'package:hgmj/tools_base/net/http_manager.dart';
|
||||
import 'package:hgmj/tools_base/toast.dart';
|
||||
import 'package:hgmj/track_event_manager/device_service.dart';
|
||||
import 'package:wydj/config/config.dart';
|
||||
import 'package:wydj/hj_utils/codec_support.dart';
|
||||
import 'package:wydj/hj_utils/video_view_type.dart';
|
||||
import 'package:wydj/tools_base/global_store/store.dart';
|
||||
import 'package:wydj/tools_base/net/http_manager.dart';
|
||||
import 'package:wydj/tools_base/toast.dart';
|
||||
import 'package:wydj/track_event_manager/device_service.dart';
|
||||
|
||||
/// 播放失败诊断(**测试包专用**)。
|
||||
///
|
||||
@@ -39,14 +39,19 @@ class PlayDiagnose {
|
||||
..writeln('【$scene】${DateTime.now()}')
|
||||
..writeln('视频: ${videoTitle ?? '-'} (id=${videoId ?? '-'})')
|
||||
..writeln('地址: ${url ?? '-'}')
|
||||
..writeln('本次选流: ${isH265 == true ? 'H265' : 'H264'} 已回退264=${forceH264 ?? false}')
|
||||
..writeln(
|
||||
'本次选流: ${isH265 == true ? 'H265' : 'H264'} 已回退264=${forceH264 ?? false}')
|
||||
..writeln('--- 编解码 ---')
|
||||
..writeln('芯片硬解265=${CodecSupport.hwSupport} 本机已禁265=${CodecSupport.deviceDisabled} 最终用265=${CodecSupport.useH265}')
|
||||
..writeln('渲染方式=${needPlatformView ? 'platformView' : 'textureView'} 已持久化=$platformViewPersisted')
|
||||
..writeln(
|
||||
'芯片硬解265=${CodecSupport.hwSupport} 本机已禁265=${CodecSupport.deviceDisabled} 最终用265=${CodecSupport.useH265}')
|
||||
..writeln(
|
||||
'渲染方式=${needPlatformView ? 'platformView' : 'textureView'} 已持久化=$platformViewPersisted')
|
||||
..writeln('判定为解码错误=${isDecoderError(error)}')
|
||||
..writeln('--- 环境 ---')
|
||||
..writeln('机型: ${DeviceInfoService.brand} ${DeviceInfoService.model} 系统: ${DeviceInfoService.deviceOS} ${DeviceInfoService.systemVersion}')
|
||||
..writeln('版本: ${Config.innerVersion} 用户: ${globalStore.meInfo?.uid ?? '-'} 设备: ${DeviceInfoService.deviceId}')
|
||||
..writeln(
|
||||
'机型: ${DeviceInfoService.brand} ${DeviceInfoService.model} 系统: ${DeviceInfoService.deviceOS} ${DeviceInfoService.systemVersion}')
|
||||
..writeln(
|
||||
'版本: ${Config.innerVersion} 用户: ${globalStore.meInfo?.uid ?? '-'} 设备: ${DeviceInfoService.deviceId}')
|
||||
..writeln('网络: $net 线路: ${httpManager.baseUrl}')
|
||||
..writeln('--- 错误原文 ---')
|
||||
..writeln('$error');
|
||||
@@ -54,7 +59,8 @@ class PlayDiagnose {
|
||||
_records.add(buffer.toString());
|
||||
if (_records.length > _maxRecords) _records.removeAt(0);
|
||||
|
||||
await Clipboard.setData(ClipboardData(text: _records.join('\n${'=' * 30}\n')));
|
||||
await Clipboard.setData(
|
||||
ClipboardData(text: _records.join('\n${'=' * 30}\n')));
|
||||
showToast('失败信息已复制(${_records.length}条)\n请粘贴发给客服');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user