Skip to content

πŸŽ₯ Make videos programmatically with React

Delete stream-remote test

pullfrog[bot]a30f886ab2fa
diff --git a/packages/media-parser/src/test/stream-remote.test.ts b/packages/media-parser/src/test/stream-remote.test.ts
deleted file mode 100644
index f79cc15439..0000000000
--- a/packages/media-parser/src/test/stream-remote.test.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-import {expect, test} from 'bun:test';
-import {parseMedia} from '../parse-media';
-
-test(
- 'Should stream',
- async () => {
- const result = await parseMedia({
- src: 'https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_1MB.mp4',
- fields: {
- durationInSeconds: true,
- fps: true,
- dimensions: true,
- videoCodec: true,
- },
- acknowledgeRemotionLicense: true,
- });
- expect(result.durationInSeconds).toBe(10);
- expect(result.fps).toBe(60);
- expect(result.dimensions).toEqual({
- width: 1920,
- height: 1080,
- });
- expect(result.videoCodec).toEqual('h264');
- },
- // Bumped from 15000 β€” third-party CDN (test-videos.co.uk) has
- // intermittent slow responses on CI runners; the test was
- // timing out at exactly 15002ms in a known-flake pattern.
- // 30s is generous headroom for the 1MB download + parse.
- {timeout: 30000},
-);
-
-test(
- 'Should stream from Wikipedia',
- async () => {
- const result = await parseMedia({
- src: 'https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.720p.vp9.webm',
- fields: {
- durationInSeconds: true,
- fps: true,
- dimensions: true,
- videoCodec: true,
- internalStats: true,
- mimeType: true,
- },
- acknowledgeRemotionLicense: true,
- });
- expect(result.durationInSeconds).toBe(634.571);
- expect(result.fps).toBe(null);
- expect(result.mimeType).toBe('video/webm');
- expect(result.dimensions).toEqual({
- width: 1280,
- height: 720,
- });
- expect(result.videoCodec).toEqual('vp9');
- expect(result.internalStats.skippedBytes).toBeGreaterThan(120000000);
- },
- {timeout: 10000},
-);
-
-test('Should handle redirect', async () => {
- const result = await parseMedia({
- src: 'https://remotion.dev/bbb.mp4',
- fields: {
- fps: true,
- videoCodec: true,
- durationInSeconds: true,
- internalStats: true,
- },
- acknowledgeRemotionLicense: true,
- });
- expect(result.videoCodec).toEqual('h264');
- expect(result.fps).toEqual(24);
- expect(result.durationInSeconds).toEqual(596.4733333333334);
- expect(result.internalStats.skippedBytes).toBeGreaterThan(100000000);
-});