Skip to content

Commit

Permalink
add: ffmpeg wasm for muxing, and coi service-worker to make SharedArr…
Browse files Browse the repository at this point in the history
…ayBuffer work
  • Loading branch information
zenkyuv committed Dec 20, 2023
1 parent 77fdfe1 commit 8122d0a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"type": "module",
"scripts": {
"test": "cynic node ./x/tests.test.js",
"build": "turtle-standard",
"start": "turtle-standard-watch"
"build": "turtle-standard && run-p copy-coi",
"start": "turtle-standard-watch",
"copy-coi": "cp node_modules/coi-serviceworker/coi-serviceworker.js x/"
},
"author": "zenkyuv",
"license": "ISC",
Expand All @@ -30,6 +31,9 @@
"dependencies": {
"@benev/construct": "^0.0.0-x.14",
"@benev/slate": "^0.0.0",
"@ffmpeg/ffmpeg": "^0.12.9",
"@ffmpeg/util": "^0.12.1",
"coi-serviceworker": "^0.1.7",
"es-module-shims": "^1.8.2",
"lit": "^2.6.1",
"mp4box": "^0.5.2"
Expand Down
2 changes: 1 addition & 1 deletion s/components/omni-media/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {styles} from "./styles.js"
import {shadow_component} from "../../context/slate.js"

export const OmniMedia = shadow_component({styles}, use => {
const raw_media = use.state<Media[]>([{type: "Audio", source: ""}])
const raw_media = use.state<Media[]>([{type: "Audio", uri: ""}])

Check failure on line 8 in s/components/omni-media/component.ts

View workflow job for this annotation

GitHub Actions / build

Object literal may only specify known properties, and 'uri' does not exist in type 'Media'.
return html`
<div>
IMPORT FILE
Expand Down

0 comments on commit 8122d0a

Please sign in to comment.