This is a migrated thread and some comments may be shown as answers.

RADAjax and MS Silverlight Media Player

1 Answer 34 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Eric Krauska
Top achievements
Rank 1
Eric Krauska asked on 07 Oct 2008, 03:40 PM
I believe there is an incompatibility here.  The below code does not work, yet if I remove the RadAjaxPanel, it works fine.  Code below.  Any suggestions would be appreciated since the entire site is RadAjax-enabled.

<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">  
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> 
    <div> 
        <asp:MediaPlayer Visible="false" ID="_mediaPlayer" runat="server" AutoUpgrade="true" Width="720" Height="400"  ></asp:MediaPlayer> 
    </div> 
    </telerik:RadAjaxPanel> 
    </form> 
</body> 
    protected void Button1_Click(object sender, EventArgs e)  
    {  
        string path = System.Configuration.ConfigurationManager.AppSettings["SilverLightMovieLocation"] + "/Doe, Oct. 5, 2008";  
        System.IO.DirectoryInfo gallery = new DirectoryInfo(Server.MapPath(path));  
        FileInfo[] movie = gallery.GetFiles("*.wmv");  
        if (movie.GetUpperBound(0) > -1)  
        {  
            _mediaPlayer.Visible = true;  
            _mediaPlayer.MediaSource = path + "/" + movie[0].Name;  
            _mediaPlayer.AutoPlay = true;  
        }  
    } 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 10 Oct 2008, 02:53 PM

Hi Eric,

Unfortunately I have to confirm that this is an issue in this particular case when using RadAjaxPanel with hidden media player inside it. I will forward your report to our developers to address the bug for the upcoming version of RadControls for ASP.NET AJAX, expected at the beginning of the next month.

In the meantime consider replacing the RadAjaxPanel instance with regular MS UpdatePanel control. I tested the case locally and the media player operated normally under IE (it was not displayed under FireFox though).

Best regards,

Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Eric Krauska
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or