1e0200a
commit 1e0200a
1 file changed
+8 -8
Showing 1 changed file+8-8
▼examples/demo.ts
+8-8
| @@ -1,10 +1,10 @@ | ||
1 | -import { Player } from '@media-runtime/core'; | |
2 | -import { HTTPRangeSource } from '@media-runtime/stream'; | |
3 | -import { HLSParser } from '@media-runtime/manifest'; | |
4 | -import { ABRController } from '@media-runtime/abr'; | |
5 | -import { ContainerRegistry } from '@media-runtime/containers'; | |
6 | -import { CodecNegotiator } from '@media-runtime/codecs'; | |
7 | -import { TelemetryPlugin } from '@media-runtime/telemetry'; | |
1 | +import { Player } from '@vidolib/core'; | |
2 | +import { HTTPRangeSource } from '@vidolib/stream'; | |
3 | +import { HLSParser } from '@vidolib/manifest'; | |
4 | +import { ABRController } from '@vidolib/abr'; | |
5 | +import { ContainerRegistry } from '@vidolib/containers'; | |
6 | +import { CodecNegotiator } from '@vidolib/codecs'; | |
7 | +import { TelemetryPlugin } from '@vidolib/telemetry'; | |
8 | 8 | |
9 | 9 | async function main() { |
10 | 10 | console.log('--- media-runtime TypeScript Integration Example ---'); |
| @@ -40,7 +40,7 @@ rendition-1080p.m3u8`; | ||
40 | 40 | const telemetry = new TelemetryPlugin(); |
41 | 41 | await player.use(telemetry); |
42 | 42 | |
43 | - player.on('statechange', (state) => console.log('Player State:', state)); | |
43 | + player.on('statechange', (state: any) => console.log('Player State:', state)); | |
44 | 44 | player.play(); |
45 | 45 | player.seek(30); |
46 | 46 | player.pause(); |
47 | 47 | |