Detecting Pepper (PPAPI) Flash with Javascript

后端 未结 5 1279
悲&欢浪女
悲&欢浪女 2021-02-10 21:14

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

5条回答
  •  -上瘾入骨i
    2021-02-10 21:59

    I know you asked for Javascript, but this can also be done (more easily) in Flash. Just check

    if (Capabilities.manufacturer === "Google Pepper") {
        Alert.show("Using PPAPI");
    }
    

    Source

提交回复
热议问题