Expression > Página Inicial dos Fóruns > Expression Encoder > Can't use more than one instance of ExpressionPlayer in a Silverlight app?
Fazer uma PerguntaFazer uma Pergunta
 

PerguntaCan't use more than one instance of ExpressionPlayer in a Silverlight app?

  • quarta-feira, 17 de junho de 2009 9:49ricardofiel Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Contém Código
    Hi all,

    I'm using the Silverlight Player template from the Expression Encoder to play smooth streaming movies and works without a problem, until I add another instance of the player to my application. When I do that, only one of the instances will play the movies. The other won't show anything.

    From debugging the player, I found that sometimes m_mediaElement is null in TogglePlayPause (in MediaPlayer.cs):

    protected void TogglePlayPause()
    {
    	// Change current play state depending on current state.
    	if (m_mediaElement != null)
    	{
                  .....
    

    Anyone experiencing the same problem?

    Thanks.