hope everything is fine with you!
I got stuck trying to route my voip calls through earpiece on my windows phone 8.1 application. Before asking here, I did some google research and I found another thread called "how to play audio through earpiece only in windows phone 8 application".
There they suggest to use the AudioRoutingManager interface and it is available inside windows phone 8.1 SDK but whenever I call any method, the UnauthorizedAccessException is thrown. I can't add the ID_CAP_AUDIOROUTING and the ID_CAP_VOIP capabilities because they don't exist on windows phone 8.1 projects (I am using visual studio 2013).
Now one very important information: I am not using microsoft.phone.networking.voip classes. I have my own SIP stack implemented in cpp which I have already ported for many platforms, like Android, IOS, MAC, Symbian, Linux and now windows phone. This sip stack is working very well on windows phone, I can make calls for PSTN numbers and the audio is connected on both parts but I can't route the audio through earpiece, it is only played through speakers and I always get this UnauthorizedAccessException exception when I try to change the audio routing mode.
I have run out of ideas here and I am really considering to drop the window phone project if I can't overcome this limitation. Any help wiil be appreciated.
Thanks
Related
I modified my Windows Phone 8.1 application (universal app with just the Windows Phone project live yet) to have a VoiceCommandDefinition (VCD) file in place and this works fine to start my app in foreground mode and handle parameters.
But I want to let my app quickly answer some app specific questions like it is described in this blog for Windows 10. I have tried to apply this blog but the app manifest modification fails. It does not know the:
uap:AppService
When I looked it up, it seems to be available for Windows 10 only. So I searched up the internet mainly MSDN and stack overflow, but I could only find examples that run the app in foreground.
Does anyone know an example how to provide answers to the Cortana content page with a background service?
Only App service can meet your requirements.
But App service is new in Windows 10, so you cannot use uap:appservice in Windows Phone 8.1 application. You can see App to app communication video from 26th minutes which introduce the app service.
So you can use universe windows app to develop. Sample is Cortana voice command sample as you see in that blog.
I'm fairly new to C#, and I'm currently working on integrating an Arduino Uno with a Kinect for Windows sensor. I'm building on someone else's work migrating the environment to a Windows 8.1 App, and to the new Kinect sensors released in 2014. I've looked everywhere else on how to integrate serial communication into Windows 8.1 apps, but it appears that it hasn't been done before, or the functionality has not been added to Windows 8.1, evidenced by the error I get when I attempt to add the System.IO.Ports library. So my question is whether this can be worked around or not. I'm using Visual Studio 2013, .NET v4.6, and the target platform is x86. Any more information can be provided on request. Thank you so much!
EDIT on 10/08/15 at 14:03: I've figured out that if I can write a Windows Forms Arduino COM interface and call that from within the 8.1 App when the serial ports need to be initialized or written to, it might work. Am I addressing this correctly? It would be great to know if this was the right way to approach it. Thanks again!
You are basically right, you have to create three apps, win8.1, proxy and serial handler. The resulting app won't be allowed in the windows store.
Here is an example app
Excellent How To here
In one of our projects on Win-RT targeting Windows 8.1 , we had used EasClientDeviceInformation() to get the client device information. But, now we want our app to be working on windows 10. So is there anything else that we could be using?
You need not change your code at all. EasClientDeviceInformation API is available on Windows 10 and you can use it in universal windows app and it would work on both Desktop and Phone. MSDN Page for this API lists the detail.
I want to record loopback sound in a Windows 8.1 Store App.
Currently I have investigated the following options, but I think they don't work for the given reasons:
nAudio & CSCore: Cannot resolve Assembly or Windows Metadata file 'System.Windows.Forms.dll'
nAudio.Win8:WaveFileWriter and WasapiLoopbackCapture are not available.
ScreenCapture with only Audio:Windows.Media.Capture.ScreenCapture.GetForCurrentView() is available only Windows Phone 8.1 but does not work on Windows 8.1
Does anyone have other suggestions to record loopback sound, or is it impossible to do that?
I would like to hear about possible approaches that could work or any examples.
I am developing an Universal app capable of running on both Windows Phone and Windows. But initially I want it to be available to phones only because I have not made the Windows part of it. So how can I limit the target devices of this Universal app without creating a new app and without removing the Windows Code from it. I want it to be available to phones only for deployment. Can anybody give a solution?
Windows and Windows Phone apps are submitted separately to the Store. The process for submitting Windows apps is outlined here and for Phone here. So you can simply submit one without the other.
You can also stop building the Windows portion of the app using the Configuration Manager if you want to (to save time or avoid compilation errors you don't want to fix yet).