Initially hide mediaplayer controls

3 posts, 0 answers
  1. Alex
    Alex avatar
    4 posts
    Member since:
    Mar 2012

    Posted 18 Mar 2018 Link to this post


    Sorry if this has been asked elsewhere, I cannot find any answers on this topic..

    I am using a media player in a dockzone control which works great.  The only issue I have is the player, which is set to autoplay, shows the titlebar and play controls automatically on start and only disappears when the user hovers over the control and then off it.  I would like the player ONLY to show the controls when the user hovers over it (ie do not show it until they want to control the video).


  2. Alex
    Alex avatar
    4 posts
    Member since:
    Mar 2012

    Posted 18 Mar 2018 in reply to Alex Link to this post

    Typically, I solved it soon after posting the question.  Not sure where I found this code (sorry I did not write this) but here is what I users to resolve the auto-hide on play:

    in the control: 

    OnClientReady = "playerReady"

    and then in javascript:

    var isResponse = false;
    function playerReady(sender, args) {
       if (!isResponse) {
          isResponse = true;

    Hope that helps someone else also!  Thanks to whoever originally posted that.

  3. Eyup
    Eyup avatar
    3920 posts

    Posted 21 Mar 2018 Link to this post

    Hello Alex,

    Thank you for sharing this with our community. Here is the original project where you could have found this:

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top