This is a question for Sony support, or anyone else who might know.
I'm developing an Android app using the Sony Remote Camera API. The camera is the Sony RX-10, which isn't on the official list of supported devices but does work with basic functionality (zoom, take photo) and does return a list of supported API calls. Among the supported API calls are flash mode calls like setFlashMode and getSupportedFlashMode, but when I try calling them they return 403 errors, "Forbidden". (When I make calls that aren't in the "getAvailableAPIList" list I get error 12, "No Such Method".) Why are the flash calls returning 403?
Thanks
It is known issue that getAvailableApiList gives protected APIs also. You are able to use only the APIs which are public on supported cameras.
We worked extensively on the RX10 for a photobooth app that we created, and the issue is that the RX10 only works in AUTO mode via the SDK. AUTO mode doesn't support any flash settings other than auto, so it ignores the get/setFlashMode commands.
Ultimately we switched to the A6000 which does support other exposure modes that allow the get/setFlashMode commands to work correctly.
Related
I have gotten to the point where I can launch the barcode mock mode.
I am trying to figure out how I can start scanning test codes in development.
Or would an app that I am trying to test this on, need to have camera permissions on the app?
In that case, how do you overcome the use of the Camera Hardware on the PWA?
Or is there a way that I can scan QR-Codes using a different javascript API that would work in all cases?
Also, I had to move the camera and barcode service Javascript files into my Widget folder because when I was trying to reference them as you do on the instructions, the files wouldn't load.
Yes when you are in web it will mock the functionality because you're not on a device. There are HTML5 Camera API's see (https://www.html5rocks.com/en/tutorials/getusermedia/intro/)
You can use the BuildFire Previewer App (contact customer support if you havent downloaded it yet)
While you can take a copy of the services into your plugin it is risky. If we issue any updates or bug fixes you will not receive them. Also if it breaks compatibility at any time (rare but possible) your plugin stop working
I am trying to make an online examination portal. When students start the exam, their webcam will start automatically and record the stream live and store in the server. Invigilators will either watch the students live or they can watch the saved live streams later.
I researched about this and found WebRTC as a possible solution along with a gateway server like Kurento. But later found out that WebRTC is not supported in Safari, which is a setback! My application should run successfully in web portal in any modern browsers which includes safari and also in android or iphone.
So can anyone suggest a possible solution to my problem? Which technology should I use that can support all browsers and OS?
Also, it would be helpful if you can provide links to good documentation or tutorials.
Note from the future (2020): This answer really isn't accurate anymore.
WebRTC is one problem... capture from the camera with getUserMedia is another. Safari doesn't support either.
There is no video capture API in Safari currently. The only thing you can do is make a native app for iOS.
Worse yet, because of Apple's restrictive policies, alternative browsers, such as Chrome, are crippled on iOS as they aren't allowed to use their own browser engines.
Use standards based technologies like getUserMedia and WebRTC for your primary web-based application. If you decide that the economics of your situation enable it, you can make an iOS app to work alongside until Apple decides to participate in modern browser standards like everyone else.
You can use Mediadevices.getUserMedia (https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) to capture webcam stream on browser (chrome and firefox).
To play with webcam stream on safari, you would have to use a pollyfill - https://github.com/Temasys/AdapterJS
To record the video/audio stream, you can make use of Media recorder api https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder (Note : recording stream is still a challenge in Safari as there is no support/pollyfill. However, it works perfectly on Chrome and Firefox latest versions).
Helpful demonstrations :
https://webrtc.github.io/samples/
https://mozdevs.github.io/MediaRecorder-examples/index.html
https://codepen.io/collection/XjkNbN/
https://hacks.mozilla.org/2016/04/record-almost-everything-in-the-browser-with-mediarecorder/
Looking at the supported API's for various camera both within the PDF docs and the supported cameras page (https://developer.sony.com/develop/cameras/), it looks like the A7R supports changing f stop, shutter speed, ISO, etc. However, within the iOS sample app none of those commands are provided by the camera as being available via the getAvailableApiList command. "Forcing" a setIsoSpeedRate command to the camera didn't work either and I get an error code 403: Forbidden.
So is this supported? Am I missing something? Does the camera need to be configured in a particular way? Of note, I am running firmware 1.10 on the A7R, which I believe is the latest.
Please install the latest version (ver.3.10) of “Smart Remote Control” application of PlayMemories Camera App and try it again.
I am working on a app which needs to have a custom camera capture dialog to enable zoom, flash etc. which default CameraCaptureUI does not have. My app will be deployed on tablets and I have a .NET SDK (provided by tablet vendor) which I can use to enable zoom, flash and every other thing. The SDK is not compatible with windows store app and it uses Win32 api but I can still use some of it functions.
So this SDK have a preview method which requires window handle (InPtr) to start a preview. The problem is I cant find window handle for a store app window or rather I don't know how to find it. If i can find it somehow I am sure I will be able to implement other features easily enough.
Can someone show me how to find window handle in Windows store app?
Thanks a lot for any pointers!
According to this post: http://tinyurl.com/pf5kpyv you can find the window handle of a store app using the Win32 API. But if your target is WinRT, you won't have the Win32 API available (probably you already know this). If your target is full Windows 8.1, it might be easier to just write it as a non-store app. Of course, if your client requires it to be "modern" than you're stuck :)
Since Sony XQ10's auto-focus can't be deactivated via its app-menu, is there a way to do so using the SDK?
Corresponding reference Sony Camera Remote API doesn't contain any "setFocusMode" or similar. Helper Library on GitHub has it...but for which cameras? Any experiences?
Cheers,
Lara
This is not currently supported in the Camera Remote API SDK. There is an update planned for spring which will include additional features but not sure about auto-focus control:
https://developer.sony.com/2014/02/24/new-cameras-now-support-camera-remote-api-beta-new-api-features-coming-this-spring-to-selected-cameras/
Keep checking https://developer.sony.com/ for updates on the API!
Just checked Camera Remote API Reference Febr 2017 (Beta) for a possibility to set or get the focus position through the api. Seems it's still not supported.