2016-04-26 121 views
1

我正在使用Node-Webkit,它只是一个hello world程序。 这是我的代码如何使用Node-Webkit播放视频?

<!DOCTYPE html> 
<html> 
<head> 
    <title>Hello Node Webkit</title> 
</head> 
<body> 
    <h1>Hello Node Webkit</h1> 
    <video src="http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4" controls></video> 
</p> 
</body> 
</html> 


{ 
    "name": "myapp.helloworldapp", 
    "version": "0.0.1", 
    "description": "A Hello Node webkit app", 
    "main": "index.html", 
    "webkit": { 
    "plugin": true 
    }, 
    "scripts": { 
    "test": "echo \"Error: no test specified\" && exit 1" 
    }, 
    "chromium-args": "--load-plugin=ffmpegsumo.dll", 
    "author": "[email protected]", 
    "license": "MIT" 
} 

,我使用运行程序如下 d:\ NW \ nw.exe d:\的helloWorld \ app.v1.nw

然后屏幕显示如下,请附上图片 output-image

但不打&播放按钮也将被禁用

  1. 我在新根目录中包含ffmpegsumo.dll文件夹

请帮我找出问题所在。 谢谢。

回答