Skip to main content

Microsoft Silverlight

Unanswered Question Problem with Fullscreen and Firefox (SL2)RSS Feed

(0)

boena
boena

Member

Member

4 points

3 Posts

Problem with Fullscreen and Firefox (SL2)

Hi!

I have been experimenting with creating an own media player with Silverlight 2. However, I have stumbled upon a bug/problem when trying to expand the window to full screen mode.

I am running Firefox version 2.0.0.13 and Silverlight version 2.0.30226.2 on my computer.

There is no problem at all when I am using IE7. 

I’m including the most crucial parts of the code from Page.xaml.cs:

--- In Page():
// Applying handler for fullscreen
App.Current.Host.Content.FullScreenChanged += new EventHandler(Content_FullScreenChanged);

--- And here is the handler...
void
  Content_FullScreenChanged(object sender, EventArgs e)
{

            if (App.Current.Host.Content.IsFullScreen == true)

            {

                double targetWidth = (double)App.Current.Host.Content.ActualWidth;

                double targetHeight = (double)App.Current.Host.Content.ActualHeight;

                Width = targetWidth;

                Height = targetHeight;

                Holder.Width = targetWidth;

                Holder.Height = targetHeight;

                clip.Width = targetWidth;

                clip.Height = targetHeight;

            }

            else

            {

                Holder.Width = (double)320.0;

                Holder.Height = (double)280.0;

 

                clip.Width = (double)320.0;

                clip.Height = (double)240.0;

            }

        }

 

Can anyone spot any error I've done or can anyone confirm the possible bug with SL2 and FF?

Cheers,

Björn "boena" Lennartsson
 

DZaK
DZaK

Member

Member

192 points

70 Posts

Re: Problem with Fullscreen and Firefox (SL2)

 I have the same, FF & FullScreen dosen't work but it is because FF block it.

Hovewer, It worked in SL1.1  

--
If this answers your question please select "Mark as Answered"

http://geekswithblogs.net/SilverBlog/ my blog
http://jacekciereszko.pl polish blog

boena
boena

Member

Member

4 points

3 Posts

Re: Problem with Fullscreen and Firefox (SL2)

DZaK:

 I have the same, FF & FullScreen dosen't work but it is because FF block it.

Hovewer, It worked in SL1.1  

 

 

That is strange. Is it possible to unblock it in FF somehow?

I just tried on my other computer which has FF v. 2.0.0.12 and it worked there, is it only the newest version of FF which has this problem?


I have uploaded my application to Silverlight Streaming, please check if you have the same error in FF as me on the following link : http://www.palooza.se/silverlight/ex02/

 
/// .b
 

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Re: Re: Problem with Fullscreen and Firefox (SL2)

Hello, your sample works fine for me with FireFox 2.0.0.13. Maybe you have some configurations on your FireFox?

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.

ccchai
ccchai

Member

Member

194 points

76 Posts

Re: Problem with Fullscreen and Firefox (SL2)

I am using FF 2.0.0.13 too.....the full screen modes does not work.......the same code works in IE7.

it seems when I click on Full screen button..there is a new FF window appears on my task bar and then disappear immediately....

I tried to change my FF settings...even turn off all the add-ons..but still doesn't work 

 

CoderX
CoderX

Member

Member

154 points

89 Posts

Re: Re: Problem with Fullscreen and Firefox (SL2)

My co-worker and I have both noticed that Full-screen quit working with SL2 B1. It worked fine before with SL 1.x.  I see the same thing as above, full-screen in FFox 2 is broken, but typically works in IE7. So something was broken between SL 1.1 and SL2 B1 and needs to be fixed.

Sergey Volk MSFT
Sergey V...

Participant

Participant

788 points

98 Posts

Microsoft

Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

 Are you referring to this sample: http://www.palooza.se/silverlight/ex02/ ?

It works for me on FF 2.0.0.13

If you are trying to create your own sample, then please note that you can only toggle full-screen mode from user-initiated actions (e.g. from MouseLeftButtonDown / MouseLeftButtonUp handlers)

If this answers your question, please click on "Mark as Answer" on this post.

