Forums

ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

Last post 7/28/2008 2:11 PM by Thomas Clay. 4 replies.
Sort Posts: Previous Next
  • Thomas Clay

    ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

    7/24/2008 4:24 PM
    • Not Ranked
    • Joined on 5/4/2007
    • Posts 7

     Greeting and salutation.

    I am using the ASPNetFlashVideo player in my application.  Unfortunately, nothing appears (i.e. it acts like the control is not visible on the client side) when placed in an ASPxCallbackPanel AFTER a callback.

    In other words, it disappears (visually only) after a callback.

    Any ideas?

    Thanks,

    Tom

  • Anonymous

    Re: ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

    7/25/2008 8:54 AM

    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.

  • Thomas Clay

    Re: ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

    7/26/2008 1:15 PM
    • Not Ranked
    • Joined on 5/4/2007
    • Posts 7

     Unfortunately, I need to get time indexes of the video player, and I don't know of a way to do that with the ASPxObjectContainer.  During the video playback, I need time indexed triggers so I can switch graphic slides.

    Note: I am not tied to Flash video - it is just a preference for my client.

  • Anonymous

    Re: ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

    7/28/2008 9:51 AM

    Hi Tom,

    I understand your requirements. Please send us a sample project,
    so we can reproduce the problem and give you a fix or a workaround.

  • Thomas Clay

    Re: ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

    7/28/2008 2:11 PM
    • Not Ranked
    • Joined on 5/4/2007
    • Posts 7

     My current workaround is not putting it in a callback panel.  Requires some redesign on my part, but I think it is better now.

    A good video player component would be nice, though :)

     

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.