This commit is contained in:
2024-11-03 19:54:13 +08:00
parent 3b190b8a44
commit 3e694a43cc
5 changed files with 19 additions and 48 deletions

View File

@@ -180,7 +180,7 @@ public class WebSocketManager {
@Override
public void onMessage(ByteBuffer bytes) {
Log.i("WebSocketClientTh.onMessage: " + roomConfig.getAnchorName());
// Log.i("WebSocketClientTh.onMessage: " + roomConfig.getAnchorName());
super.onMessage(bytes);
decompress(bytes.array());
}
@@ -223,7 +223,7 @@ public class WebSocketManager {
}
private void danmu(byte[] bytes) {
Log.i("未压缩:" + new String(bytes));
//Log.i("未压缩:" + new String(bytes));
}
private void unzipDanmu(byte[] bytes, boolean useHeader) {

View File

@@ -74,7 +74,6 @@ public class VideoFileController {
public String getTmpImg(String url) {
try {
// 获取图片流
System.out.println("url = " + url);
InputStream inputStream = new URL(url).openStream();
// 将输入流转换为字节数组