Full Screen problem with Media Element
-
Hi, I have a Silverlight application in that one page i am having 1-8 videos will present.I placed each media element in seperate canvas. I want to fullscreen one particular media element with outer canvas. For Full screen individula video I have written the following code private void FullscreenChange(object sender, RoutedEventArgs e) { if (SLHost.Content.IsFullScreen) { ToolTipService.SetToolTip(fullscreen, "Full Screen"); ms1.ScaleX = c; ms1.ScaleY = d; SLHost.Content.IsFullScreen = false; } else { ToolTipService.SetToolTip(fullscreen, "Resize"); ms1.ScaleX = ms1.ScaleX * 5.90; ms1.ScaleY = ms1.ScaleY * 4.10; SLHost.Content.IsFullScreen = true; isFullScreen = true; flag = false; } } But here I am using same full screen button to resize video.If I use like this its working properly.But I dont want to use same button for Resize if I press Escape it will go to normal stage but its not working like that if I press Escape button it will go to noraml state but the video size is not reducing to original it is in bigger size only.Can you please guide me what is the mistake i have done.If I press Escape button it has to go to normal state and also it has to reduce the video size like previous size. Thanks in Advance Pavani
-
Hi, I have a Silverlight application in that one page i am having 1-8 videos will present.I placed each media element in seperate canvas. I want to fullscreen one particular media element with outer canvas. For Full screen individula video I have written the following code private void FullscreenChange(object sender, RoutedEventArgs e) { if (SLHost.Content.IsFullScreen) { ToolTipService.SetToolTip(fullscreen, "Full Screen"); ms1.ScaleX = c; ms1.ScaleY = d; SLHost.Content.IsFullScreen = false; } else { ToolTipService.SetToolTip(fullscreen, "Resize"); ms1.ScaleX = ms1.ScaleX * 5.90; ms1.ScaleY = ms1.ScaleY * 4.10; SLHost.Content.IsFullScreen = true; isFullScreen = true; flag = false; } } But here I am using same full screen button to resize video.If I use like this its working properly.But I dont want to use same button for Resize if I press Escape it will go to normal stage but its not working like that if I press Escape button it will go to noraml state but the video size is not reducing to original it is in bigger size only.Can you please guide me what is the mistake i have done.If I press Escape button it has to go to normal state and also it has to reduce the video size like previous size. Thanks in Advance Pavani
Hi, I think full screen Escape functionality is not supported in Silverlight. But you can use double click. When you double click video which is in full screen mode it will be back to normal size.
Viral My Site Tips & Tracks