볼륨을 제어하는 다른 방법을 조사 중이며 Windows Phone 7.1 응용 프로그램에서 MediaPlayer.Volume을 설정할 수 없습니다. 기본적으로,MediaPlayer.Volume을 설정할 수 없습니다.
MediaPlayer.Volume = value;
은 아무런 영향을 미치지 않으며 MediaPlayer.IsMuted = TRUE를 호출해도 아무런 효과가 없습니다.
예 :
public MainPage()
{
InitializeComponent();
//Play a song from the collection
FrameworkDispatcher.Update();
MediaPlayer.Play(ml.Artists[0].Songs[0]);
}
private void Button_Click(object sender, RoutedEventArgs e)
{
//Reduce volume to 0
FrameworkDispatcher.Update();
MediaPlayer.Volume = 0.0f;
//If I set a breakpoint here, MediaPlayer.Volume is 1.0
}
private void Button_Click_1(object sender, RoutedEventArgs e)
{
//This also has no effect...
FrameworkDispatcher.Update();
MediaPlayer.IsMuted = !MediaPlayer.IsMuted;
}
사람이 내가 오해하고 있다는 것을 단순 명백한 사실을 알고 있나요?