ccchai
ccchai

Member

Member

194 points

76 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

The sample at http://www.palooza.se/silverlight/ex02/ does not work in my Firefox 2.0.0.13.

 I setup a test project again, trying to invoke the full screen through button click event and user control MouseLeftButtonUp event. They just don't work.

 
My code:

 Dim contentObject As System.Windows.Interop.Content = Application.Current.Host.Content
 contentObject.IsFullScreen = Not contentObject.IsFullScreen



boena
boena

Member

Member

4 points

3 Posts

Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

I have tried the sample which I created on 7 different computers with FF 2.0.0.13. Out of these seven it has only worked on one.

There is some strange bug that allows it to open on some computers but doesn't allow it on the most. I have also tried with Silverligt 1.1 and here it worked on all 7 so there must have been some change to SL2 B1 that has made the error occure.

ideal_airsoft
ideal_ai...

Member

Member

54 points

33 Posts

Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

Has anyone ever come up with a solution to this?  I'm having the same problem.

tomtaylormsft
tomtaylo...

Member

Member

379 points

114 Posts

Microsoft

Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

ideal_airsoft:

Has anyone ever come up with a solution to this?  I'm having the same problem.

two questions:
1.) what other add-ins do you have installed? toolbars? other pop-up blockers?
2.) do you get the same behavior on http://www.silverlight.net/fox (click on the full screen button to test this), or only on your project?

thanks!

- Tom

Tom Taylor
Microsoft Silverlight

CoderX
CoderX

Member

Member

154 points

89 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

1)  I get the same behavior with add-ins enabled or disabled.

2)  It does not work for the fox demo either. Some background UI elements to flash, but nothing happens. 

tomtaylormsft
tomtaylo...

Member

Member

379 points

114 Posts

Microsoft

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

CoderX:

1)  I get the same behavior with add-ins enabled or disabled.

2)  It does not work for the fox demo either. Some background UI elements to flash, but nothing happens. 

 

OK, thanks for checking. We are investigating this as a bug at this point.

- Tom

Tom Taylor
Microsoft Silverlight

d2consulting
d2consul...

Member

Member

2 points

1 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

Hi Tom

 Is there any news on your investigations?

Dom

Global-MIX

softlion
softlion

Member

Member

28 points

11 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

Exactly same problem there.

I uninstalled 2.0 beta 1, reinstalled 1.0, and it's working again nicely.

 

________________________
http://www.softlion.com/

tomtaylormsft
tomtaylo...

Member

Member

379 points

114 Posts

Microsoft

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

d2consulting:

Hi Tom

 Is there any news on your investigations?

I don't have anything that I can share at this point - we are tracking this as a bug but we don't yet know why it affects some people running Firefox and not others.

- Tom

Tom Taylor | Microsoft Silverlight

softlion
softlion

Member

Member

28 points

11 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

I'm using Firebug 1.1b12, maybe it is causing problems.

I run into others bug of latest Silverlight 1.0 (without any 2.0 installed) in firefox only:
- the downloader is at least 10 times slower in firefox than in IE (I tested on a 250Mb file).
- when using image.SetSource in the completed event of a downloader object, and a very short time after / nearly simultaneously using anotherImage.source = "URL" where URL is the url of a jpg file previously completely loaded using another downloader instance, the displayed image (ie: anotherImage) flickers to black before going back to the the jpg file. This occurs only in FF and only if image.SetSource is used in another downloader instance. I will create a short Xaml/js to show this as it is reproductible each time.

- ah a last one, also in FF only: the SL plugin does not initialize itself correctly randomly when refreshing the page. The plugin always starts and renders but the loaded event is not fired. As I attach all the event handlers in the loaded event, the UI stays useless.
Bug found : it is because of the way the HTML host page is build by the silverlight wizard. The wizard creates something like:
<div id="hostId"><script>createSIlverlightObject("hostId");</script></div>

Instead, what works correctly (ie: every time, not randomly as in the version over this text) with firefox is:
<div id="hostId"></div><script>createSIlverlightObject("hostId");</script>

