This is a migrated thread and some comments may be shown as answers.

Full screen radmediaplayer in radlightbox

1 Answer 61 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Veteran
Fit2Page asked on 12 Jan 2017, 01:27 PM

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

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 17 Jan 2017, 09:23 AM
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.
Tags
MediaPlayer
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Viktor Tachev
Telerik team
Share this question
or