remoteyourcam-usb icon indicating copy to clipboard operation
remoteyourcam-usb copied to clipboard

关于Android连接单反相机

Open ongnen opened this issue 7 years ago • 22 comments

你好,我最近正在研究remoteyourcam-usb。发现有个问题,若您了解,忘不吝啬解答。 我的单反相机nikonD610在连接手机后,发现无法再相机上调出相册,按拍门拍摄后,相机也是黑屏,不显示刚拍的照片。

ongnen avatar Dec 29 '17 07:12 ongnen

这个情况我测试没遇到过,这种情况按照我的理解是,当相机连接上手机之后,相机的相册管理权限手机拥有,所以导致相机无法查看图片,拍照权限有时候也会被剥夺。遇到拍照权限被剥夺时重启下相机可以解决。希望对你有所帮助。

duwurensheng010 avatar Dec 29 '17 08:12 duwurensheng010

你好,我最近也在看remoteyourcam-usb.有一个问题比较困扰,不知道该怎么解决,希望你能赐教。 相机连接单反问题不大,但是所有的nikon系列,连接上相机之后相机就无法预览照片,而canon的相机连接之后就没有这个问题,希望你能不吝赐教,方便的话给个联系方式详聊,谢谢

ddph avatar Jun 09 '18 04:06 ddph

你好,我最近也在看remoteyourcam-usb这个库.遇到一个问题比较困扰,不知道该怎么解决,看到您在这里回答特此过来请教一下。现在连接单反已经成功,但是遇到的nikonD5、D4s、D850系列,连接上相机之后相机就无法预览照片、无法回放,别的型号的尼康相机是没问题的,希望你能不吝赐教,方便的话加个联系方式,谢谢!

z-jc avatar Sep 18 '18 03:09 z-jc

你好,我最近也在看remoteyourcam-usb这个库.遇到一个问题比较困扰,不知道该怎么解决,看到您在这里回答特此过来请教一下。现在连接单反已经成功,但是遇到的nikon系列,连接上相机之后相机就无法预览照片、无法回放,希望你能不吝赐教,方便的话加个联系方式,谢谢!

chenjianjun571 avatar Oct 12 '18 09:10 chenjianjun571

你好,可以加个联系方式,可以交流一下吗?

