The ExpressionMediaPlayer
class makes a hidden call to the ClientBin/SmoothStreaming.xap
file. If you don't have it there - you should add it.
Here is the link to the blog post where you can download the xap file and source code of the expression player. Direct link
After you download the archive above, you can find this file at this path: EE4SP1SilverlightDefaultWithAudioVolume.zip\Templates\Silverlight Default -- with Audio Volume On Start\SmoothStreaming.xap
If it still doesn't work, you should replace the MediaPlayer.dll
by projects from the archive. You need to add (Add -> Existing Project) 3 projects from the SharedV4SP1
folder: MediaPlayer
, OfflineShared
, PlugInMSSCtrl
.
I've already tested your code in my application and it started to work after I have copied the xap file and replaced the dll-reference by existing projects.