-
Notifications
You must be signed in to change notification settings - Fork 926
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit: migrate all samples from nw-sample-apps repository.
- Loading branch information
0 parents
commit 32717ce
Showing
324 changed files
with
105,191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Sample apps for Electron | ||
|
||
This repository is migrated from [nw-sample-apps](https://github.com/zcbenz/nw-sample-apps), allowing the sample apps run on [electron](https://github.com/atom/electron). | ||
|
||
All the sample test on v0.26.0. | ||
|
||
## How to run apps | ||
|
||
https://github.com/atom/electron/blob/master/docs/tutorial/quick-start.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
html, body, video { | ||
height: 100%; | ||
width: 100%; | ||
margin: 0; | ||
} | ||
|
||
video { | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
navigator.webkitGetUserMedia({video: true}, | ||
function(stream) { | ||
document.getElementById('camera').src = URL.createObjectURL(stream); | ||
}, | ||
function() { | ||
alert('could not connect stream'); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Camera Test</title> | ||
<link rel="stylesheet" href="app.css"> | ||
<script src="jquery.js"></script> | ||
<script src="app.js"></script> | ||
</head> | ||
<body> | ||
<video id="camera" autoplay> </video> | ||
</body> | ||
</html> |
Oops, something went wrong.