Creating RadWindow from RadMediaPlayer causes errant behavior

6 posts, 0 answers
  1. Mark
    Mark avatar
    4 posts
    Member since:
    Nov 2011

    Posted 03 Nov 2011 Link to this post

    I have a custom RadMediaPlayer template that adds a button to the player's control bar, which creates a RadWindow when clicked.  This window will allow my users to view and edit additional information about the video that is playing.  However, when the RadWindow is created and shown, any further interactions with the player cause the entire player to be unloaded and reloaded.  Are there any easy workarounds for this issue, or do I need to use a different control for this?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 08 Nov 2011 Link to this post

    Hi Mark,

    I added a RadButton in the RadMediaPlayerWrapper default ControlTemplate and handled its Click event to open a RadWindow control. However,. I wasn't able to reproduce the issue you described. Can you please have a look at the attached sample and let me know if I'm missing something. Also, can you tell us the list of steps that lead to reproducing the issue?

    Thank you in advance for your cooperation.

    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Mark
    Mark avatar
    4 posts
    Member since:
    Nov 2011

    Posted 08 Nov 2011 Link to this post

    Hello Tina,

    Thank you for your reply.  Using your sample, I have been able to determine that this issue seems to only happen when the MediaPlayer is contained in a floating RadPane, which is necessary for our application.  I have modified the sample project you provided to demonstrate this, and since I cannot upload the project the modified XAML is below.  Leaving the window docked as it is initially, if you press play, click the button you added, and then press pause, it behaves as expected.  However, if you make the window floating and do the same thing, pressing the pause button causes the MediaPlayer to unload, reload, and begin the playback of the video at the beginning.  

    <Grid>
        <telerik:RadDocking>
            <telerik:RadDocking.DocumentHost>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="RadPaneHeader">
                        <telerik:RadPane.Content>
                            <telerik:RadMediaPlayer x:Name="player"
                                AutoPlay="False" Style="{StaticResource RadMediaPlayerStyle}">
     
                                <telerik:RadMediaItem Source="http://ecn.channel9.msdn.com/o9/pdc09/wmv/CL16.wmv" VideoStretch="None">
                                    <telerik:RadMediaItem.Header>
                                        <StackPanel Orientation="Horizontal">
                                            <StackPanel Margin="8">
                                                <TextBlock FontWeight="Normal" Text="Name: " />
                                                <TextBlock Margin="4"
                                       FontWeight="Bold"
                                       Text="Optimizing for Performance with the Windows Performance Toolkit" />
                                            </StackPanel>
                                            <StackPanel Margin="8">
                                                <TextBlock FontWeight="Normal" Text="Genre: " />
                                                <TextBlock Margin="4"
                                       FontWeight="Bold"
                                       Text="Tech Video" />
                                            </StackPanel>
                                        </StackPanel>
                                    </telerik:RadMediaItem.Header>
                                </telerik:RadMediaItem>
     
                                <telerik:RadMediaItem Source="http://ecn.channel9.msdn.com/o9/pdc09/wmv/CL06.wmv" VideoStretch="None">
                                    <telerik:RadMediaItem.Header>
                                        <StackPanel Orientation="Horizontal">
                                            <StackPanel Margin="8">
                                                <TextBlock FontWeight="Normal" Text="Name: " />
                                                <TextBlock Margin="4"
                                       FontWeight="Bold"
                                       Text="Networking and Web Services in Silverlight" />
                                            </StackPanel>
                                            <StackPanel Margin="8">
                                                <TextBlock FontWeight="Normal" Text="Genre: " />
                                                <TextBlock Grid.Column="1"
                                       Margin="4"
                                       FontWeight="Bold"
                                       Text="Tech Video" />
                                            </StackPanel>
                                        </StackPanel>
                                    </telerik:RadMediaItem.Header>
                                </telerik:RadMediaItem>
                            </telerik:RadMediaPlayer>
                        </telerik:RadPane.Content>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadDocking.DocumentHost>
        </telerik:RadDocking>
    </Grid>
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 11 Nov 2011 Link to this post

    Hi Mark,

     Thank you for your feedback. We managed to reproduce this but we'll need some more time in order to investigate it deeper and provide you with a possible solution/workaround. We'll write you back on Monday.
    Thank you for your understanding.

    Best wishes,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Mark
    Mark avatar
    4 posts
    Member since:
    Nov 2011

    Posted 08 Dec 2011 Link to this post

    I never heard back from anyone regarding this issue, so I am wondering if there are any known workarounds or plans to resolve this.  
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 Dec 2011 Link to this post

    Hello Mark,

     Please accept my apologies for not replying as I had promised before. We did not find a workaround for this issue and we logged it as a bug in our RAdMediaPlayer . We also updated your telerik account points as a thanks for your cooperation.

    All the best,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner