尝试将后台任务与音频和设备使用触发器一起使用时,Windows Phone 8.1部署错误 [英] Windows phone 8.1 deployment error when trying to use background task with audio and device use trigger

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

问题描述

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

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天全站免登陆