屋联全景相机
SDK使用说明
1、在根目录的build.gradle中添加仓库
allprojects {
repositories {
google()
jcenter()
maven { url "https://dl.bintray.com/djjackylei/maven" }
}
}
2、在module的build.gradle文件中添加依赖和属性配置:
android {
defaultConfig {
ndk {
//设置支持的SO库架构
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
}
}
dependencies {
implementation 'com.wulian:SmartPanorama:1.0.4'
}
3、使用
PanoramaSDK.getInstance()
.setOutputFolder("/sdcard/SmartPanorama")//设置全景照片输出目录
.setCallback(new PanoramaCallback() {
@Override
public void onConnectSucceed() {//连接相机成功回调
System.out.println("succeed");
}
@Override
public void onConnectFailed(String msg) {//连接相机失败回调
System.out.println("failed:" + msg);
}
@Override
public void onCapture(String path) {//拍照完成回调
System.out.println(path);
}
})
.initCfg()//初始化配置
.connectCamera("720_d10b39");//连接全景相机的WIFI