integrate webcam on windows phone 8 emulator - windows-phone-8

Can I integrate my pc webcam on wp8emulator?
I am developing an app that use de phone camera and i don't have the real device to try on .
void cam_Initialized(object sender, Microsoft.Devices.CameraOperationCompletedEventArgs e)
{
if (e.Succeeded)
{
this.Dispatcher.BeginInvoke(delegate()
{
//Camera a fost initializata
});
I hope to can find some code .

That will not work. The emulator's camera will only ever output a black screen. You need a real device to test camera based apps correctly. Sadly, there isn't a method to work around this to my knowledge.

what about this info from MSDN?
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207050(v=vs.105).aspx
Seems like its possible and allowed. There's also some reading about capturing video.

Related

How to access the laptops camera from Google Colab for object detection in live streaming video?

I am trying to detect mask on a live video using Google Colab. ALthough i can use the camera to capture images but not to stream a live video. How can that be done?
Thanks in advance :)
Check this example. Since colab is running in a browser, you need to give proper permissions for the site to access webcam
https://colab.research.google.com/notebooks/snippets/advanced_outputs.ipynb#scrollTo=2viqYx97hPMi
Since the video is a sequence of image, you can save the images with mask detected as a video file.

Camera and video control with HTML5 form android webview

I use this guide : Camera and video control with HTML5
This example work excellent on Google Chrome but i can not make it work on Android webview. I also use permission : android.permission.CAMERA.
Did you remember to add this to your onCreate
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccessFromFileURLs(true);
webSettings.setAllowUniversalAccessFromFileURLs(true);
You are probably missing the last two lines in your code.
Here is a working example
Webview/ Android browser till recently support ways to access camera via webview. Thankfully now getUserMedia is supported
http://caniuse.com/#search=Accept
http://caniuse.com/#feat=stream

Embed YouTube Video in Windows Phone 8 App

I am new to Windows Phone app development and I would like to know what is the best way to embed YouTube videos in Windows Phone 8 App? I would like to provide a list of videos with thumbnails and user should be able to click and watch the video just like any typical app.
Thanks a lot.
I had tried some third party SDKs while I was doing this for Windows 8 but was not happy with any of the solutions.
Finally I resorted to embedding the video in a Web View control and the output was pretty desirable. I have not tried this on Windows Phone but should work as it did on Windows 8 since the underlying browser is the same. Try it out:-
string html = #"<style> body{margin:0; padding:0;} iframe{width:100%;height:480px;}#media screen and (max-width:300px) { iframe{width:100%;height:180px;}} </style><iframe style=""padding:0px;margin-bottom:-20px;"" src=""http://www.youtube.com/embed/" + videoId + #"?rel=0"" frameborder=""0"" allowfullscreen></iframe>";
videoView.NavigateToString(html);
Let me know if this worked for you
First try creating sample video application in Windows Phone App Studio which uses YouTube API services and display videos in application.
Download the source code and refer, How it uses YouTube API services and gets video. Source code will be in MVVM pattern and its the best way to implement. You may get some basic knowledge on how to develop apps that uses YouTube services.
You can refer the source code which uses YouTube API services, which I generated for more information.

Is camera application supported by blackberry 10 working with Blackberry Webworks?

I want to implement camera in my application with HTML5 for blackberry 10 and in search of that I found this page https://developer.blackberry.com/html5/apis/blackberry.media.camera.html#.takePicture .And after reading that I concluded that camera application is not supported by Blackberry 10 with HTML5.
Am I right??
Please suggest!!!
You can in fact invoke a camera card, which will slide open a native card to take a picture or video. It will return the file system path in a callback when the card is closed.
If you want to capture media directly within your app, take a look at getUserMedia and the canvas. Here's a good article on it:
http://www.html5rocks.com/en/tutorials/getusermedia/intro/
I hope this helps.
John

Is there a way to select the output device for an audio from a web page?

The web app I'm building has audio notifications and a video conference option, so the user normally is going to have speakers and a headset connected to the PC, my client wants that the audio notifications will be played in the main speakers, and the video conference can be done using the headset.
Right now I'm using all html5 for audio and webRTC for video conference, I couldn't find any info about how to do this. May be with flash but not can't find this either.
Solutions in this space are emerging via the use of WebRTC. You can see a sample of a working solution at https://webrtc.github.io/samples/src/content/devices/input-output/
Browser support for this is limited right now though.
Actually sound output is only on Oslevel ... you may have to read about the chrome.audio API which still on experimental level ...
"The chrome.audio API is provided to allow users to get information about and control the audio devices attached to the system. This API is currently only implemented for ChromeOS. "
I thnik this would help if it was availble for all OS so you could redirect sound using this API ...
As exemple of some methods from this API i can list :
getInfo − chrome.audio.getInfo(function callback)
which return all audio output and input devices
setActiveDevices − chrome.audio.setActiveDevices(array of string ids, function callback)
which sets the active devices to the devices specified by |ids|
The problem is Chrome.audio API is only for ChromeOS and sounds output is controlled by other OS... that's it two parallel lines..
Simply do this in your javascript code.
audioElement.setSinkId(deviceId);
There is now an HTML5 audio device redirector Chrome extension called AudioPick. The website is here: https://rain-fighters.github.io/AudioPick/
This is OpenSource under the GNU public license, with a Github repo.
There are some limitations (no Flash sources, and some types of HTML5 sources also will not be found), as indicated on the homepage.