Getting Started
インストール手順とこのプラグインのフル マークダウン ガイドが含まれたセットアップ コマンドをコピーできます。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-ivs-player`, `@capgo/ivs-player`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/ivs-player/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
インストール
「インストール」のセクションAI-Assisted セットアップを使用してプラグインをインストールできます。AI ツールに Capgo スキルを追加するには、以下のコマンドを実行してください。
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins次に、以下のプロンプトを使用してください:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-ivs-player` plugin in my project.Manual Setupを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください:
bun add @capgo/capacitor-ivs-playerbunx cap syncインポート
セクション「インポート」import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';APIの概要
セクション「APIの概要」create
create現在の契約のソース定義を参照してください。
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
start現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.start();cast
cast現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.cast();getCastStatus
getCastStatus現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getCastStatus();See the source definitions for the current contract.
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.pause();delete
Section titled “delete”See the source definitions for the current contract.
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.delete();getUrl
Section titled “getUrl”See the source definitions for the current contract.
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getUrl();getState
Section titled “getState”See the source definitions for the current contract.
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getState();setPlayerPosition
setPlayerPositionのセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.setPlayerPosition();getPlayerPosition
getPlayerPositionのセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getPlayerPosition();setAutoQuality
setAutoQualityのセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.setAutoQuality();getAutoQuality
getAutoQualityのセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getAutoQuality();setPip
Section titled “setPip”現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.setPip();getPip
Section titled “getPip”現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getPip();setFrame
Section titled “setFrame”プレイヤー ビューのフレームを設定します。すべての数値は正の整数でなければなりません。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.setFrame();getFrame
Section titled “getFrame”現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getFrame();setBackgroundState
背景設定を設定するセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.setBackgroundState({} as { backgroundState: CapacitorIvsPlayerBackgroundState });getBackgroundState
背景設定を取得するセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getBackgroundState();setMute
ミュートを設定するセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.setMute();getMute
ミュートを取得するセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getMute();setQuality
setQualityのセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.setQuality();getQuality
getQualityのセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getQuality();getQualities
getQualitiesのセクション現在の契約のソース定義を参照してください。
import { CapacitorIvsPlayer } from '@capgo/capacitor-ivs-player';
await CapacitorIvsPlayer.getQualities();タイプ リファレンス
タイプ リファレンスのセクションCapacitorIvsPlayerState
CapacitorIvsPlayerStateのセクションexport type CapacitorIvsPlayerState = 'IDLE' | 'BUFFERING' | 'READY' | 'PLAYING' | 'ENDED' | 'UNKNOWN';CapacitorIvsPlayerBackgroundState
セクション「CapacitorIvsPlayerBackgroundState」export type CapacitorIvsPlayerBackgroundState = 'PAUSED' | 'PLAYING';真実の源
セクション「真実の源」このページはプラグインの src/definitions.ts再度、パブリック API がアップストリームで変更された場合にsyncを実行してください。
Getting Startedから続けてください
セクション「Getting Startedから続けてください」Capgoを使用している場合 Getting Started ダッシュボードとAPIの計画と操作を行う場合に接続してください @capgo/capacitor-ivs-player @capgo/capacitor-ivs-player API の概要 API の実装詳細 導入 __CAPGO_KEEP_0__ のキー API の実装詳細、そして for the implementation detail in API Keys, and __CAPGO_KEEP_0__ の実装詳細 ページを編集