是否可以在更新 3 之前在 Windows Phone 8 上指定 Toast 通知声音

编程入门 行业动态 更新时间:2024-10-24 17:24:38
本文介绍了是否可以在更新 3 之前在 Windows Phone 8 上指定 Toast 通知声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我知道在更新 3 中我们可以指定自定义声音.但是是否可以在更新 3 之前指定任何不同的声音,而不是默认的铃声?如果是这样,如何?

I understand that in Update 3 we can specify custom sounds. But is it possible to specify any different sounds before Update 3, other than the default chime? If so, how?

以下是我发送到手机的xml负载

The following is the xml payload I'm sending to the phone

<?xml version="1.0" encoding="Windows-1252"?>
<wp:Notification xmlns:wp="WPNotification">
  <wp:Toast>
    <wp:Text1>WEATHER ALERT</wp:Text1>
    <wp:Text2>asdfasdf</wp:Text2>
    <wp:Param>/Page2.xaml?NavigatedFrom=Toast Notification</wp:Param>
  </wp:Toast>
  <wp:audio src="ms-winsoundevent:Notification.IM" loop="true" />
</wp:Notification>

但不管我在行中指定什么声音

but regardless of what sound I specify in the line

<wp:audio src="ms-winsoundevent:Notification.IM" loop="true" />

<wp:audio src="ms-winsoundevent:Notification.Looping.Alarm7" loop="true" />

它总是播放相同的声音.

it always plays the same sound.

我做错了什么还是根本不可能?

Am I doing something wrong or is it just not possible?

推荐答案

不可能.此功能是随 GDR 3 引入的.参考:

Not possible. This feature was introduced with GDR 3. Reference:

Windows Phone 8 Update 3(操作系统版本号 8.0.10492)引入了为 Toast 通知提供自定义声音的功能.http://msdn.microsoft/en-us/library/windowsphone/develop/jj662938%28v=vs.105%29.aspx#BKMK_gdr3

Windows Phone 8 Update 3 (OS version number 8.0.10492) introduces the ability to provide a custom sound for toast notifications. http://msdn.microsoft/en-us/library/windowsphone/develop/jj662938%28v=vs.105%29.aspx#BKMK_gdr3

这篇关于是否可以在更新 3 之前在 Windows Phone 8 上指定 Toast 通知声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 13:47:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1117512.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:声音   通知   Windows   Phone   Toast

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!