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

Large Play button on video does not play the video?

4 Answers 49 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
brian
Top achievements
Rank 1
brian asked on 10 Jun 2010, 01:03 PM
Why does the large play button that is overlayed on the video when you click pause not actual clickable? Ive tried this in our own project and your examples?


Surely this is what a user would expect to happen?

4 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 15 Jun 2010, 07:15 AM
Hi brian,

This is a bug introduced with our latest builds. I've created work item for it and will be fixed for the next minor release.
Sorry for any inconvenience.

All the best,
Miro Miroslavov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jim
Top achievements
Rank 1
answered on 08 Jul 2010, 07:32 PM
Can you provide any kind of workaround?  Some snippet that will tweak the behavior to fix the problem?  I was just about to deploy a new version of my project when I came across this bug in testing.  I'm in a bit of a bind - I can't really wait for a new release of Rad controls, nor do I have time to re-test my project with a different version!  Anything you can provide is hugely appreciated...
0
Jim
Top achievements
Rank 1
answered on 09 Jul 2010, 03:37 PM
Nevermind, I've figured out a way to fix it until the next official release.  All you need to do is attach to the RadMediaPlayer's Loaded event and from there dig into the visual tree, find the "PlayButton" element, and set its Canvas.SetZIndex property to 1.  After that, the play button will be clickable as normal.

private void RadMediaPlayer_Loaded(object sender, RoutedEventArgs e)
{
    RadMediaPlayer radMediaPlayer = (RadMediaPlayer)sender;
    if (radMediaPlayer != null && VisualTreeHelper.GetChildrenCount(radMediaPlayer) > 0)
    {
        Grid root = VisualTreeHelper.GetChild(radMediaPlayer, 0) as Grid;
        if (root != null)
        {
            RadButton playButton = root.FindName("PlayButton") as RadButton;
            if (playButton != null)
                Canvas.SetZIndex(playButton, 1);
        }
    }
}
0
Miro Miroslavov
Telerik team
answered on 13 Jul 2010, 01:47 PM
Hello Jim,

You are correct. However it will be OK in the official Q2 release in a couple of days.

Regards,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
MediaPlayer
Asked by
brian
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Jim
Top achievements
Rank 1
Share this question
or