allprojects {
repositories {
maven {
url 'https://dl.bintray.com/video-onenet/maven/'
}
}
}
dependencies {
# with onvif
//implementation 'com.ont.media:odvp-onvif:1.0.0'
# without onvif
implementation 'com.ont.media:odvp:1.0.0'
}
# build.gradle
externalNativeBuild {
cmake {
arguments '-D_ONVIF=1' // 0或者不写:不编译onvif
abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
}
}
# CMakeList.txt
if(NOT ONT_SERVER_ADDRESS)
set(ONT_SERVER_ADDRESS "183.230.40.42")
endif()
if(NOT ONT_SERVER_PORT)
set(ONT_SERVER_PORT 9101)
endif()
Copyright (c) 2018 cmiot
Licensed under LGPLv2.1 or later