Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
webpage_recorder
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
胡斌
8 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3a654da5bcaed9cf8d298c805b657d75e17e5479
3a654da5
0 parents
initial commit of webpage_recorder,only load test url
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
51 行增加
和
0 行删除
.gitignore
main.js
package.json
.gitignore
0 → 100644
查看文件 @
3a654da
node_modules/
package-lock.json
...
...
main.js
0 → 100644
查看文件 @
3a654da
const
{
app
,
BrowserWindow
}
=
require
(
'electron'
)
app
.
disableHardwareAcceleration
()
let
win
app
.
once
(
'ready'
,
()
=>
{
win
=
new
BrowserWindow
({
webPreferences
:
{
offscreen
:
true
}
})
win
.
loadURL
(
'http://github.com'
)
var
now
=
Date
.
now
()
win
.
webContents
.
on
(
"paint"
,
function
(
event
,
dirty
,
image
){
console
.
log
(
"painting"
,
Date
.
now
()
-
now
,
win
.
webContents
.
isOffscreen
(),
win
.
webContents
.
getFrameRate
()
)
now
=
Date
.
now
()
})
win
.
webContents
.
setFrameRate
(
20
)
})
...
...
package.json
0 → 100644
查看文件 @
3a654da
{
"name"
:
"webpage_recorder"
,
"version"
:
"1.0.0"
,
"description"
:
"render web page offline and record to media file"
,
"main"
:
"main.js"
,
"scripts"
:
{
"test"
:
"echo \"Error: no test specified\" && exit 1"
},
"keywords"
:
[
"render"
,
"record"
,
"offline"
],
"author"
:
"hubin"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"electron"
:
"^1.6.11"
},
"devDependencies"
:
{
"electron-packager"
:
"^8.7.2"
}
}
...
...
请
注册
或
登录
后发表评论