[TIMOB-24133] Windows phone bug - access denied to device camera
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-11-14T02:45:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Windows |
Labels | look1 |
Reporter | Jérémy Tonneau |
Assignee | Kota Iguchi |
Created | 2016-10-27T09:43:44.000+0000 |
Updated | 2017-03-30T21:07:16.000+0000 |
Description
Hello,
I am facing an issue with the windows phone camera: I am not able to open it using the Titanium.Media.showCamera method. It returns a zero error code (access denied).
I've put all the necessary permissions in the app.xml (correct me if I am wrong):
http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10">
I've been stuck on this issue for several days, any help would be greatly appreciated.
Thanks
Attachments
File | Date | Size |
---|---|---|
win10sdk.png | 2016-11-14T12:48:07.000+0000 | 93084 |
Hello, Did you define an overlay in there. Can you try the below code?
Also, Send me the code you are running. Thanks.
I don't think this issue has anything to do with overlays. Anyway, I tried your code above but I get the same error message: code : 0 failed to initialize capture device: Access is denied. Could you check if the windows manifest I use is correct? Thanks.
any news?
I exactly have the same issue, I tried the code too and still access denied... Any news ?
webcam
capability should be used withDeviceCapability
tag. Sotiapp.xml
should look like below:FYI To make things easier, as of
6.0.0
Capability
tag will be generated automatically based on API usage ( TIMOB-23156 ) .Thanks for your feedback. But, when I'm using SDK 6, I get the following error while building: ERROR] : Invalid "--device-id" value "0" However, it works fine with SDK 5.5.1 (although I have to upload the build file manually on the phone using the microsoft tool). Any idea?
[~joachim] Use of number value for
device-id
is not supported for now, useudid
value which you can get fromappc ti info -p windows -o json
. For instance:In this case specify
--device-id "00000000-00x0-0b0b-0000-000000000000"
,Thanks, but in my case the devises object is empty: "devices": [] Although the devis is connected and recognized by Windows...
Remarks; I have the same issue on different windows phones; I refreshed the devices list; Any idea?
Hmm. maybe missing tools? ( maybe related: TIMOB-23976 ) Do you have Visual Studio 2015 installed with Windows 10 SDK and Windows 10 Emulators? [^win10sdk.png]
I have just checked and I have the Windows 10 SDK and Windows 10 emulator installed. However, I don't see the windows 10 emulator in the appcelerator studio. I have joined a screenshot of the appc ti info command result, can you check it please? Thanks a lot for your help!
Microsoft (R) Visual Studio 14.0 (selected) Path = C:\Program Files (x86)\Microsoft Visual Studio 14.0\ CLR Version = v4.0.30319 MSBuild Version = v14.0.25420.1 Windows Phone SDKs = not installed Microsoft (R) Windows Phone SDK 10.0 Path = C:\Program Files (x86)\Windows Kits\10\ 8.1 (selected) Path = C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\ Windows PowerShell Enabled = yes Windows Phone Emulators 8.1 Emulator 8.1 WVGA 4 inch 512MB UDID 8-1-7 Emulator 8.1 WVGA 4 inch UDID 8-1-8 Emulator 8.1 WXGA 4.5 inch UDID 8-1-9 Emulator 8.1 720P 4.7 inch UDID 8-1-10 Emulator 8.1 1080P 5.5 inch UDID 8-1-11 Emulator 8.1 1080P 6 inch UDID 8-1-12 10.0 Windows Phone Devices
[~joachim] I'm not quite sure what's going on with Appcelerator Studio. I saw Ti SDK 6.0.0.GA and new Studio is just released, so would you check out the latest one, and create new ticket for Studio (TISTUD) if it doesn't work as expected?
Closing ticket as "Won't Fix" as a relevant Studio ticket has been opened. Anymore issues, please feel free to reopen the ticket.