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

时间:2013-03-20 12:49:26

标签: c# windows-phone-7

我使用下面指定的代码在我的Windows Phone7应用程序中实现了Radio,现在我想通过扬声器提供额外的选项,

我怎样才能完全填写此选项任何想法?有可能吗?

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");
}

1 个答案:

答案 0 :(得分:1)

这是不可能的,因为FMRadio API中没有任何内容可以让你这样做。

内置收音机(可在音乐+视频中心访问)确实具有此功能if you tap+hold the station number,但开发人员根本无法使用。

值得注意的是WP8设备没有启用无线电,but that may change in the future