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

Possible full-screen bug in RadMediaPlayer

1 Answer 67 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
JanSichulaJr
Top achievements
Rank 1
JanSichulaJr asked on 07 Jan 2009, 06:12 PM

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)

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav
Telerik team
answered on 08 Jan 2009, 08:03 AM
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,
Miroslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
MediaPlayer
Asked by
JanSichulaJr
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or