[GraphicBufferSource](id:5cd400000003,api:1,p:1674,c:23764) cancelBuffer: BufferQueue has been aband

遇到的问题就是,我们项目当中使用到了RSR这个东西我们自己开发的小程序进行一个录屏将这个视频的数据流推到RSR服务器当中,然后我们从服务器中获取到视频信息,现在出现的问题就是[GraphicBufferSource](id:5cd400000003,api:1,p:1674,c:23764) cancelBuffer: BufferQueue has been abandoned这个东西,我点击开始录像的话他他总是将视频的信息发送到RSR当中,我也很迷惑看logcat 中的提示就是这个爆红的信息我也不懂,我是一个java开发刚进北京的公司让我弄这个东西求一个大神给我讲解一下是什么问题!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是使用变量替换的代码示例: ```java import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; public class HttpRequestUtil { public static String sendPostRequest(String url, String appKey, String sign, long timestamp, String targetNodeId, String targetDatabaseId, int queryId, String sqlCommand) throws IOException { URL requestUrl = new URL(url); HttpURLConnection connection = (HttpURLConnection) requestUrl.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/json"); connection.setRequestProperty("cache-control", "no-cache"); connection.setRequestProperty("Postman-Token", "286f9b9a-e6ee-4e83-b37b-aae5d6ea7a5e"); connection.setDoOutput(true); String jsonInput = String.format("{\"Appkey\":\"%s\",\"Sign\":\"%s\",\"Timestamp\":%d,\"TargetNodeId\":\"%s\",\"TargetDatabaseId\":\"%s\",\"QueryID\":%d,\"SQLCommand\":\"%s\"}", appKey, sign, timestamp, targetNodeId, targetDatabaseId, queryId, sqlCommand); try (OutputStream outputStream = connection.getOutputStream()) { byte[] input = jsonInput.getBytes("utf-8"); outputStream.write(input, 0, input.length); } int responseCode = connection.getResponseCode(); if (responseCode == HttpURLConnection.HTTP_OK) { BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream())); StringBuilder response = new StringBuilder(); String line; while ((line = reader.readLine()) != null) { response.append(line); } reader.close(); return response.toString(); } else { throw new IOException("HTTP request failed with code: " + responseCode); } } public static void main(String[] args) { try { String url = "http://www.walzz.com/api/walzzerpapi.asq"; String appKey = "mEwead5ZQx0psM6b"; String sign = "9d5cd39aab1adb6837e044e2eed0dd82"; long timestamp = 1690161912433L; String targetNodeId = "gdwalzz"; String targetDatabaseId = "WalzzPaperERP"; int queryId = 0; String sqlCommand = "select * from Users"; String response = sendPostRequest(url, appKey, sign, timestamp, targetNodeId, targetDatabaseId, queryId, sqlCommand); System.out.println(response); } catch (IOException e) { e.printStackTrace(); } } } ``` 在这个示例中,我添加了新的参数并将它们传递给 `sendPostRequest` 方法。你可以使用这些参数来动态构建 JSON 输入字符串。确保将这些变量替换为你实际的值。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值