.Net MTP / PTP Wrapper?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 19:26:02

问题


I'm writting a hobby project to deal with files on cameras. Previously I found issues with the camera and the FolderBrowserDialog.

What I believe is happing is that the camera is using MTP or PTP (Picture Transfer Protocol not peer-to-peer).

In order to make interfacing with the camera more seamless I'd like to use PTP or MTP to access the camera. Are there any MTP / PTP Wrappers for .Net people can recommend? I'm keen to avoid writing my own or dabbling in unmanaged code if possible.


回答1:


I have found this blog post by dimeby8 which has been a great starting point with a lot of useful information about how the protocol works, however it leaves a lot to be desired in the way of managed implementations

http://blogs.msdn.com/dimeby8/archive/tags/C_2300_/default.aspx

I have also found a crude C++/CLI MTP wrapper- it has next to no functionality but is a good demonstration of mixed managed/unmanged code:

http://ko.sourceforge.jp/projects/sfnet_mtpsharp/

And there's a CodePlex project but it doesn't demonstrate transfers or - what I'm interested in- editing camera metadata (specifically the camera date)

http://www.codeplex.com/portabledevicelib/

Have you had any success with this project?



来源:https://stackoverflow.com/questions/867871/net-mtp-ptp-wrapper

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!