시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함하는 설정 지시문을 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-jw-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/jw-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.
설치
설치Capgo의 AI 보조 설치를 사용하여 플러그인을 설치할 수 있습니다. 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-jw-player` plugin in my project.만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:
bun add @capgo/capacitor-jw-playerbunx cap syncimport
importimport { JwPlayer } from '@capgo/capacitor-jw-player';API 개요
API 개요 제목initialize
__CAPGO_KEEP_0__ 초기화JW 플레이어 초기화
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.initialize({} as { licenseKey: string; playerUrl?: string });비디오 재생
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.play({} as { mediaUrl: string; mediaType: 'video' | 'playlist'; autostart?: boolean });현재 재생 중인 미디어 일시정지
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.pause();resume
Section titled “재개”현재 중단된 미디어를 재개합니다
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.resume();현재 재생 중인 미디어를 중지합니다
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.stop();seekTo
Section titled “seekTo”현재 재생 중인 미디어의 특정 위치로 이동합니다
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.seekTo({} as { time: number });setVolume
Section titled “setVolume”볼륨 수준을 설정합니다
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setVolume({} as { volume: number });getPosition
getPosition 위치 가져오기미디어의 현재 위치 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getPosition();getState
getState 현재 상태 가져오기플레이어의 현재 상태 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getState();setSpeed
setSpeed 재생 속도 설정클립보드 복사
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setSpeed({} as { speed: number });setPlaylistIndex
플레이리스트의 현재 항목 설정클립보드 복사
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setPlaylistIndex({} as { index: number });loadPlaylist
플레이리스트 로드플레이리스트 로드
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.loadPlaylist({} as { playlistUrl: string });loadPlaylistWithItems
플레이리스트 아이템 로드플레이리스트 아이템 로드
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.loadPlaylistWithItems({} as { playlist: any[] });getAudioTracks
오디오 트랙 가져오기클립보드 복사
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getAudioTracks();getCurrentAudioTrack
클립보드 복사__CAPGO_KEEP_0__
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getCurrentAudioTrack();setCurrentAudioTrack
setCurrentAudioTrack현재 오디오 트랙 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setCurrentAudioTrack({} as { index: number });getCaptions
getCaptions가용 캡션/자막 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getCaptions();getCurrentCaptions
getCurrentCaptions현재 캡션/자막 트랙 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getCurrentCaptions();setCurrentCaptions
setCurrentCaptions현재 캡션/자막 트랙 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setCurrentCaptions({} as { index: number });currentPlaylist
현재 플레이리스트현재 플레이리스트 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.currentPlaylist();실질적 진실
실질적 진실이 페이지는 플러그인의 src/definitions.ts공개 API이 업스트림에서 변경될 때 다시 싱크를 실행하세요.
Getting Started에서 계속하기
Getting Started에서 계속하기Getting Started을 사용하여 Getting Started 대시보드와 API 운영을 계획하고 싶다면 native 기능을 위한 @capgo/capacitor-jw-player 사용 native 기능을 위한 @capgo/capacitor-jw-player 사용 API 개요 API 개요 소개 __CAPGO_KEEP_0__ 키 API 키 for the implementation detail in API Keys, and 장치 페이지 편집