1
버퍼링 할 때 간단한 진행률 표시 줄을 표시하는 MediaElement가 있습니다. BufferingProgressChanged 이벤트에서 표시되거나 숨겨집니다. 코드는 아래를 참조하십시오.Silverlight MediaElement 이중 버퍼링
문제는 MediaElement가 두 번 버퍼링하여 진행률 표시 줄을 두 번 표시하는 경우가 많다는 것입니다. 왜 이것이이 문제를 해결할 수있는 방법일까요?
감사합니다.
private void MediaElement_BufferingProgressChanged(object sender, RoutedEventArgs e)
{
if (MediaElement.CurrentState == MediaElementState.Buffering)
{
BufferProgressBar.Value = MediaElement.BufferingProgress;
BufferGrid.Visibility = System.Windows.Visibility.Visible;
}
else
{
BufferGrid.Visibility = System.Windows.Visibility.Collapsed;
}
}