Hi Tom,
I tried to use the ASPNetFlashVideo component, but I didn't see the video
playback at all, and not only after an ASPxCallbackPanel's callback.
Is it appropriate for you to use the ASPxObjectContainer that is included into
the ASPxperience package? The following code demonstrates how to implement
movie loading via a callback using the ASPxObjectContainer and the ASPxCallbackPanel:
ASPX:
<script type="text/javascript">
function OnLoadMoviewButtonClick(s, e) {
callbackPanel.PerformCallback();
}
</script>
<dxcp:ASPxCallbackPanel ID="cpnlCallbackPanel" runat="server" RenderMode="Table" ClientInstanceName="callbackPanel" OnCallback="OnCallback">
<Border BorderStyle="Solid" BorderColor="Red" />
<Paddings Padding="5px" />
<PanelCollection>
<dxp:PanelContent runat="server">
<dxe:ASPxButton ID="btnLoadMovie" runat="server" Text="Load Movie" AutoPostBack="False">
<ClientSideEvents Click="OnLoadMoviewButtonClick" />
</dxe:ASPxButton>
</dxp:PanelContent>
</PanelCollection>
</dxcp:ASPxCallbackPanel>
CS:
protected void OnCallback(object source, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) {
ASPxObjectContainer objectContainer = new ASPxObjectContainer();
objectContainer.ObjectType = ObjectType.Flash;
objectContainer.ObjectUrl = "http://devexpress.com/Products/NET/Controls/ASP/ASPxperience/i/overview.swf";
objectContainer.Width = 700;
objectContainer.Height = 200;
ASPxCallbackPanel callbackPanel = (ASPxCallbackPanel)source;
callbackPanel.Controls.Clear();
callbackPanel.Controls.Add(objectContainer);
}
In addition I'd like to mention that the ASPxObjectContainer supports
the LoadMovie(int layerNumber, string url) method on the client. So, you
can switch movies without any queries to the server.