How to detect when Chrome's “click-to-play” Flash blocking feature is currently active

后端 未结 3 1519
天命终不由人
天命终不由人 2021-02-13 16:09

Tracking state of Chrome\'s Click-to-play feature

How do you detect that a Flash plugin has been temporarily disabled, or, conversely, detect that it has been enabled

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-13 16:36

    For the benefit of others who are looking for the rules around Flash blocking stuff,please see them below:

    • The Flash Content and the page are loaded from the same domain.
      Unknown Width and Height of the Flash Object ie when Chrome gets the width and height as 0 or less than 0.
    • The Flash Content is whitelisted by the user in Chrome Settings.
    • The Width and Height of the Flash Object are less than or equal to 5 each, considering the content to be Tiny and essential.
    • The Width and Height of the Flash object are equal or greater than 398x298.
    • The Aspect Ratio of the content is 16:9, (with an allowed deviation of 0.01) AND the width*height area is at least 120K.

    At least one of the above criterias need to be met, in order to get the content marked as Essential and not get Auto-Paused. Although, I have seen few deviations and Chrome hasn't made any public announcement on the rules yet.

提交回复
热议问题