in
Forums
Blogs
DevExpress.com
Client Center
Support Center
DevExpress Channel

ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

Last post 7/28/2008 2:11 PM by Thomas Clay. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 7/24/2008 4:24 PM

    ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

     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

  • 7/25/2008 8:54 AM In reply to

    Re: ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

    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.

    Victor
    R&D, ASP.NET Team, DevExpress Inc.

    P.S. If you wish to receive direct assistance from our Support Team, use Support Center.
  • 7/26/2008 1:15 PM In reply to

    Re: ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

     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.

  • 7/28/2008 9:51 AM In reply to

    Re: ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

    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.

    Victor
    R&D, ASP.NET Team, DevExpress Inc.

    P.S. If you wish to receive direct assistance from our Support Team, use Support Center.
  • 7/28/2008 2:11 PM In reply to

    Re: ASPxCallbackPanel and ASPNetMedia ASPNetFlashVideo player

     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 :)

     

Page 1 of 1 (5 items)
Copyright © 1998-2009 Developer Express Inc.
ALL RIGHTS RESERVED