-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #836 from vcync/next
Merge next into main
- Loading branch information
Showing
30 changed files
with
1,263 additions
and
166 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
github: 2xAA | ||
ko_fi: twoxAA | ||
patreon: vcync | ||
custom: ["https://www.paypal.me/2xAA"] |
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 |
---|---|---|
|
@@ -37,11 +37,10 @@ | |
"golden-layout": "^1.5.9", | ||
"grandiose": "github:vcync/grandiose#feat/workerCompatibility", | ||
"interactive-shader-format": "github:vcync/interactive-shader-format-js#78b62b6f4c787b870852df4c8e7b1131e331d8a6", | ||
"lfo-for-modv": "0.0.1", | ||
"lodash.get": "^4.4.2", | ||
"lodash.set": "^4.3.2", | ||
"mathjs": "^7.5.1", | ||
"meyda": "5.6.0", | ||
"meyda": "^5.6.0", | ||
"mkdirp": "^0.5.1", | ||
"npm": "6.14.6", | ||
"nwjs-menu-browser": "^1.0.0", | ||
|
@@ -54,15 +53,15 @@ | |
"stream-to-blob": "^2.0.0", | ||
"tap-tempo": "^0.1.1", | ||
"three": "^0.131.3", | ||
"uuid": "^3.3.3", | ||
"vue": "^2.6.10", | ||
"uuid": "^9.0.0", | ||
"vue": "^2.7.14", | ||
"vue-class-component": "^7.2.3", | ||
"vue-color": "^2.7.1", | ||
"vue-fragment": "^1.5.1", | ||
"vue-golden-layout": "^2.1.0", | ||
"vue-property-decorator": "^8.3.0", | ||
"vue-smooth-dnd": "^0.8.1", | ||
"vuex": "^3.1.2", | ||
"vuex": "^3.6.2", | ||
"vuex-persistedstate": "^4.0.0-beta.3", | ||
"webpack": "^4.43.0", | ||
"webpack-2": "npm:[email protected]" | ||
|
@@ -78,7 +77,7 @@ | |
"@vue/eslint-config-prettier": "^4.0.1", | ||
"babel-eslint": "^10.0.3", | ||
"core-js": "^3.19.1", | ||
"electron": "^18.3.7", | ||
"electron": "^23.1.2", | ||
"electron-builder": "^22.9.1", | ||
"electron-notarize": "^1.2.2", | ||
"eslint": "^5.16.0", | ||
|
@@ -89,7 +88,8 @@ | |
"sass-loader": "^7.3.1", | ||
"text-loader": "0.0.1", | ||
"vue-cli-plugin-electron-builder": "^2.0.0", | ||
"vue-template-compiler": "^2.6.10", | ||
"vue-template-babel-compiler": "^2.0.0", | ||
"vue-template-compiler": "^2.7.14", | ||
"vuex-localstorage": "^1.0.0", | ||
"worker-loader": "^2.0.0" | ||
}, | ||
|
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,42 @@ | ||
export function createWebcodecVideo({ id, url, textureDefinition }) { | ||
return new Promise(async (resolve, reject) => { | ||
const video = document.createElement("video"); | ||
video.setAttribute("crossorigin", "anonymous"); | ||
video.setAttribute("loop", true); | ||
video.onerror = reject; | ||
video.muted = true; | ||
|
||
video.onloadedmetadata = async () => { | ||
const stream = video.captureStream(); | ||
const [track] = stream.getVideoTracks(); | ||
|
||
// eslint-disable-next-line | ||
const processor = new MediaStreamTrackProcessor(track); | ||
const frameStream = processor.readable; | ||
|
||
// Transfer the readable stream to the worker. | ||
// NOTE: transferring frameStream and reading it in the worker is more | ||
// efficient than reading frameStream here and transferring VideoFrames individually. | ||
this.store.dispatch( | ||
"videos/assignVideoStream", | ||
{ | ||
id, | ||
stream: frameStream, | ||
width: video.videoWidth || 256, | ||
height: video.videoHeight || 256 | ||
}, | ||
[frameStream] | ||
); | ||
|
||
resolve({ id, video, stream }); | ||
}; | ||
|
||
video.setAttribute("src", url); | ||
video.playbackRate = textureDefinition?.options?.playbackrate; | ||
if (textureDefinition?.options?.paused) { | ||
video.pause(); | ||
} else { | ||
video.play(); | ||
} | ||
}); | ||
} |
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
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
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,6 @@ | ||
import path from "path"; | ||
|
||
export const conformFilePath = (filePath = "") => | ||
filePath | ||
.split(process.platform === "win32" ? path.posix.sep : path.win32.sep) | ||
.join(path.sep); |
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
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
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
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
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
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
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
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
Oops, something went wrong.