How to hide Sharing button ?

3 posts, 1 answers
  1. Bazz
    Bazz avatar
    21 posts
    Member since:
    Aug 2011

    Posted 10 Jan 2014 Link to this post

    Hi,

    This is a problem similar to the one I had with the HD button. There is no way to hide those options when not required/needed/wanted through the control properties. I'd like to remove the share option (facebook etc.) from my video player. Setting the height/width to 0 under "Social Share" had no effect. Please advise with the required CSS (where it should just be a boolean propery setting within the control).

    Thanks.

    Barry
  2. Answer
    Senad
    Senad avatar
    10 posts
    Member since:
    Jul 2012

    Posted 11 Jan 2014 Link to this post

    Barry, this works for me:
    player = new RadMediaPlayer();
    player.ID = "RadMediaPlayer1";
    player.Title = video.Title;
    player.Source = "http://www.youtube.com/watch?v=" + "whatever...";
    player.StartVolume = 90;
    player.OnClientReady = "playerReady";
    player.Height = System.Web.UI.WebControls.Unit.Pixel(366);
    player.Width = System.Web.UI.WebControls.Unit.Pixel(700);
    //player.FullScreen = true;
    player.HDActive = true;
    player.VolumeButtonToolTip = "Zvuk";
    player.FullScreenButtonToolTip = "Veći ekran";
    player.Skin = "Metro";
     
    player.ToolBar.HDButton.Style["display"] = "none";
    player.TitleBar.ShareButton.Visible = false;
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bazz
    Bazz avatar
    21 posts
    Member since:
    Aug 2011

    Posted 11 Jan 2014 Link to this post

    You da man !...thanks :-)
Back to Top