I still get the same bug when I press F5 on a working page though. But I found the cause. The first time the SL object works correctly on the page. Press F5 => the SL js object does not receive the resize event. In my case this is a big problem as my main canvas gets the default size of 1x1 but this size should be 100% x 100% ...

 

________________________
http://www.softlion.com/

scommisso
scommisso

Member

Member

84 points

44 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

Has there been any movement on this? Seems to still be broken in Beta 2 in FF2 and FF3. For me, the SL app flickers for a split second (the frame never resizes, but you can see the elements resize) and then goes back to normal.

For an example -- load this up in FF2 or FF3:

The Bragosphere

CTRL-click somewhere on the SL app in the middle and choose "Enter Full Screen Mode". The SL app should flickr for a sec and then go back to normal.

Steve Commisso
MCSD.NET, MCPD: EAD

tomtaylormsft
tomtaylo...

Member

Member

379 points

114 Posts

Microsoft

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

scommisso:
Has there been any movement on this? Seems to still be broken in Beta 2 in FF2 and FF3.

Yes, we have confirmed that this is an issue that is affecting some Firefox users. We are able to reproduce it on one of our machines in house and are tracking it as a bug for Silverlight 2.

- Tom

Tom Taylor    |    Microsoft Silverlight

scommisso
scommisso

Member

Member

84 points

44 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

Thanks Tom!

Steve Commisso
MCSD.NET, MCPD: EAD

TeflonDon
TeflonDon

Member

Member

4 points

3 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

Thank you Tom.

 

But, when could we expect this to be fixed?  The problem is, that all our applications out there, even made with SL1, are now not working if the end user downloads the SL2 Beta2 combined with Firefox 2.0.0.13+ ....

 

We have now many customers calling in...

 

Manuel

ccchai
ccchai

Member

Member

194 points

76 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

I am using SL2b2, after upgrading my Firefox to version 2.0.016, the full screen problem gone mysteriously. 

scommisso
scommisso

Member

Member

84 points

44 Posts

Re: Re: Re: Re: Problem with Fullscreen and Firefox (SL2)

Yeah it's a pretty random problem... I've had it appear and disappear on the same machine without changing browser versions. I'm currently using FF3.

Steve Commisso
MCSD.NET, MCPD: EAD

Vinoo Cherian
Vinoo Ch...

Member

Member

16 points

3 Posts

Re: Problem with Fullscreen and Firefox (SL2)

To fix this, delete npctrl.1.0.30401.0UI.dll from the Silverlight install directory.

- Vinoo Cherian | Microsoft Silverlight Development

Vinoo Cherian
Vinoo Ch...

Member

Member

16 points

3 Posts

Re: Problem with Fullscreen and Firefox (SL2)

Sorry, I meant delete npctrl.1.0.30401.0.dll from the Silverlight install directory.

 - Vinoo Cherian | Microsoft Silverlight Development

TeflonDon
TeflonDon

Member

Member

4 points

3 Posts

Re: Re: Problem with Fullscreen and Firefox (SL2)

You are asking us to tell clients to delete a dll in the install directory as a solution?

 Hmm

 

iamaelephant
iamaelep...

Member

Member

2 points

1 Posts

Re: Re: Problem with Fullscreen and Firefox (SL2)

 Can someone confirm this is a safe solution? I'm not too keen to go deleting .dll files to fix this problem if I don't have to. Is there an ETA on a new version of Silverlight or a hotfix to solve this?

tomtaylormsft
tomtaylo...

Member

Member

379 points

114 Posts

Microsoft

Re: Re: Problem with Fullscreen and Firefox (SL2)

Sorry for any confusion - Vinoo's suggestion to manually delete the file is a workaround for people that are affected. We expect to fix this in the final release of Silverlight 2.

- Tom

Tom Taylor    |    Microsoft Silverlight

Terry M
Terry M

Member

Member

4 points

4 Posts

Re: Re: Problem with Fullscreen and Firefox (SL2)

FYI: This workaround did work for me.

I renamed: C:\Program Files\Microsoft Silverlight\2.0.30523.8\npctrl.1.0.30401.0.DLL to .OLD and restarted firefox.  My code now works.

Terry

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities