Full screen radmediaplayer in radlightbox

2 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    445 posts
    Member since:
    Feb 2007

    Posted 12 Jan 2017 Link to this post

    How could this demo:




    be extended so, that the video can be watched in Full screen mode and scaled back to original Lightbox size?



  2. Viktor Tachev
    Viktor Tachev avatar
    2425 posts

    Posted 17 Jan 2017 Link to this post

    Hi Marc,

    In the example you are referring to the full screen button is removed from the MediaPlayer control. If you would like to show it you should change the InstantiateIn method for LightBoxMediaTemplate. You need to remove the following line of code.

    player.ToolBar.FullScreenButton.Style("display") = "none"

    However, note that enabling fullscreen for the MediaPlayer when it is placed in a LightBox container can result in unexpected behavior. When the user presses the ESC key this can result in closing both the media player and the LightBox. I would recommend not enabling fullscreen for the media player in that scenario.

    Viktor Tachev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 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