Amazon.com Widgets How to disable Full Screen Mode (Silverlight 1.0)

WilliaBlog.Net

I dream in code

About the author

Robert Williams is an internet application developer for the Salem Web Network.
E-mail me Send mail
Code Project Associate Logo
Ads by Lake Quincy Media

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.


How to disable Full Screen Mode (Silverlight 1.0)

Is there any way to disable the fullscreen mode or disable the double click event for a Media Player built with Microsoft Expression Encoder?

Yes. Edit BasePlayer.js:

Change:

_onFullScreen:function(){var a=this.get_element().content;a.fullScreen=!a.fullScreen} 

To:

_onFullScreen:function(){var a=this.get_element().content;a.fullScreen=false}

I tried various methods to overide this method in the inherited Extended Player Class, but without success. Perhaps there are private member variables that the inherited class cannot access, or perhaps I was doing something wrong. In any case, this method works. If you know of a better one, let me know.


Posted by Williarob on Saturday, December 27, 2008 6:33 PM
Permalink | Comments (1) | Post RSSRSS comment feed

Comments

tin whiskers United States | Reply

Wednesday, August 05, 2009 2:21 AM

tin whiskers

Hi,
    Glad to stumble your article..keep up the good work...

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading