I have a web page which contains a silverlight control that hosts a RadMediaPlayer.
This is almost working, except it won't start playing automatically. The user still has to press the start button.
Why doesn't RadMediaPlayer.Play() start it?
The first time my function PlayMediaFile
is called, it does not start by itself. The second time my function is called, it DOES start (even if the user had not pressed the start button the first time, and even if it's a different media file then the first time).
Here is the code:
, entityId, fileName);
// This should start it playing! But it doesn't.
._tbDebugOutput.Text = ex.ToString();
var path = GenerateMediaFilePath(entityId, fileName);
RadMediaItem mediaItem =