999999999999999

This commit is contained in:
Teng 2025-10-11 16:40:39 +08:00
parent da234c89a4
commit a4a221bfc6
11 changed files with 20 additions and 12 deletions

View File

@ -9,8 +9,8 @@ android {
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 33 //21 io.dcloud.PandoraEntry apk入口时 targetSDKVersion>=21 targetSdkVersion 33 //21 io.dcloud.PandoraEntry apk入口时 targetSDKVersion>=21
versionCode 162 versionCode 164
versionName "1.6.2" versionName "1.6.4"
multiDexEnabled true multiDexEnabled true
ndk { ndk {
ndk { ndk {

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__FB2D473","name":"护理单元","version":{"name":"1.6.2","code":162},"description":"护理单元","developer":{"name":"","email":"","url":""},"permissions":{"Share":{},"Camera":{},"VideoPlayer":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"nativePlugins":{"MonitorModule":{"__plugin_info__":{"name":"MonitorModule","description":"bugly升级","platforms":"Android","url":"","android_package_name":"","ios_bundle_id":"","isCloud":false,"bought":-1,"pid":"","parameters":{}}}},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"uni-app":{"control":"uni-v3","vueVersion":"3","compilerVersion":"4.76","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal","webView":{"minUserAgentVersion":"49.0"}}},"app-harmony":{"useragent":{"value":"uni-app","concatenate":true},"uniStatistics":{"enable":false}},"screenOrientation":["landscape-primary","landscape-secondary"],"launch_path":"__uniappview.html"} {"@platforms":["android","iPhone","iPad"],"id":"__UNI__FB2D473","name":"护理单元","version":{"name":"1.6.4","code":164},"description":"护理单元","developer":{"name":"","email":"","url":""},"permissions":{"Share":{},"Camera":{},"VideoPlayer":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"nativePlugins":{"MonitorModule":{"__plugin_info__":{"name":"MonitorModule","description":"bugly升级","platforms":"Android","url":"","android_package_name":"","ios_bundle_id":"","isCloud":false,"bought":-1,"pid":"","parameters":{}}}},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"uni-app":{"control":"uni-v3","vueVersion":"3","compilerVersion":"4.76","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal","webView":{"minUserAgentVersion":"49.0"}}},"app-harmony":{"useragent":{"value":"uni-app","concatenate":true},"uniStatistics":{"enable":false}},"screenOrientation":["landscape-primary","landscape-secondary"],"launch_path":"__uniappview.html"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

View File

@ -6,6 +6,7 @@ import android.content.Context
import android.content.Intent import android.content.Intent
import android.content.pm.PackageManager import android.content.pm.PackageManager
import android.media.MediaScannerConnection import android.media.MediaScannerConnection
import android.util.Log
import android.widget.FrameLayout import android.widget.FrameLayout
import android.widget.ImageView import android.widget.ImageView
import android.widget.Toast import android.widget.Toast
@ -67,8 +68,8 @@ class MonitorView(
@UniComponentProp(name = "init") @UniComponentProp(name = "init")
fun init(devId: String) { fun init(devId: String) {
this.devId=devId
initAutoPlay(devId) initAutoPlay(devId)
Log.e("init","")
} }
@UniJSMethod @UniJSMethod
fun test(){ fun test(){
@ -241,6 +242,7 @@ class MonitorView(
@UniJSMethod @UniJSMethod
fun initAutoPlay(devId:String) { fun initAutoPlay(devId:String) {
this.devId=devId
playerManager=VMSPlayerManager(SMBCloudSDKContext.getLifecycleScope(context as LifecycleOwner)) playerManager=VMSPlayerManager(SMBCloudSDKContext.getLifecycleScope(context as LifecycleOwner))
deviceInfoBean= SMBCloudSDKContext.devGetDeviceInfoBean(devId, true) deviceInfoBean= SMBCloudSDKContext.devGetDeviceInfoBean(devId, true)
// 开启密码校验操作,防止陌生用户预览。(可选)默认是开启。可以关闭密码校验,但需考量安全问题 // 开启密码校验操作,防止陌生用户预览。(可选)默认是开启。可以关闭密码校验,但需考量安全问题
@ -631,5 +633,10 @@ class MonitorView(
// 退出页面,要及时释放资源 // 退出页面,要及时释放资源
playerManager?.release() playerManager?.release()
} }
@UniJSMethod
fun killView() { //关闭view
playerManager?.release()
playerManager=null
}
} }

View File

@ -35,11 +35,11 @@ class PTZMotorJoyStickView(
@UniComponentProp(name = "init") @UniComponentProp(name = "init")
fun init(devId: String) { fun init(devId: String) {
this.devId=devId
initManager(devId) initManager(devId)
} }
@UniJSMethod @UniJSMethod
fun initManager(devId: String) { fun initManager(devId: String) {//这块切换的时候也要重新调这个 直接这个就可以了
this.devId=devId
val deviceInfoBean = devGetDeviceInfoBean(devId, true) val deviceInfoBean = devGetDeviceInfoBean(devId, true)
ptzMotorManager = devGetPTZMotorManager(getNewMainScope(), deviceInfoBean) ptzMotorManager = devGetPTZMotorManager(getNewMainScope(), deviceInfoBean)
@ -104,5 +104,6 @@ class PTZMotorJoyStickView(
override fun onActivityDestroy() { override fun onActivityDestroy() {
super.onActivityDestroy() super.onActivityDestroy()
} }
//这个别调用了
} }