Home >Web Front-end >JS Tutorial >How to solve the problem that node-webkit does not support html5 playing mp4 videos_node.js

How to solve the problem that node-webkit does not support html5 playing mp4 videos_node.js

WBOY
WBOYOriginal
2016-05-16 16:10:291878browse

Reason: mp4 seems to be a patented audio and video format. node-webkit doesn't support it... it seems. .

Solution:

Install the chrome browser locally, go to the installation directory (for example: c: GoogleChromeApplication37.0.2062.103), and find the ffmpegsumo.dll file.

Copy (ffmpegsumo.dll) and replace ffmpegsumo.dll in the node-webkit directory.

Note: Since there are many chromium versions, the chromium version of the downloaded chrome browser must be consistent with the chromium version of node-webkit. Otherwise, copying the ffmpegsumo.dll file will be useless. It can also cause software to crash.

Where can I see the version number? As follows:

Copy code The code is as follows:

Downloads
node-webkit-v0.10.5: (Sep 16, 2014, based off of Node v0.11.13, Chromium 35.0.1916.157): release notes

Linux: 32bit / 64bit
Windows: win32
Mac 10.7: 32bit / 64bit

(The chromium version of node-webkit-v0.10.0-win-ia32 is also 35)

File: ffmpegsumo.dl download address (windows32/64) http://pan.baidu.com/s/1wBItK

Personally tested winxp ~ win8, 32/64 available.

The above is all the content described in this article. I hope it will be helpful to everyone learning node.js.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn