Render camera preview in Chrome using Native Client SDK - camera

I'm trying to write ppapi plugin for Chrome which will use webcam (show preview and write file). I have installed NaCl sdk with pepper_35.
There available examples in /examples/api/ folder: media_stream_audio and media_stream_video.
The audio example works fine - requests access to microphone and shows some kind of preview.
The "media_stream_video" example must show web-camera video preview, but when I load example on the local web server (with make serve command), there appears red rect, and Chrome asks for the web camera access. When I click “allow” - webcam indicator lights-up, chrome show that web page uses the web camera, and I see the camera settings icon. But the preview doesn't work, there still red rectangle instead.
I checked this on Windows 8.1, Windows 7 and Mac OS X, with five different webcams, and have no idea what can be wrong.
Maybe someone already encountered with the same problem?

Installing the pepper_37(dev) version of NaCl SDK solved the problem. Looks like it is unstable version currently, but it works.

Related

Safari 12 Extensions and NativeMessaging

With the release of Safari 12, Safari will no longer support NPAPI plugins. My use case is to be able to launch a java application located on a client from a browser extension which I can currently do in Chrome and Firefox with NativeMessaging. From my reasearch, I do not see a way to do this in Safari 12. The closest I can see is their "Safari App Extension" project but this looks like it requires that you package up your native app with the extension and distribute it through the App Store. I am not at all a Mac developer so I am looking for some advice. Does anyone know if Safari supports my use case?
We can create a extension that will download our dmg app with the native code.And run the dmg app after it is getting downloaded.
Then we can place our extension in the safari extension gallery.
We have implemented it in the similar way where our extension look for the json file which in turns download the DMG app that we have kept in the server.

How to get the current running camera instance and give a particular file as input in IOS Real Device?

The problem
Can I get the current running camera instance and and give a particular file as input in IOS Real Device
Is this possible with appium ?
Please Advise
More Details:
I am trying to feed my camera an image during runtime. So basically my application has a feature: search a product by scanning a barcode, Since I am trying to automate this, I want to provide an image with barcode and have camera take that image while scanning.
Environment
Appium version: 1.3.2
Desktop OS/version used to run Appium: MAC OS High Sierra (10.13.4)
Mobile platform/version under test: iPhone 8 Plus, OS 11.3
Real device or emulator/simulator: REAL DEVICE
Please Advise
Appium is a black-box testing framework, so it cannot set image for your app directly in the runtime.
However, Appium exposes push_file functionality that places a file onto the device in a particular place.
For iOS it works only on Simulators (running Xcode SDK 8.1+)
driver.pushFile(
"/path/to/device/image.jpg",
new File("/Users/dev/files/image.jpg")
);
If your app supports image selection from gallery, you can push file and then select it in the gallery.
In case it doesn't work, you may look into writing tests directly using XCTest/XCUITest framework

Kinect microphone not working

I have been working on kinect for like 2 moths.I just upgraded from sdk 1.5 to sdk 1.6. Everything is working fine except for the microphone.When ever I launch an audio application from tool-kit it says my kinect audio not found.I Have installed the same SDK on another pc and everything is working fine on it.I have kinect for xbox. The audio drivers are installed correctly because its showing "Kinect for windows audio array control" in device manager under Microsoft kinect and also "Kinect USB Audio" under sound,video and game controllers. I had removed all previous versions of sdk and drivers before installing the new one.Please help me figure this out
edit:I even installed the previous 1.5 version but still the microphone is not working.Is there any software that is blocking it or any settings I have to check?
Very strange behaviour, the only problem i know with the Audio of Kinect is that the audio stream is stopped after the skeleton stream is enabled.
The problem is not with your sensor, since you instaled it in another computer and it worked.
Try to uninstall everything again, even the speech recognition SDK (if instaled). Delete the related folders from ProgramFiles, reboot and try to install it again.
you could also check the following:
Check if is possible to use another microphone.
Check the messages in the Windows Events of your control panel.

Launch Webkit Nightly in fullscreen mode

I am using Webkit Nightly because i'm working on some new HTML5 features. I would like to look at the application full screen, without the window chrome.
Other browsers have F11 and other buttons to go fullscreen, but webkit doesn't. Is there a way I can launch it in fullscreen mode?
Dennis
Webkit is a web content engine and its not a browser on its own. Anyway, which port of webkit are you referring to? GTK+? QT? EFL?
I just downloaded and compiled WebKit-r70098 (for GTK+) on my Ubuntu box following this instructions. The demo browser (GtkLauncher) that comes with it creates a window of 800x600 (hardcoded in the code) and doesn't have a fullscreen feature.
Also, the pre-compiled binaries for Mac OS X that allows Safari to run on top of Webkit, don't offer native fullscreen capabilities. Currently there's no fullscreen without tweaking Safari configuration files or using 3rd party plugins (there are lots of them).
EDIT:
On Windows, webkit.exe also doesn't have fullscreen capabilities.

Safari browser - Mac vs Windows vs iOS

Can anyone let me know what is the difference between testing a Safari 5 in Windows vs Mac? Are there significant changes in how the page is rendered between windows vs Mac for the same version of Safari? If I test a page in Windows Safari, can I expect the page works exactly same in Mac Safari as long as Safari version matches?
Thanks
Not significant but there are subtle differences, it's difficult to list them as I think it will depend on the html/css and version.
I have noticed small differences on one of my sites in the past, but as I can't remember the details I've found another example that someone has documented.
Anyway, I've satisfied myself that the differences I've seen are too subtle to fully test every release on each machine (the budget is small!), only on major changes.
One small difference for instance is that the iOS version won't allow you autoplay of any media (audio or video) in its html5 player whilst the Windows and Mac versions do.
i notice few thing in windows safari and mac safari,when we choose an image in windows safari then its not display as preview but in mac safari its display as preview before upload.so File reader api is not supporting blog type.