简体   繁体   English

如何在wp7中通过扬声器播放收音机

[英]how to play radio through Loud Speaker in wp7

I implemented Radio in my Windows Phone7 Application using Below specified code,Now I want to give additional option to play through Loud speaker, 我使用下面指定的代码在我的Windows Phone7应用程序中实现了Radio,现在我想提供额外的选项来通过扬声器播放,

How can I full fill this option Any idea? 我怎么能完全填写这个选项任何想法? is it possible? 可能吗?

FMRadio.Instance.CurrentRegion = RadioRegion.UnitedStates;
FMRadio.Instance.PowerMode = RadioPowerMode.On;
FMRadio.Instance.Frequency =101.5 ;

if (FMRadio.Instance.SignalStrength == 0.0)
{
   MessageBox.Show("Please connect your phone to the headset.");
}
}
catch (Exception ex)
{            
   MessageBox.Show("Error Message:-> " + ex.Message + "FM Radio is not connected");
}

It's not possible as there is nothing in FMRadio API that would allow you to do this. 这是不可能的,因为FMRadio API中没有任何内容可以让您这样做。

The built-in Radio (accessible in the Music+Videos hub) does have this ability if you tap+hold the station number , but it's simply not available to developers. 如果您点击+保持站号 ,内置无线电(可在音乐+视频中心访问)确实具有此功能,但开发人员根本无法使用。

It's also worth noting that WP8 devices don't have the radio enabled, but that may change in the future . 值得注意的是,WP8设备没有启用无线电, 但未来可能会发生变化

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM