2016-04-26 122 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文件夾

請幫我找出問題所在。 謝謝。

回答