Skip to content

Commit

Permalink
Merge pull request wasmerio#361 from wasmerio/ffmpeg-example
Browse files Browse the repository at this point in the history
Ffmpeg example
  • Loading branch information
Michael Bryan authored Dec 21, 2023
2 parents 8690592 + 754330b commit f50f186
Show file tree
Hide file tree
Showing 21 changed files with 9,705 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ jobs:
npm install
npm run build
working-directory: "examples/markdown-editor-improved"
- name: Build the ffmpeg demo
run: |
npm install
npm run build
working-directory: "examples/ffmpeg-react"

api-docs:
name: API Docs
Expand Down
18 changes: 18 additions & 0 deletions examples/ffmpeg-react/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/recommended-type-checked",
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
};
24 changes: 24 additions & 0 deletions examples/ffmpeg-react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions examples/ffmpeg-react/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# FFmpeg + @wasmer/sdk + React

This example shows how to use FFmpeg with the @wasmer/sdk and React.
13 changes: 13 additions & 0 deletions examples/ffmpeg-react/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FFmpeg React example</title>
</head>
<body>
<div id="root" class="h-full w-full"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit f50f186

Please sign in to comment.