From fa01db3fa3f9ffe40995a964b4a83881e141f414 Mon Sep 17 00:00:00 2001 From: liyi Date: Tue, 6 May 2025 11:42:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E5=85=BC=E5=AE=B9int?= =?UTF-8?q?=E5=92=8Clong=E7=B1=BB=E5=9E=8B=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/top/skychip/video_decode_plugin/VideoDecodePlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/top/skychip/video_decode_plugin/VideoDecodePlugin.kt b/android/src/main/kotlin/top/skychip/video_decode_plugin/VideoDecodePlugin.kt index 5c4f58f..bba254b 100644 --- a/android/src/main/kotlin/top/skychip/video_decode_plugin/VideoDecodePlugin.kt +++ b/android/src/main/kotlin/top/skychip/video_decode_plugin/VideoDecodePlugin.kt @@ -85,7 +85,7 @@ class VideoDecodePlugin : FlutterPlugin, MethodCallHandler { try { val frameData = call.argument("frameData") ?: return result.error("INVALID_ARGS", "无效的帧数据", null) val frameType = call.argument("frameType") ?: 0 - val timestamp = call.argument("timestamp") ?: 0L + val timestamp = (call.argument("timestamp"))?.toLong() ?: 0L val frameSeq = call.argument("frameSeq") ?: 0 val refIFrameSeq = call.argument("refIFrameSeq") val success = decoder?.decodeFrame(frameData, frameType, timestamp, frameSeq, refIFrameSeq) ?: false