コード例 #1
0
ファイル: Page.xaml.cs プロジェクト: dfr0/moon
		private void cmdPlay_Click (object sender, RoutedEventArgs e)
		{
			ResourceManager rm = new ResourceManager ("MediaStreamSource.g", typeof (Page).Assembly);
			Stream stream = rm.GetStream ("miguel.mp3");

			Mp3Demuxer demuxer = new Mp3Demuxer (stream);
			mediaElement.SetSource (demuxer);
			mediaElement.Play ();
		}
コード例 #2
0
        private void cmdPlay_Click(object sender, RoutedEventArgs e)
        {
            ResourceManager rm     = new ResourceManager("MediaStreamSource.g", typeof(Page).Assembly);
            Stream          stream = rm.GetStream("miguel.mp3");

            Mp3Demuxer demuxer = new Mp3Demuxer(stream);

            mediaElement.SetSource(demuxer);
            mediaElement.Play();
        }