Possible full-screen bug in RadMediaPlayer

2 posts, 1 answers
  1. JanSichulaJr
    JanSichulaJr avatar
    8 posts
    Member since:
    May 2007

    Posted 07 Jan 2009 Link to this post

    Dear Telerik Team,


    while experimenting with RadMediaPlayer (2008.3 1217) we have run into a strange behavior.

    • We have implemented a full-screen (host window disappears) mode in a way as suggest by documentation.
    • Everything works great with one exception:
    • When I want to leave the full-screen mode by pressing ESC key: the host windows reappears, MediaElement is still maximized, a player UI disappears. Go ahead and try it at address below.
    • When I use doubleclicking or click the icon on player toolbar, the return from full-screen mode works correctly. The bug only appears when I press ESC key in order to return to embedded mode.
    • It behaves the same way on FF3 and IE7 and on different computers.


    Is this a bug or are we doing something in a wrong way?


    You can test this behavior with our player at http://blog.temelios.sk/dev/testpage.html.


    I am patiently waiting for response. Thank you.


    Jan Sichula

    (Slovak Republic)


  2. Answer
    Miroslav avatar
    922 posts

    Posted 08 Jan 2009 Link to this post

    Hi Jan,

    The MediaPlayer offers a FullScreen mode, but that only applies to its outlook, the management of the application FullScreen is done by the user. This may seem as an overkill but you can only make the whole application fullscreen, not separate parts. In some cases going fullscreen may involve hiding/changing other parts of the application outside of the MediaPlayer.

    What happens in your case is that the when you click "fullscreen" the MediaPlayer and the application go to fullscreen, but when you press Esc, the MediaPlayer does not get notified. So it just needs to be updated:

    mediaPlayer.FullScreenChanged += new EventHandler(mediaPlayer_FullScreenChanged);  
    //Sign up for the change and notify the MediaPlayer  
    Application.Current.Host.Content.FullScreenChanged += new EventHandler(Content_FullScreenChanged);  
    void Content_FullScreenChanged(object sender, EventArgs e)  
        mediaPlayer.IsFullScreen = Application.Current.Host.Content.IsFullScreen;  
    private void mediaPlayer_FullScreenChanged(object sender, EventArgs e)  
        App.Current.Host.Content.IsFullScreen = !App.Current.Host.Content.IsFullScreen;  

    Hopefully this will work for you,

    All the best,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
Back to Top