尝试使用带有音频和设备使用触发器的后台任务时出现 Windows phone 8.1 部署错误 [英] Windows phone 8.1 deployment error when trying to use background task with audio and device use trigger

查看:20
本文介绍了尝试使用带有音频和设备使用触发器的后台任务时出现 Windows phone 8.1 部署错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个后台任务,该任务使用加速度计在后台播放音乐(暂停、播放等).在 Package.appxmanifest 中,我有一个后台任务,它读取加速度计,在 Package.appxmanifest 中,它有 Device use trigger 作为支持的任务类型.当我尝试将音频添加为受支持的任务类型时,在部署过程中出现以下错误:

I'm trying to create a background task that uses the accelerometer to play with the music in the background (pause, play, etc). In the Package.appxmanifest I have a backgroundtask, that reads the accelerometer and in the Package.appxmanifest it has Device use trigger as supported task type. When I try to add Audio as supported task type I get the following error during deployment:

DEP0001:意外错误:无法注册包.(来自 HRESULT 的异常:0x80073CF6)

DEP0001 : Unexpected Error: Package could not be registered. (Exception from HRESULT: 0x80073CF6)

我玩了一会儿,似乎我不能使用任何其他带有音频的任务类型,但没有音频我可以使用任何东西.你有什么建议吗?

I played with it a little bit and it seems I cannot use any other task type with audio, but without audio I could use anything. Do you have any suggestions?

推荐答案

您似乎不能在同一个后台任务中使用音频和设备.您必须创建 2 个后台任务.

It appears that you can't have Audio and Device Use in the same background task. You will have to create 2 background tasks.

这篇关于尝试使用带有音频和设备使用触发器的后台任务时出现 Windows phone 8.1 部署错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