Large Play button on video does not play the video?

5 posts, 0 answers
  1. brian
    brian avatar
    21 posts
    Member since:
    Mar 2009

    Posted 10 Jun 2010 Link to this post

    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?
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 15 Jun 2010 Link to this post

    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.
  3. DevCraft banner
  4. Jim
    Jim avatar
    4 posts
    Member since:
    Nov 2009

    Posted 08 Jul 2010 Link to this post

    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...
  5. Jim
    Jim avatar
    4 posts
    Member since:
    Nov 2009

    Posted 09 Jul 2010 Link to this post

    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);
            }
        }
    }
  6. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 13 Jul 2010 Link to this post

    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
Back to Top
DevCraft banner