Saltare al contenuto principale
Torna ai plugin
@capgo/ivs-player
Tutorial
da github.com/Cap-go

IVS Player

Streama video live con bassa latenza utilizzando Amazon Interactive Video Service (IVS)

Guida

Tutorial per il Giocatore IVS

Utilizzo di @capgo/capacitor-giocatore-ivs

Giocatore IVS per l'app capacitor

Installa

bun add @capgo/capacitor-ivs-player
bunx cap sync

Cosa questo Plugin Espone

  • create
  • start
  • cast
  • getCastStatus

Esempio di Utilizzo

create

Vedi le definizioni upstream per il contratto corrente.

import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';

await CapacitorIvsPlayer.create({} as {
    url: string;
    pip?: boolean;
    title?: string;
    subtitle?: string;
    cover?: string;
    autoPlay?: boolean;
    toBack?: boolean;
    x?: number;
    y?: number;
    width?: number;

    height?: number;
  });

start

Vedi le definizioni upstream per il contratto corrente.

import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';

await CapacitorIvsPlayer.start();

cast

Vedi le definizioni upstream per il contratto corrente.

import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';

await CapacitorIvsPlayer.cast();

getCastStatus

Vedi le definizioni upstream per il contratto corrente.

import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';

await CapacitorIvsPlayer.getCastStatus();

Riferimento Completo