Full screen radmediaplayer in radlightbox

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

    Posted 12 Jan Link to this post

    How could this demo:

     

    http://demos.telerik.com/aspnet-ajax/media-player/examples/applicationscenarios/video-gallery/defaultvb.aspx

     

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

     

    Marc

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1599 posts

    Posted 17 Jan 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.


    Regards,
    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