@revideo/ffmpeg 0.2.6-alpha.904 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=VideoFrameBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoFrameBridge.d.ts","sourceRoot":"","sources":["../../server/VideoFrameBridge.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /*import {VideoFrameExtractor} from 'VideoFrameExtractor';
3
+ import * as fs from 'fs';
4
+ import * as path from 'path';
5
+ import {Plugin} from 'vite';
6
+
7
+ const RendererPath = path.resolve(__dirname, 'renderer.html');
8
+ const Content = fs.readFileSync(RendererPath, 'utf-8');
9
+ const HtmlParts = Content.toString().split('{{source}}');
10
+
11
+ function createHtml(src: string) {
12
+ return HtmlParts[0] + src + HtmlParts[1];
13
+ }
14
+
15
+ // List of VideoFrameExtractors
16
+ const videoFrameExtractors: VideoFrameExtractor[] = [];
17
+
18
+ export function videoFramePlugin(): Plugin {
19
+ return {
20
+ name: 'revideo-frame-plugin',
21
+
22
+ configureServer(server) {
23
+ server.middlewares.use('/getFrame', (req, res) => {
24
+ // Get video path from request (req is Connect.IncomingMessage)
25
+ const videoPath = req.params.path;
26
+
27
+ res.setHeader('Content-Type', 'text/html');
28
+ });
29
+ },
30
+ };
31
+ }*/
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVmlkZW9GcmFtZUJyaWRnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NlcnZlci9WaWRlb0ZyYW1lQnJpZGdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0E2QkcifQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revideo/ffmpeg",
3
- "version": "0.2.6-alpha.904+148b73f",
3
+ "version": "0.2.6",
4
4
  "description": "An FFmpeg video exporter for revideo",
5
5
  "main": "lib/server/index.js",
6
6
  "author": "revideo",
@@ -27,12 +27,12 @@
27
27
  "dependencies": {
28
28
  "@ffmpeg-installer/ffmpeg": "^1.1.0",
29
29
  "@ffprobe-installer/ffprobe": "^2.0.0",
30
- "@revideo/core": "^0.2.6-alpha.904+148b73f",
31
- "@revideo/vite-plugin": "^0.2.6-alpha.904+148b73f",
30
+ "@revideo/core": "^0.2.6",
31
+ "@revideo/vite-plugin": "^0.2.6",
32
32
  "fluent-ffmpeg": "^2.1.2",
33
33
  "posthog-node": "^4.0.0",
34
34
  "uuid": "^9.0.1",
35
35
  "vite": "^4.5"
36
36
  },
37
- "gitHead": "148b73fa3693f40d717c0fdf275799364769706f"
37
+ "gitHead": "ef5bff0c8ddeebb05ed1b0147336320061be36f5"
38
38
  }