------------------ 原始邮件 ------------------ 发件人: "chenjianjun571"[email protected]; 发送时间: 2018年10月12日(星期五) 下午5:01 收件人: "duwurensheng010/remoteyourcam-usb"[email protected]; 抄送: "Sunny"[email protected]; "Comment"[email protected]; 主题: Re: [duwurensheng010/remoteyourcam-usb] 关于Android连接单反相机 (#1)

你好,我最近也在看remoteyourcam-usb这个库.遇到一个问题比较困扰,不知道该怎么解决,看到您在这里回答特此过来请教一下。现在连接单反已经成功,但是遇到的nikon系列,连接上相机之后相机就无法预览照片、无法回放,希望你能不吝赐教,方便的话加个联系方式,谢谢!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

z-jc avatar Oct 12 '18 09:10 z-jc

你好,可以加个联系方式,可以交流一下吗? ------------------ 原始邮件 ------------------ 发件人: "chenjianjun571"[email protected]; 发送时间: 2018年10月12日(星期五) 下午5:01 收件人: "duwurensheng010/remoteyourcam-usb"[email protected]; 抄送: "Sunny"[email protected]; "Comment"[email protected]; 主题: Re: [duwurensheng010/remoteyourcam-usb] 关于Android连接单反相机 (#1) 你好,我最近也在看remoteyourcam-usb这个库.遇到一个问题比较困扰,不知道该怎么解决,看到您在这里回答特此过来请教一下。现在连接单反已经成功,但是遇到的nikon系列,连接上相机之后相机就无法预览照片、无法回放,希望你能不吝赐教,方便的话加个联系方式,谢谢! — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

276775937 我的qq

chenjianjun571 avatar Oct 12 '18 09:10 chenjianjun571

尼康的我这边还没试过,测试一直用的是佳能的,佳能碰到那种无法拍照的问题有可能是因为开启了自动对焦。

duwurensheng010 avatar Oct 24 '18 07:10 duwurensheng010

您好,我也遇到尼康连接后无法预览,无法打开回放。请问个问题有解决方法了吗

Whatder avatar Sep 27 '20 07:09 Whatder

解决了,请移步https://blog.csdn.net/qq_32136827/article/details/100552216 ------------------ 原始邮件 ------------------ 发件人: "duwurensheng010/remoteyourcam-usb" <[email protected]>; 发送时间: 2020年9月27日(星期天) 下午3:38 收件人: "duwurensheng010/remoteyourcam-usb"<[email protected]>; 抄送: "Sunny"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [duwurensheng010/remoteyourcam-usb] 关于Android连接单反相机 (#1)

您好,我也遇到尼康连接后无法预览,无法打开回放。请问个问题有解决方法了吗

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

z-jc avatar Sep 27 '20 07:09 z-jc

解决了,请移步https://blog.csdn.net/qq_32136827/article/details/100552216 ------------------ 原始邮件 ------------------ 发件人: "duwurensheng010/remoteyourcam-usb" <[email protected]>; 发送时间: 2020年9月27日(星期天) 下午3:38 收件人: "duwurensheng010/remoteyourcam-usb"<[email protected]>; 抄送: "Sunny"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [duwurensheng010/remoteyourcam-usb] 关于Android连接单反相机 (#1) 您好,我也遇到尼康连接后无法预览,无法打开回放。请问个问题有解决方法了吗 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

文章内的apk我测试闪退了

Whatder avatar Sep 27 '20 10:09 Whatder

找了一个解决办法,在PtpCamera#onSessionOpened 中: 加上queue.add(new SetDevicePropValueCommand(this, 0xD1F0, 1, uint8)); 这样可以在连接的同时打开预览和回放,但无法主动获取相片; 目前的解决方法是在获取相片处(即PtpCamera#retrieveStorages() 和 retrieveImageHandles()),调用queue.add(new SetDevicePropValueCommand(this, 0xD1F0, 0 uint8),获取完成后再调用queue.add(new SetDevicePropValueCommand(this, 0xD1F0, 1, uint8);

以上仅在三星s9+ Android 10,Nikon D7000上测试通过

Whatder avatar Sep 27 '20 11:09 Whatder

两年多过过去了没想到这个问题还在。

ongnen avatar Sep 30 '20 03:09 ongnen

其实这个问题当时已经解决了。当时是通过反编译市场上的竞品app之后,发现在连接特定相机所提前设定的16进制位参数不同,导致了某些相机无法预览。解决方法就是拿到相机的正确配置参数,在代码中配置上就行。而关于相机开发的相关参数,最好找厂家要,看看官方网网站有没有。

ongnen avatar Sep 30 '20 05:09 ongnen

解决了呀,看一下  https://blog.csdn.net/qq_32136827/article/details/100552216

------------------ 原始邮件 ------------------ 发件人: "duwurensheng010/remoteyourcam-usb" <[email protected]>; 发送时间: 2020年9月27日(星期天) 下午3:38 收件人: "duwurensheng010/remoteyourcam-usb"<[email protected]>; 抄送: "Sunny"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [duwurensheng010/remoteyourcam-usb] 关于Android连接单反相机 (#1)

您好,我也遇到尼康连接后无法预览,无法打开回放。请问个问题有解决方法了吗

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

z-jc avatar Sep 30 '20 05:09 z-jc

Android7.0测试机版本,请勿使用别的Android版本

------------------ 原始邮件 ------------------ 发件人: "Whatder"<[email protected]>; 发送时间: 2020年9月27日(星期天) 晚上6:59 收件人: "duwurensheng010/remoteyourcam-usb"<[email protected]>; 抄送: "Sunny"<[email protected]>; "Comment"<[email protected]>; 主题: Re: [duwurensheng010/remoteyourcam-usb] 关于Android连接单反相机 (#1)

解决了,请移步https://blog.csdn.net/qq_32136827/article/details/100552216 ------------------ 原始邮件 ------------------ 发件人: "duwurensheng010/remoteyourcam-usb" <[email protected]>; 发送时间: 2020年9月27日(星期天) 下午3:38 收件人: "duwurensheng010/remoteyourcam-usb"<[email protected]>; 抄送: "Sunny"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [duwurensheng010/remoteyourcam-usb] 关于Android连接单反相机 (#1) 您好,我也遇到尼康连接后无法预览,无法打开回放。请问个问题有解决方法了吗 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

文章内的apk我测试闪退了

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

z-jc avatar Sep 30 '20 05:09 z-jc

厉害

------------------ 原始邮件 ------------------ 发件人: "ongnen"<[email protected]>; 发送时间: 2020年9月30日(星期三) 中午1:49 收件人: "duwurensheng010/remoteyourcam-usb"<[email protected]>; 抄送: "Sunny"<[email protected]>; "Comment"<[email protected]>; 主题: Re: [duwurensheng010/remoteyourcam-usb] 关于Android连接单反相机 (#1)

其实这个问题当时已经解决了。当时是通过反编译市场上的竞品app之后,发现在连接特定相机所提前设定的16进制位参数不同,导致了某些相机无法预览。解决方法就是拿到相机的正确配置参数,在代码中配置上就行。而关于相机开发的相关参数,最好找厂家要,看看官方网网站有没有。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

z-jc avatar Sep 30 '20 05:09 z-jc

目前用佳能,尼康测试导入图片到手机,按下快门自动获取刚拍好的图片到手机效果如下! https://blog.csdn.net/weixin_54133377/article/details/117650564?spm=1001.2014.3001.5501

githubzoujiayun avatar Jun 10 '21 02:06 githubzoujiayun

找了一个解决办法,在PtpCamera#onSessionOpened 中: 加上queue.add(new SetDevicePropValueCommand(this, 0xD1F0, 1, uint8)); 这样可以在连接的同时打开预览和回放,但无法主动获取相片; 目前的解决方法是在获取相片处(即PtpCamera#retrieveStorages() 和 retrieveImageHandles()),调用queue.add(new SetDevicePropValueCommand(this, 0xD1F0, 0 uint8),获取完成后再调用queue.add(new SetDevicePropValueCommand(this, 0xD1F0, 1, uint8);

以上仅在三星s9+ Android 10,Nikon D7000上测试通过

我试过了尼康Z6不行

Kotlin2022 avatar Oct 28 '21 10:10 Kotlin2022

其实这个问题当时已经解决了。当时是通过反编译市场上的竞品app之后,发现在连接特定相机所提前设定的16进制位参数不同,导致了某些相机无法预览。解决方法就是拿到相机的正确配置参数,在代码中配置上就行。而关于相机开发的相关参数,最好找厂家要,看看官方网网站有没有。

你好这个应该怎么设置参数?

Kotlin2022 avatar Oct 28 '21 10:10 Kotlin2022

您好,我也遇到尼康连接后无法预览,无法打开回放。请问个问题有解决方法了吗

我解决了,一行代码的问题

15665822135 avatar Oct 29 '21 03:10 15665822135

可以加Q772875381讨论

15665822135 avatar Oct 29 '21 04:10 15665822135

已实现索尼、佳能、尼康的手动点传、即拍即传,可以加QQ2676014118讨论

Kotlin2022 avatar Jul 19 '22 09:07 Kotlin2022