Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a good way to design a media player on Windows phone? [closed]

Some friends and I are creating a Google music type of project in order to learn a few Microsoft technologies.

I am responsible for the Windows phone app and having it interact with WCF to get a music stream and play it. After reading, I have found many ways to play music including XNA, SoundEffect, MediaElement, and MediaPlayerLauncher.

Having such a variety to choose from, I am stuck on what would be best for the job.

  1. The XNA player seems fully featured but requires me to initialize the gaming-like update loop for it to work. This seems like a waste of resources.
  2. SoundEffect seems geared towards sound effect.
  3. Media Element seems okay, and Launcher even has a ui!

I am trying to stay away from writing my own player so which one should I choose? I am okay with writing some functionality, but it would be nice to have queuing, scrubbing, etc built in. Any of you have success with something similar to this?

like image 661
tylerjgarland Avatar asked May 20 '11 03:05

tylerjgarland


People also ask

What replaced Microsoft media player?

Windows 11's New Media Player Brings Big Improvements to Audio and Video. Microsoft's new audio and video app replaces both Groove and the ancient Windows Media Player.

Does Windows Media Player still exist?

On November 16, 2021, Microsoft announced that it would replace Groove Music with the new Media Player application, though the legacy Windows Media Player will continue to be optionally available with Windows 11.


2 Answers

Don't use SoundEffect for playing streams. It is for playing short WAV files as sound effects or other incidental noises in an application.

If you want to create your own UI or encapsulate the player inside your own application then the MediaElement is the way to go.

If you want the simplest option possible then go with the MediaPlayerLauncher. This will also give you the standard look and feel and UX that your users will be familiar with.

like image 67
Matt Lacey Avatar answered Nov 09 '22 23:11

Matt Lacey


If you don't want create your own player take a look at Microsoft Media Platform: Player Framework. This project has built-in player with UI controls. However this project is designed to play streams from IIS Smooth Streaming, but you cant try to play your streams. If this approach fail, then using MediaElement is good option as Matt Lacey noted.

like image 23
Damian Antonowicz Avatar answered Nov 10 '22 00:11

Damian Antonowicz