Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8671585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:59:08+00:00 2026-06-12T18:59:08+00:00

We are using a proprietary document viewer which doesn’t play terribly nice with the

  • 0

We are using a proprietary document viewer which doesn’t play terribly nice with the Pepper version of Flash found in some flavors of Chrome, so I’d like to be able to detect it and redirect to the same content in a different format.

Since this version seems to lag behind the NPAPI one, I have been using FlashDetect to look for the version number but this requires daily updating. I’d rather not look at the UserAgent since it’s the flash architecture causing the trouble and not the browser, but is there any method of doing this with Javascript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:59:09+00:00Added an answer on June 12, 2026 at 6:59 pm

    I think it should be done this way:

    var isPPAPI = false;
    var type = 'application/x-shockwave-flash';
    var mimeTypes = navigator.mimeTypes;
    
    if (mimeTypes && mimeTypes[type] && mimeTypes[type].enabledPlugin &&
        mimeTypes[type].enabledPlugin.filename == 'pepflashplayer.dll') isPPAPI = true;
    

    Demo on jsFiddle.


    UPD №1: Not sure if needed, but I wrote a little explanation:

    If our browser has a MIME types enumeration, we can get a plugin associated with a specified type. So we’re getting plugin which associated with 'application/x-shockwave-flash' and check if its filename is 'pepflashplayer.dll'. I think that this name is constant and will not be changed in future.


    UPD №2:

    To enable/disable PPAPI in Google Chrome, you should go to this page: chrome://plugins/

    (Sorry, this URL needs to be pasted directly into the address bar.)


    UPD №3:

    I did some investigation and found an interesting article that helped me to implement a cross-platform solution. I think that this code should work on all OS:

    var isPPAPI = false;
    var type = 'application/x-shockwave-flash';
    var mimeTypes = navigator.mimeTypes;
    
    var endsWith = function(str, suffix) {
        return str.indexOf(suffix, str.length - suffix.length) !== -1;
    }
    
    if (mimeTypes && mimeTypes[type] && mimeTypes[type].enabledPlugin &&
       (mimeTypes[type].enabledPlugin.filename == "pepflashplayer.dll" ||
        mimeTypes[type].enabledPlugin.filename == "libpepflashplayer.so" ||
        endsWith(mimeTypes[type].enabledPlugin.filename, "Chrome.plugin"))) isPPAPI = true;
    

    Check out an updated fiddle.


    UPD №4:

    Slightly changed the code to meet today’s realities. Now condition looks like this:

    if (mimeTypes && mimeTypes[type] && mimeTypes[type].enabledPlugin &&
       (mimeTypes[type].enabledPlugin.filename.match(/pepflashplayer|Pepper/gi))) isPPAPI = true;
    

    Check out jsFiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a proprietary language called VGL which really does not type variables
I am using MySql Workbench, which stores files using a proprietary format which it
I'm working on a proprietary site, and I'm having some issues. I'm using jQuery
We are about to migrate an intranet web application from using a proprietary forms-based
I am currently using WatiN to automate a proprietary website at my work, and
Using a proprietary framework, I am frequently finding myself in the situation where I
I'm using a proprietary platform that reported memory usage in realtime on screen. I
I've worked on a project using a proprietary non-SQL DB where queries could be
Oracle SQL can do hierarchical queries since v2, using their proprietary CONNECT BY syntax.
I'm trying to work on project using a proprietary mvc and we have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.