Skip to content

Commit

Permalink
🍱 Replace example video (#220)
Browse files Browse the repository at this point in the history
Closes #217
  • Loading branch information
jay-lee-code authored Jul 19, 2023
1 parent 15e444e commit 26d253c
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/application/readme-screenshot.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
})

sample = document.createElement('video')
sample.src = '../assets/desert.mp4'
sample.src = '../assets/beach.mp4'

sample.onloadedmetadata = addLayers
}
Expand All @@ -35,7 +35,7 @@
for (let y = 0; y < movie.height; y += height) {
for (let x = 0; x < movie.width; x += width) {
const video = document.createElement('video')
video.src = '../assets/desert.mp4'
video.src = '../assets/beach.mp4'
if (x * y) {
video.onplay = event => {
console.log(event)
Expand Down
2 changes: 1 addition & 1 deletion examples/application/video-player.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
})
</script>
<div id="container">
<video src="../assets/desert.mp4"></video>
<video src="../assets/beach.mp4"></video>
<img src="../assets/lake.jpg"/>
<canvas id="output"></canvas><br>
<button id="pause-play" class="play"><!-- styled --></button>
Expand Down
2 changes: 1 addition & 1 deletion examples/assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ The following are used as input media for the examples:

- __[lake.jpg](lake.jpg)__ - *[Sunrise at Sunrise](https://www.flickr.com/photos/70841841@N00/2759737268) by [Kethera](https://www.flickr.com/photos/70841841@N00) is licensed under [CC BY-NC-SA 2.0](https://creativecommons.org/licenses/by-nc-sa/2.0/?ref=ccsearch&atype=rich)*
- __[strings.wav](strings.wav)__ - *"Orchestral Strings, Warm, A.wav" by [InspectorJ](www.jshaw.co.uk) of [Freesound.org](freesound.org)*
- __[desert.ogv](desert.ogv)__ - *[Video](https://www.pexels.com/video/two-vehicles-traveling-in-the-desert-2099568) by Joseph Redfield from Pexels*
- __[beach.mp4](beach.mp4)__ - *[Video](https://www.pexels.com/video/beach-ocean-coast-seashore-4369243/) by Galina Zolotaryova from Pexels*
Binary file added examples/assets/beach.mp4
Binary file not shown.
Binary file removed examples/assets/desert.mp4
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/introduction/export.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<div id="input">
<img src="../assets/lake.jpg" style="display:none"/>
<video src="../assets/desert.mp4" style="display:none"></video>
<video src="../assets/beach.mp4" style="display:none"></video>
<audio src="../assets/strings.wav" style="display:none"></audio>
</div>
<div id="output">
Expand Down
2 changes: 1 addition & 1 deletion examples/introduction/hello-world2.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
document.body.appendChild(canvas)

const video = document.createElement('video')
video.src = '../assets/desert.mp4'
video.src = '../assets/beach.mp4'

window.onclick = () => {
canvas.width = video.videoWidth // you could also do movie.width = video.videoWidth;
Expand Down
2 changes: 1 addition & 1 deletion examples/introduction/media.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<img src="../assets/lake.jpg"/>
<video src="../assets/desert.mp4"></video>
<video src="../assets/beach.mp4"></video>
<audio src="../assets/strings.wav"></audio>
<button>Start</button>
<script>
Expand Down
2 changes: 1 addition & 1 deletion examples/introduction/stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

window.addEventListener('click', async () => {
const video = document.createElement('video')
video.src = '../assets/desert.mp4'
video.src = '../assets/beach.mp4'
await new Promise(resolve => {
video.addEventListener('loadeddata', resolve)
})
Expand Down

0 comments on commit 26d253c

Please sign in to comment.