1
Windows phone 7.1 시뮬레이터에서 비디오를 재생하려고합니다. 누구나 Windows Phone에서 간단한 비디오 파일을 재생하는 링크 나 기사를 제안 할 수 있습니까?WIndows Phone 비디오 재생기
Windows phone 7.1 시뮬레이터에서 비디오를 재생하려고합니다. 누구나 Windows Phone에서 간단한 비디오 파일을 재생하는 링크 나 기사를 제안 할 수 있습니까?WIndows Phone 비디오 재생기
<!xaml code in Main Page>
<MediaElement Name="mediaElement"
Source="xxxxxxxxxxxxxxxxxxxxxxx"
AutoPlay="False"
MediaOpened="OnMeenter code herediaElementMediaOpened"
MediaFailed="OnMediaElementMediaFailed"
CurrentStateChanged="OnMediaElementCurrentStateChanged" />
<!to play media by on click event>
<shell:ApplicationBarIconButton
IconUri="Images/appbar.transport.play.rest.png"
Text="Play"
Click="OnAppBarPlayClick" />
<!this is based on click event>
void OnAppbarPlayClick(object sender, EventArgs args)
{
mediaElement.Play();
}
//assign this code in main page
public MainPage()
{
InitializeComponent();
// Re-assign names already in the XAML file
appbarPlayButton = this.ApplicationBar.Buttons[1] as ApplicationBarIconButton;
}