From e172a0f48fdd01733e04bda2370846b9f36b840f Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 15 十月 2021 14:44:03 +0800 Subject: [PATCH] 2021-10-15 1.修改乐橙推送字段,psk参数取值不能取cname和deviceName --- HDL-ON_Android/LeChengVideoActivity.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/HDL-ON_Android/LeChengVideoActivity.cs b/HDL-ON_Android/LeChengVideoActivity.cs index 0f426d0..94cae4b 100644 --- a/HDL-ON_Android/LeChengVideoActivity.cs +++ b/HDL-ON_Android/LeChengVideoActivity.cs @@ -133,6 +133,8 @@ try { LCOpenSDK_ParamReal paramReal = new LCOpenSDK_ParamReal(AccessToken, DeviceId, 0, Psk, PlayToken, 1, false, true); + //PlayEventListener listener = new PlayEventListener();//瀹炵幇鎾斁浜嬩欢鐩戝惉鍥炶皟 2021-10-15 鐩墠涓嶈兘鐩戝惉锛岀洃鍚簡浼氱┖寮傚父 + //mPlayWindow.WindowListener = listener;//瀹炵幇鎾斁浜嬩欢鐩戝惉鍥炶皟 mPlayWindow.PlayRtspReal(paramReal); } catch (System.Exception e) @@ -147,6 +149,7 @@ public void Stop() { mPlayWindow.StopRtspReal(true);//鍏抽棴瑙嗛 + //mPlayWindow.WindowListener = null; } /// <summary> @@ -348,6 +351,7 @@ try { + System.Console.WriteLine("LC OnTalkResult error锛�" + error + " type:" + type); bool talkResult = false; if (type == 99 || error.Equals("-1000") || error.Equals("0") || error.Equals("1") || error.Equals("3")) { @@ -397,5 +401,19 @@ } } + /// <summary> + /// 鎾斁銆侀瑙堢粨鏋滃洖璋� + /// resultSource: 0--RTSP 1--HLS 5--DHHTTP 99--OPENAPI + /// </summary> + class PlayEventListener : LCOpenSDK_EventListener + { + public override void OnPlayerResult(int index, string code, int resultSource) + { + base.OnPlayerResult(index, code, resultSource); + System.Console.WriteLine("LC OnPlayerResult index锛�" + index + " code:" + code + " resultSource:"+ resultSource); + } + + + } } } -- Gitblit v1.8.0