Reputation: 35953
I've downloaded the sample from http://code.google.com/p/npapi-chrome-plugin-helloworld-example/ Do not worry about building from the source, the built .dll and the manifest and a test.html is in the sampleplugin folder.
Problem: If I open the test.html in Chrome (latest) I've got a gray rectangle with the message "no plug-in available to display this content".
What am I missing? (Can anyone reproduce this? Again, no need to build, just 10 sec to download and launch test.html)
Thx for answers
manifest.json:
{
"name": "npapi_helloworld",
"version": "1.0",
"description": "a small helloworld example of npapi.",
"plugins":[
{"path":"plugin/npsimple.dll","public":true}
]
}
test.html
<doctype html>
<html>
<head>
<script>
window.onload = function(){
test = document.getElementById("pluginObj");
alert(test.sayHello());
}
</script>
</head>
<embed id="pluginObj" type="application/x-helloworld">
<body></body>
</html>
Upvotes: 0
Views: 665
Reputation: 35953
Solved:
The "manifest_version": 2, must be added to manifest.json :-(. (Why?)
Upvotes: 1